summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qpushbutton.cpp
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-06-11 11:39:09 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-06-11 14:07:03 (GMT)
commit35e2a2978a2318ca025393a8f67d30746c8b78fc (patch)
treef96f760ebd7e9c9f7a1f8d5f4400a03a1ae69e44 /src/gui/widgets/qpushbutton.cpp
parent3f7a7c20c8493f62e090e703acfd581a4e3c4d2e (diff)
downloadQt-35e2a2978a2318ca025393a8f67d30746c8b78fc.zip
Qt-35e2a2978a2318ca025393a8f67d30746c8b78fc.tar.gz
Qt-35e2a2978a2318ca025393a8f67d30746c8b78fc.tar.bz2
Removed qApp and replaced with QApplication:: for static member calls
Diffstat (limited to 'src/gui/widgets/qpushbutton.cpp')
-rw-r--r--src/gui/widgets/qpushbutton.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/qpushbutton.cpp b/src/gui/widgets/qpushbutton.cpp
index 5001001..b526f02 100644
--- a/src/gui/widgets/qpushbutton.cpp
+++ b/src/gui/widgets/qpushbutton.cpp
@@ -589,7 +589,7 @@ void QPushButtonPrivate::_q_popupPressed()
int x = globalPos.x();
int y = globalPos.y();
if (horizontal) {
- if (globalPos.y() + rect.height() + menuSize.height() <= qApp->desktop()->height()) {
+ if (globalPos.y() + rect.height() + menuSize.height() <= QApplication::desktop()->height()) {
y += rect.height();
} else {
y -= menuSize.height();
@@ -597,7 +597,7 @@ void QPushButtonPrivate::_q_popupPressed()
if (q->layoutDirection() == Qt::RightToLeft)
x += rect.width() - menuSize.width();
} else {
- if (globalPos.x() + rect.width() + menu->sizeHint().width() <= qApp->desktop()->width())
+ if (globalPos.x() + rect.width() + menu->sizeHint().width() <= QApplication::desktop()->width())
x += rect.width();
else
x -= menuSize.width();