summaryrefslogtreecommitdiffstats
path: root/src/widgets/styles
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@nokia.com>2012-01-30 09:52:51 +0100
committerQt by Nokia <qt-info@nokia.com>2012-01-31 16:17:55 +0100
commitef63b7befd5b0d6726b709aa79f6503322af1462 (patch)
treef2a156531349082ced7b020b16c3512ad8943efe /src/widgets/styles
parenteb60e93d347bfa439df3e900b1fc899ed85fb6de (diff)
Mac: Fix compilation with -qtnamespace set
Change-Id: Id3b9f4e3edf2caeac32c8a44278cdf05a1fc70fb Reviewed-by: hjk <qthjk@ovi.com> Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
Diffstat (limited to 'src/widgets/styles')
-rw-r--r--src/widgets/styles/qmacstyle_mac.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/styles/qmacstyle_mac.mm b/src/widgets/styles/qmacstyle_mac.mm
index 6f5891efc4..09cb9cc016 100644
--- a/src/widgets/styles/qmacstyle_mac.mm
+++ b/src/widgets/styles/qmacstyle_mac.mm
@@ -2105,7 +2105,7 @@ void QMacStyle::unpolish(QWidget* w)
}
}
- if (QRubberBand *rubber = ::qobject_cast<QRubberBand*>(w)) {
+ if (QRubberBand *rubber = qobject_cast<QRubberBand*>(w)) {
rubber->setWindowOpacity(1.0);
rubber->setAttribute(Qt::WA_PaintOnScreen, true);
rubber->setAttribute(Qt::WA_NoSystemBackground, true);
@@ -3538,7 +3538,7 @@ void QMacStyle::drawControl(ControlElement ce, const QStyleOption *opt, QPainter
QCommonStyle::drawControl(ce, opt, p, w);
break;
case CE_PushButtonBevel:
- if (const QStyleOptionButton *btn = ::qstyleoption_cast<const QStyleOptionButton *>(opt)) {
+ if (const QStyleOptionButton *btn = qstyleoption_cast<const QStyleOptionButton *>(opt)) {
if (!(btn->state & (State_Raised | State_Sunken | State_On)))
break;