diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-09-17 17:56:18 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-09-18 14:12:45 (GMT) |
commit | d5db1f2bb5d520277f5d3ddfa5a50c385aebc753 (patch) | |
tree | 2305fba6b7563aa9a19dffa882fc5a8b3c73c84a | |
parent | e04f44a4746928346b90acf74ec0bb67fee3c0d6 (diff) | |
download | Qt-d5db1f2bb5d520277f5d3ddfa5a50c385aebc753.zip Qt-d5db1f2bb5d520277f5d3ddfa5a50c385aebc753.tar.gz Qt-d5db1f2bb5d520277f5d3ddfa5a50c385aebc753.tar.bz2 |
Allow forcing an empty window title.
When a user sets a window title on a window to an empty string we will
not check if the value was an empty string before. This handles a
special case on X11 and Windows when we set the window title to the
application executable name by default if the user didn't provide the
title, so if the user explicitely wants to remove the windowtitle
completely and make it empty, he will be able to set it to an empty
string.
Reviewed-by: Olivier Goffart
Reviewed-by: Prasanth Ullattil
-rw-r--r-- | src/gui/kernel/qwidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qwidget.cpp b/src/gui/kernel/qwidget.cpp index c86012d..860b98b 100644 --- a/src/gui/kernel/qwidget.cpp +++ b/src/gui/kernel/qwidget.cpp @@ -5688,7 +5688,7 @@ void QWidget::setWindowIconText(const QString &iconText) void QWidget::setWindowTitle(const QString &title) { - if (QWidget::windowTitle() == title) + if (QWidget::windowTitle() == title && !title.isEmpty() && !title.isNull()) return; Q_D(QWidget); |