diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-11-10 17:01:27 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-11-10 17:01:27 (GMT) |
commit | ba5fea372219000050715ecfac8fba9a6fd1b638 (patch) | |
tree | 2e0d8e5b33f5f6446967c71d7f23bd73ce680673 /src/gui/widgets/qdockarealayout.cpp | |
parent | 2321e8636d7436b70a8afcde16828f00c4b8590e (diff) | |
download | Qt-ba5fea372219000050715ecfac8fba9a6fd1b638.zip Qt-ba5fea372219000050715ecfac8fba9a6fd1b638.tar.gz Qt-ba5fea372219000050715ecfac8fba9a6fd1b638.tar.bz2 |
QDockWidget also emits dockLocationChanged when the state is restored
...on the main window.
Task-number: QTBUG-1304
Reviewed-by: ogoffart
Diffstat (limited to 'src/gui/widgets/qdockarealayout.cpp')
-rw-r--r-- | src/gui/widgets/qdockarealayout.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/widgets/qdockarealayout.cpp b/src/gui/widgets/qdockarealayout.cpp index 27e145f..953edab 100644 --- a/src/gui/widgets/qdockarealayout.cpp +++ b/src/gui/widgets/qdockarealayout.cpp @@ -1841,7 +1841,6 @@ void QDockAreaLayoutInfo::saveState(QDataStream &stream) const } } -#ifdef Q_WS_MAC static Qt::DockWidgetArea toDockWidgetArea(QInternal::DockPosition pos) { switch (pos) { @@ -1853,7 +1852,6 @@ static Qt::DockWidgetArea toDockWidgetArea(QInternal::DockPosition pos) } return Qt::NoDockWidgetArea; } -#endif static QRect constrainedRect(QRect rect, const QRect &desktop) { @@ -1980,6 +1978,7 @@ bool QDockAreaLayoutInfo::restoreState(QDataStream &stream, QList<QDockWidget*> if (!testing) { widget->setFloating(false); widget->setVisible(flags & StateFlagVisible); + emit widget->dockLocationChanged(toDockWidgetArea(dockPos)); } } |