Show
Ignore:
Timestamp:
03/22/08 05:17:27 (9 months ago)
Author:
flynd
Message:

Use same type of defines for base class as used for tab widget.

Location:
trunk/qt4-gui/src/widgets
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/qt4-gui/src/widgets/mledit.cpp

    r6110 r6111  
    3333 
    3434MLEdit::MLEdit(bool wordWrap, QWidget* parent, bool /* doQuotes */, const char* name) 
    35   : BaseClass(parent), 
     35  : MLEDIT_BASE(parent), 
    3636    myFixSetTextNewlines(true), 
    3737    myLastKeyWasReturn(false), 
     
    139139        break; 
    140140      default: 
    141         BaseClass::keyPressEvent(event); 
     141        MLEDIT_BASE::keyPressEvent(event); 
    142142        break; 
    143143    } 
     
    180180  } 
    181181 
    182   BaseClass::keyPressEvent(event); 
     182  MLEDIT_BASE::keyPressEvent(event); 
    183183} 
    184184 
     
    186186{ 
    187187  emit clicked(); 
    188   BaseClass::mousePressEvent(event); 
     188  MLEDIT_BASE::mousePressEvent(event); 
    189189} 
    190190 
     
    233233QSize MLEdit::sizeHint() const 
    234234{ 
    235   QSize s = BaseClass::sizeHint(); 
     235  QSize s = MLEDIT_BASE::sizeHint(); 
    236236  if (myLinesHint > 0) 
    237237    s.setHeight(heightForLines(myLinesHint)); 
  • trunk/qt4-gui/src/widgets/mledit.h

    r6110 r6111  
    2525 
    2626#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 
    3329#else 
    3430# include <QTextEdit> 
     31# define MLEDIT_BASE QTextEdit 
    3532#endif 
    3633 
     
    3936{ 
    4037 
    41 class MLEdit 
    42 #ifdef MLEDIT_USE_KTEXTEDIT 
    43   : public KTextEdit 
    44 #else 
    45   : public QTextEdit 
    46 #endif 
     38class MLEdit : public MLEDIT_BASE 
    4739{ 
    4840  Q_OBJECT 
    49  
    50 #ifdef MLEDIT_USE_KTEXTEDIT 
    51   typedef KTextEdit BaseClass; 
    52 #else 
    53   typedef QTextEdit BaseClass; 
    54 #endif 
    5541 
    5642public: