Changeset 6239 for trunk/qt4-gui/src/widgets
- Timestamp:
- 06/06/08 07:23:44 (6 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
r6111 r6239 32 32 /* TRANSLATOR LicqQtGui::MLEdit */ 33 33 34 MLEdit::MLEdit(bool wordWrap, QWidget* parent, bool /* doQuotes */, const char* name)34 MLEdit::MLEdit(bool wordWrap, QWidget* parent, bool useFixedFont, const char* name) 35 35 : MLEDIT_BASE(parent), 36 myUseFixedFont(useFixedFont), 36 37 myFixSetTextNewlines(true), 37 38 myLastKeyWasReturn(false), … … 46 47 47 48 updateFont(); 48 connect(Config::General::instance(), SIGNAL(fontChanged()), SLOT(updateFont())); 49 connect(Config::General::instance(), 50 myUseFixedFont ? SIGNAL(fixedFontChanged()) : SIGNAL(fontChanged()), 51 SLOT(updateFont())); 49 52 } 50 53 … … 210 213 void MLEdit::updateFont() 211 214 { 212 setFont(Config::General::instance()->editFont()); 215 setFont(myUseFixedFont ? Config::General::instance()->fixedFont() : 216 Config::General::instance()->editFont()); 213 217 214 218 // Get height of current font -
trunk/qt4-gui/src/widgets/mledit.h
r6111 r6239 41 41 42 42 public: 43 MLEdit(bool wordWrap, QWidget* parent = 0, bool handlequotes= false, const char* name = 0);43 MLEdit(bool wordWrap, QWidget* parent = 0, bool useFixedFont = false, const char* name = 0); 44 44 virtual ~MLEdit(); 45 45 … … 83 83 84 84 private: 85 bool myUseFixedFont; 85 86 bool myFixSetTextNewlines; 86 87 bool myLastKeyWasReturn;
