diff options
author | Shawn Rutledge <shawn.rutledge@digia.com> | 2015-03-02 16:53:33 +0100 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@digia.com> | 2015-03-06 19:54:57 +0000 |
commit | 8b0fcd871805465629c006fbf5867e0c8a6fdaf0 (patch) | |
tree | 1eb82693fd69533b18685063e0df2741ce567e8d /tests | |
parent | 653bdcca8e683f5a3d485df885c0bed217a02a6b (diff) |
xcb: implement and deprecate QWidget::setWindowIconText()
This is a little-used feature which only affects how minimized icons
are displayed on certain older window managers, and is not necessary
even then. It has not been implemented in Qt 5 until now.
Task-number: QTBUG-44659
Change-Id: Ie6ead7a6f922878b349a096d905bf7f675dc2f31
Reviewed-by: Jørgen Lind <jorgen.lind@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/manual/qscreen/propertywatcher.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/manual/qscreen/propertywatcher.cpp b/tests/manual/qscreen/propertywatcher.cpp index cfb5ea272d..19668a8d26 100644 --- a/tests/manual/qscreen/propertywatcher.cpp +++ b/tests/manual/qscreen/propertywatcher.cpp @@ -50,6 +50,8 @@ PropertyWatcher::PropertyWatcher(QObject *subject, QString annotation, QWidget * if (prop.isReadable()) { PropertyField* field = new PropertyField(m_subject, prop); m_layout->addRow(prop.name(), field); + if (!qstrcmp(prop.name(), "name")) + setWindowIconText(prop.read(subject).toString()); } } QPushButton *updateButton = new QPushButton("update"); |