summaryrefslogtreecommitdiffstats
path: root/demos/mainwindow
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2010-03-08 14:30:14 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2010-03-08 14:31:56 (GMT)
commitb4519f022e8b715991836894fe97b6338ef7ee2b (patch)
tree147474193c97ff996767c56e5a2b7e0a71bc4ad8 /demos/mainwindow
parentd6e302a1a9bb05f000709830d865441ca7ab8c45 (diff)
downloadQt-b4519f022e8b715991836894fe97b6338ef7ee2b.zip
Qt-b4519f022e8b715991836894fe97b6338ef7ee2b.tar.gz
Qt-b4519f022e8b715991836894fe97b6338ef7ee2b.tar.bz2
fix to mainwindow demo
the mask was not always correctly updated on the "blueTitleBar". Reviewed-by: gabi
Diffstat (limited to 'demos/mainwindow')
-rw-r--r--demos/mainwindow/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/mainwindow/mainwindow.cpp b/demos/mainwindow/mainwindow.cpp
index 32066d7..3ddb74b 100644
--- a/demos/mainwindow/mainwindow.cpp
+++ b/demos/mainwindow/mainwindow.cpp
@@ -329,7 +329,7 @@ void MainWindow::setupDockWidgets(const QMap<QString, QSize> &customSizeHints)
BlueTitleBar *titlebar = new BlueTitleBar(swatch);
swatch->setTitleBarWidget(titlebar);
connect(swatch, SIGNAL(topLevelChanged(bool)), titlebar, SLOT(updateMask()));
- connect(swatch, SIGNAL(featuresChanged(QDockWidget::DockWidgetFeatures)), titlebar, SLOT(updateMask()));
+ connect(swatch, SIGNAL(featuresChanged(QDockWidget::DockWidgetFeatures)), titlebar, SLOT(updateMask()), Qt::QueuedConnection);
#ifdef Q_WS_QWS
QPalette pal = palette();