summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qdockwidget.cpp
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-06-12 11:56:30 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-06-12 11:59:20 (GMT)
commitf2b93868f48a3e2d6e462ca8a051ab47eefef49d (patch)
tree4c8dfac6a9dfae0dd519880b656d0758394aed4c /src/gui/widgets/qdockwidget.cpp
parent8134541fc3229177ec7545fa0d3ea49eadc8f00c (diff)
downloadQt-f2b93868f48a3e2d6e462ca8a051ab47eefef49d.zip
Qt-f2b93868f48a3e2d6e462ca8a051ab47eefef49d.tar.gz
Qt-f2b93868f48a3e2d6e462ca8a051ab47eefef49d.tar.bz2
QMenu, QMenuBar: small cleanup
Removed calls to the widget getters because we have the members directly in the private class.
Diffstat (limited to 'src/gui/widgets/qdockwidget.cpp')
-rw-r--r--src/gui/widgets/qdockwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/qdockwidget.cpp b/src/gui/widgets/qdockwidget.cpp
index 30f9a87..e20fedd 100644
--- a/src/gui/widgets/qdockwidget.cpp
+++ b/src/gui/widgets/qdockwidget.cpp
@@ -1053,7 +1053,7 @@ void QDockWidgetPrivate::setWindowState(bool floating, bool unplug, const QRect
if (floating != wasFloating) {
emit q->topLevelChanged(floating);
- if (!floating && q->parentWidget()) {
+ if (!floating && parent) {
QMainWindowLayout *mwlayout = qobject_cast<QMainWindowLayout *>(q->parentWidget()->layout());
if (mwlayout)
emit q->dockLocationChanged(mwlayout->dockWidgetArea(q));