diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-06-12 11:56:30 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-06-12 11:59:20 (GMT) |
commit | f2b93868f48a3e2d6e462ca8a051ab47eefef49d (patch) | |
tree | 4c8dfac6a9dfae0dd519880b656d0758394aed4c /src/gui/widgets/qsizegrip.cpp | |
parent | 8134541fc3229177ec7545fa0d3ea49eadc8f00c (diff) | |
download | Qt-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/qsizegrip.cpp')
-rw-r--r-- | src/gui/widgets/qsizegrip.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/qsizegrip.cpp b/src/gui/widgets/qsizegrip.cpp index 6458b15..244d34a 100644 --- a/src/gui/widgets/qsizegrip.cpp +++ b/src/gui/widgets/qsizegrip.cpp @@ -139,7 +139,7 @@ public: void QSizeGripPrivate::updateMacSizer(bool hide) const { Q_Q(const QSizeGrip); - if (QApplication::closingDown() || !q->parentWidget()) + if (QApplication::closingDown() || !parent) return; QWidget *topLevelWindow = qt_sizegrip_topLevelWidget(const_cast<QSizeGrip *>(q)); if(topLevelWindow && topLevelWindow->isWindow()) |