summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qpushbutton.cpp
diff options
context:
space:
mode:
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..8a18ed0 100644
--- a/src/gui/widgets/qpushbutton.cpp
+++ b/src/gui/widgets/qpushbutton.cpp
@@ -60,6 +60,7 @@
#include "qdialogbuttonbox.h"
#ifdef Q_WS_MAC
#include "qmacstyle_mac.h"
+#include "private/qmacstyle_mac_p.h"
#endif // Q_WS_MAC
#ifndef QT_NO_ACCESSIBILITY
@@ -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