diff options
author | Robert Griebl <rgriebl@trolltech.com> | 2009-12-02 16:43:45 (GMT) |
---|---|---|
committer | Robert Griebl <rgriebl@trolltech.com> | 2009-12-03 10:31:37 (GMT) |
commit | 635a9da9c42834c0c9c3b2329db4aae408ce820a (patch) | |
tree | 8c8440b3a7a23484ceb29f08505c0f745d5f9d88 /src/gui/widgets/qlineedit_p.h | |
parent | e1ef51cdddf4187ab68d09f42438e45a6bbf85f4 (diff) | |
download | Qt-635a9da9c42834c0c9c3b2329db4aae408ce820a.zip Qt-635a9da9c42834c0c9c3b2329db4aae408ce820a.tar.gz Qt-635a9da9c42834c0c9c3b2329db4aae408ce820a.tar.bz2 |
Added a placeholderText(*) property to QLineEdit.
Please note: Qt for Maemo5 will already use it in 4.6, while the other
platforms will be enabled in 4.7 (otherwise be would break BIC there)
This commit adds a so-called placeholder text for line edits. If the widget
doesn't have focus and the text() is empty, this placeholder will be shown.
(*) also known as hint, click-message or descriptive text
Reviewed-by: jasplin
Diffstat (limited to 'src/gui/widgets/qlineedit_p.h')
-rw-r--r-- | src/gui/widgets/qlineedit_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/widgets/qlineedit_p.h b/src/gui/widgets/qlineedit_p.h index 244d2be..dc648e8 100644 --- a/src/gui/widgets/qlineedit_p.h +++ b/src/gui/widgets/qlineedit_p.h @@ -142,6 +142,8 @@ public: int topTextMargin; int rightTextMargin; int bottomTextMargin; + + QString placeholderText; }; #endif // QT_NO_LINEEDIT |