summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2011-05-02 10:38:33 +0200
committerSamuel Rødal <samuel.rodal@nokia.com>2011-05-02 10:38:33 +0200
commit3086f2098e94754b6bf5359ade8224b351979579 (patch)
tree0a655980130f56059874e2f8ff226e3cbea53761 /src/gui
parent5daea69f74c948803eda099ef772eb164cc57a78 (diff)
Set the window title even if it was set before calling create().
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/kernel/qwindow_qpa.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qwindow_qpa.cpp b/src/gui/kernel/qwindow_qpa.cpp
index 67eeb94e72..aa23683654 100644
--- a/src/gui/kernel/qwindow_qpa.cpp
+++ b/src/gui/kernel/qwindow_qpa.cpp
@@ -88,6 +88,8 @@ void QWindow::create()
if (!d->platformWindow) {
d->platformWindow = QApplicationPrivate::platformIntegration()->createPlatformWindow(this);
d->windowFlags = d->platformWindow->setWindowFlags(d->windowFlags);
+ if (!d->windowTitle.isNull())
+ d->platformWindow->setWindowTitle(d->windowTitle);
}
Q_ASSERT(d->platformWindow);