diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2012-02-17 10:19:35 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-17 11:44:29 +0100 |
commit | f89d02e0039562fadf8d8708bd71cff42a46b7a7 (patch) | |
tree | 7169dbdb1009fd4f725dc6dc36b6f584fc67a01c /src/gui/kernel/qwindow.cpp | |
parent | 64d06c1c673253cd247947e840ba96c628c1a4b1 (diff) |
Fixed API in QWindow: visible() -> isVisible().
Change-Id: I14706abb8441c153f738563cb1a46205fdb2dae6
QWindow::visible() did not follow the API guidelines.
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Diffstat (limited to 'src/gui/kernel/qwindow.cpp')
-rw-r--r-- | src/gui/kernel/qwindow.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gui/kernel/qwindow.cpp b/src/gui/kernel/qwindow.cpp index d15198c505..96fb394643 100644 --- a/src/gui/kernel/qwindow.cpp +++ b/src/gui/kernel/qwindow.cpp @@ -185,8 +185,14 @@ void QWindow::setVisible(bool visible) } } + bool QWindow::visible() const { + return isVisible(); +} + +bool QWindow::isVisible() const +{ Q_D(const QWindow); return d->visible; @@ -965,7 +971,7 @@ bool QWindow::event(QEvent *ev) case QEvent::Close: { Q_D(QWindow); - bool wasVisible = visible(); + bool wasVisible = isVisible(); destroy(); if (wasVisible) d->maybeQuitOnLastWindowClosed(); @@ -1099,7 +1105,7 @@ void QWindowPrivate::maybeQuitOnLastWindowClosed() bool lastWindowClosed = true; for (int i = 0; i < list.size(); ++i) { QWindow *w = list.at(i); - if (!w->visible()) + if (!w->isVisible()) continue; lastWindowClosed = false; break; |