summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qmdisubwindow_p.h
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-06-10 13:31:43 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-06-10 15:02:55 (GMT)
commit4a8a851315ba10824ac107084ccff9de649418ea (patch)
treeaa5c2696f6a3a5a8dd0e74b57c04003769f10455 /src/gui/widgets/qmdisubwindow_p.h
parent747444c6776d948dad479e7b6f3564d0515d4e52 (diff)
downloadQt-4a8a851315ba10824ac107084ccff9de649418ea.zip
Qt-4a8a851315ba10824ac107084ccff9de649418ea.tar.gz
Qt-4a8a851315ba10824ac107084ccff9de649418ea.tar.bz2
removed superflous indirection (ie. using q->..) instead of using the
private class member.
Diffstat (limited to 'src/gui/widgets/qmdisubwindow_p.h')
-rw-r--r--src/gui/widgets/qmdisubwindow_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/qmdisubwindow_p.h b/src/gui/widgets/qmdisubwindow_p.h
index 2e672d6..394f11c 100644
--- a/src/gui/widgets/qmdisubwindow_p.h
+++ b/src/gui/widgets/qmdisubwindow_p.h
@@ -287,7 +287,7 @@ public:
inline int titleBarHeight() const
{
Q_Q(const QMdiSubWindow);
- if (!q->parent() || q->windowFlags() & Qt::FramelessWindowHint
+ if (!parent || q->windowFlags() & Qt::FramelessWindowHint
|| (q->isMaximized() && !drawTitleBarWhenMaximized())) {
return 0;
}