summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets/qtextedit_p.h
diff options
context:
space:
mode:
authorBenjamin Port <benjamin.port@ben2367.fr>2013-04-10 17:49:57 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-05-28 10:53:32 +0200
commitaedeb1cca6112962284c477d5a2c240519910891 (patch)
treef270af824dcb19d8fe6ba379d6270c47ab6bf8e9 /src/widgets/widgets/qtextedit_p.h
parent7ed15da3c1b9e2bb26f414a10bfc6e6d79d7cc7b (diff)
Added a placeholderText property to QTextEdit.
This commit adds a placeholder text for text edit. If text edit doesn't have focus and the document() is empty, this placeholder will be shown. Change-Id: I8b51f1a246452b63d6390e94853cf2864a7ff05f Reviewed-by: David Faure (KDE) <faure@kde.org>
Diffstat (limited to 'src/widgets/widgets/qtextedit_p.h')
-rw-r--r--src/widgets/widgets/qtextedit_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/widgets/widgets/qtextedit_p.h b/src/widgets/widgets/qtextedit_p.h
index 1ce68dc23e..daa6eb5ed0 100644
--- a/src/widgets/widgets/qtextedit_p.h
+++ b/src/widgets/widgets/qtextedit_p.h
@@ -130,6 +130,8 @@ public:
QString anchorToScrollToWhenVisible;
+ QString placeholderText;
+
#ifdef QT_KEYPAD_NAVIGATION
QBasicTimer deleteAllTimer;
#endif