Changeset 6064 for branches/qt-gui_qt4/src/widgets/mledit.h
- Timestamp:
- 02/20/08 04:08:08 (10 months ago)
- Files:
-
- 1 modified
-
branches/qt-gui_qt4/src/widgets/mledit.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/qt-gui_qt4/src/widgets/mledit.h
r5580 r6064 67 67 bool checkSpellingEnabled() const; 68 68 69 /** 70 * Caclulate height for widget to fit a specified number of lines with 71 * current font 72 * 73 * @param lines Number of text lines to calculate for 74 * @return Widget height in pixels 75 */ 76 int heightForLines(int lines) const; 77 78 /** 79 * Set size hint as number of lines of text 80 * 81 * @param lines Lines of text that should be visible 82 */ 83 void setSizeHintLines(int lines); 84 85 /** 86 * Get recommended widget size 87 * 88 * @return Recommended size 89 */ 90 QSize sizeHint() const; 91 69 92 signals: 70 93 void ctrlEnterPressed(); … … 74 97 bool myFixSetTextNewlines; 75 98 bool myLastKeyWasReturn; 99 int myFontHeight; 100 int myLinesHint; 76 101 77 102 virtual void keyPressEvent(QKeyEvent* event);
