summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets/qcombobox_p.h
diff options
context:
space:
mode:
authorChristian Ehrlicher <ch.ehrlicher@gmx.de>2019-09-24 13:58:08 +0200
committerChristian Ehrlicher <ch.ehrlicher@gmx.de>2019-11-15 20:45:24 +0100
commit360df2cf74410b05d1cab0192f2d0ff5a39db59e (patch)
tree4a7a7c0b0666e30bb36390857d3905860b647aef /src/widgets/widgets/qcombobox_p.h
parent5abb976f23ef0f3cbb7b720e523c08d768c76c0e (diff)
QComboBox: add property placeholderText
QComboBox had no option to tell the user that he must select an item - there was no placeholder text like e.g. in QLineEdit. This feature is widely used in html forms so we should support it also. Therefore add a new property 'placeholderText' to specify a text which should be shown when the current selected index is invalid. [ChangeLog][QtWidgets][QComboBox] QComboBox got a new property 'placeholderText' Change-Id: If6dac45c9f43455474e267907b0b0d893301c611 Fixes: QTBUG-1556 Fixes: QTBUG-2776 Fixes: QTBUG-77141 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/widgets/widgets/qcombobox_p.h')
-rw-r--r--src/widgets/widgets/qcombobox_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets/widgets/qcombobox_p.h b/src/widgets/widgets/qcombobox_p.h
index 5967776a61..00211d70aa 100644
--- a/src/widgets/widgets/qcombobox_p.h
+++ b/src/widgets/widgets/qcombobox_p.h
@@ -417,6 +417,7 @@ public:
int maxVisibleItems;
int maxCount;
int modelColumn;
+ QString placeholderText;
bool inserting;
mutable QSize minimumSizeHint;
mutable QSize sizeHint;