Changeset 6239 for trunk/qt4-gui/src/widgets/mledit.cpp
- Timestamp:
- 06/06/08 07:23:44 (6 months ago)
- Files:
-
- 1 modified
-
trunk/qt4-gui/src/widgets/mledit.cpp (modified) (3 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
