Changeset 6111 for trunk/qt4-gui/src/widgets
- Timestamp:
- 03/22/08 05:17:27 (9 months ago)
- Location:
- trunk/qt4-gui/src/widgets
- Files:
-
- 2 modified
-
mledit.cpp (modified) (5 diffs)
-
mledit.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt4-gui/src/widgets/mledit.cpp
r6110 r6111 33 33 34 34 MLEdit::MLEdit(bool wordWrap, QWidget* parent, bool /* doQuotes */, const char* name) 35 : BaseClass(parent),35 : MLEDIT_BASE(parent), 36 36 myFixSetTextNewlines(true), 37 37 myLastKeyWasReturn(false), … … 139 139 break; 140 140 default: 141 BaseClass::keyPressEvent(event);141 MLEDIT_BASE::keyPressEvent(event); 142 142 break; 143 143 } … … 180 180 } 181 181 182 BaseClass::keyPressEvent(event);182 MLEDIT_BASE::keyPressEvent(event); 183 183 } 184 184 … … 186 186 { 187 187 emit clicked(); 188 BaseClass::mousePressEvent(event);188 MLEDIT_BASE::mousePressEvent(event); 189 189 } 190 190 … … 233 233 QSize MLEdit::sizeHint() const 234 234 { 235 QSize s = BaseClass::sizeHint();235 QSize s = MLEDIT_BASE::sizeHint(); 236 236 if (myLinesHint > 0) 237 237 s.setHeight(heightForLines(myLinesHint)); -
trunk/qt4-gui/src/widgets/mledit.h
r6110 r6111 25 25 26 26 #ifdef USE_KDE 27 # include <kdeversion.h> 28 # define MLEDIT_USE_KTEXTEDIT 1 29 #endif 30 31 #ifdef MLEDIT_USE_KTEXTEDIT 32 # include <ktextedit.h> 27 # include <KDE/KTextEdit> 28 # define MLEDIT_BASE KTextEdit 33 29 #else 34 30 # include <QTextEdit> 31 # define MLEDIT_BASE QTextEdit 35 32 #endif 36 33 … … 39 36 { 40 37 41 class MLEdit 42 #ifdef MLEDIT_USE_KTEXTEDIT 43 : public KTextEdit 44 #else 45 : public QTextEdit 46 #endif 38 class MLEdit : public MLEDIT_BASE 47 39 { 48 40 Q_OBJECT 49 50 #ifdef MLEDIT_USE_KTEXTEDIT51 typedef KTextEdit BaseClass;52 #else53 typedef QTextEdit BaseClass;54 #endif55 41 56 42 public:
