summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qpushbutton.cpp
diff options
context:
space:
mode:
authorCarlos Manuel Duclos Vergara <carlos.duclos@nokia.com>2010-05-21 12:32:05 (GMT)
committerCarlos Manuel Duclos Vergara <carlos.duclos@nokia.com>2010-05-21 12:37:53 (GMT)
commit4377e247e135967eb7b4c89906415abecb283bd3 (patch)
tree513ba2d038d43513af78ba6b3af36c2830c57558 /src/gui/widgets/qpushbutton.cpp
parent49a6f4a7d87def3816cebf0115ddadf43e9c4d01 (diff)
downloadQt-4377e247e135967eb7b4c89906415abecb283bd3.zip
Qt-4377e247e135967eb7b4c89906415abecb283bd3.tar.gz
Qt-4377e247e135967eb7b4c89906415abecb283bd3.tar.bz2
Fixing incorrect addition of public API symbols.
This commit is related to 49a6f4a7d87def3816cebf0115ddadf43e9c4d01 and contains all the files that were modified. The previous commit contained only the newly added file. Reviewed-by: jbache
Diffstat (limited to 'src/gui/widgets/qpushbutton.cpp')
-rw-r--r--src/gui/widgets/qpushbutton.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/widgets/qpushbutton.cpp b/src/gui/widgets/qpushbutton.cpp
index 7b8c0db..d73cf6f 100644
--- a/src/gui/widgets/qpushbutton.cpp
+++ b/src/gui/widgets/qpushbutton.cpp
@@ -68,6 +68,7 @@
#include "private/qmenu_p.h"
#include "private/qpushbutton_p.h"
+#include "private/qmacstyle_mac_p.h"
QT_BEGIN_NAMESPACE
@@ -705,10 +706,10 @@ bool QPushButton::hitButton(const QPoint &pos) const
bool QPushButtonPrivate::hitButton(const QPoint &pos)
{
Q_Q(QPushButton);
- QRect roundedRect(q->rect().left() + QMacStyle::PushButtonLeftOffset,
- q->rect().top() + QMacStyle::PushButtonContentPadding,
- q->rect().width() - QMacStyle::PushButtonRightOffset,
- q->rect().height() - QMacStyle::PushButtonBottomOffset);
+ QRect roundedRect(q->rect().left() + QMacStylePrivate::PushButtonLeftOffset,
+ q->rect().top() + QMacStylePrivate::PushButtonContentPadding,
+ q->rect().width() - QMacStylePrivate::PushButtonRightOffset,
+ q->rect().height() - QMacStylePrivate::PushButtonBottomOffset);
return roundedRect.contains(pos);
}
#endif // Q_WS_MAC