Changeset 6110 for trunk/qt4-gui/src/widgets
- Timestamp:
- 03/22/08 05:06:28 (9 months ago)
- Location:
- trunk/qt4-gui/src/widgets
- Files:
-
- 2 modified
-
mledit.cpp (modified) (3 diffs)
-
mledit.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt4-gui/src/widgets/mledit.cpp
r6078 r6110 83 83 84 84 setPalette(pal); 85 }86 87 void MLEdit::setCheckSpellingEnabled(bool check)88 {89 #ifdef MLEDIT_USE_KTEXTEDIT90 KTextEdit::setCheckSpellingEnabled(check);91 #else92 (void) check; // Remove warning about unused parameter93 #endif94 }95 96 bool MLEdit::checkSpellingEnabled() const97 {98 #ifdef MLEDIT_USE_KTEXTEDIT99 return KTextEdit::checkSpellingEnabled();100 #else101 return false;102 #endif103 85 } 104 86 … … 207 189 } 208 190 191 #ifndef USE_KDE 209 192 void MLEdit::contextMenuEvent(QContextMenuEvent* event) 210 193 { … … 223 206 delete menu; 224 207 } 208 #endif 225 209 226 210 void MLEdit::updateFont() -
trunk/qt4-gui/src/widgets/mledit.h
r6064 r6110 64 64 void setForeground(const QColor& color); 65 65 66 void setCheckSpellingEnabled(bool check); 67 bool checkSpellingEnabled() const; 66 #ifndef USE_KDE 67 void setCheckSpellingEnabled(bool /* check */) {} 68 bool checkSpellingEnabled() const { return false; } 69 #endif 68 70 69 71 /** … … 102 104 virtual void keyPressEvent(QKeyEvent* event); 103 105 virtual void mousePressEvent(QMouseEvent* event); 106 #ifndef USE_KDE 104 107 virtual void contextMenuEvent(QContextMenuEvent* event); 108 #endif 105 109 106 110 #if 0
