summaryrefslogtreecommitdiff
path: root/src/gui/kernel
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-09-17 19:56:18 +0200
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-09-18 16:12:45 +0200
commitd5db1f2bb5d520277f5d3ddfa5a50c385aebc753 (patch)
tree2305fba6b7563aa9a19dffa882fc5a8b3c73c84a /src/gui/kernel
parente04f44a4746928346b90acf74ec0bb67fee3c0d6 (diff)
downloadqt4-tools-d5db1f2bb5d520277f5d3ddfa5a50c385aebc753.tar.gz
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
Diffstat (limited to 'src/gui/kernel')
-rw-r--r--src/gui/kernel/qwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qwidget.cpp b/src/gui/kernel/qwidget.cpp
index c86012d726..860b98b7ea 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);