diff --git a/src/libs/qmleditorwidgets/contextpanewidget.cpp b/src/libs/qmleditorwidgets/contextpanewidget.cpp index d6c6621c804..c33f4142fd7 100644 --- a/src/libs/qmleditorwidgets/contextpanewidget.cpp +++ b/src/libs/qmleditorwidgets/contextpanewidget.cpp @@ -102,10 +102,14 @@ DragWidget::DragWidget(QWidget *parent) : QFrame(parent) m_startPos = QPoint(-1, -1); m_pos = QPoint(-1, -1); + // TODO: The following code should be enabled for OSX + // when QTBUG-23205 is fixed +#ifndef Q_OS_MAC m_dropShadowEffect = new QGraphicsDropShadowEffect; m_dropShadowEffect->setBlurRadius(6); m_dropShadowEffect->setOffset(2, 2); setGraphicsEffect(m_dropShadowEffect); +#endif } void DragWidget::mousePressEvent(QMouseEvent * event) @@ -123,10 +127,14 @@ void DragWidget::mouseReleaseEvent(QMouseEvent *event) { if (event->button() == Qt::LeftButton) { m_startPos = QPoint(-1, -1); + // TODO: The following code should be enabled for OSX + // when QTBUG-23205 is fixed +#ifndef Q_OS_MAC m_dropShadowEffect = new QGraphicsDropShadowEffect; m_dropShadowEffect->setBlurRadius(6); m_dropShadowEffect->setOffset(2, 2); setGraphicsEffect(m_dropShadowEffect); +#endif } QFrame::mouseReleaseEvent(event); } diff --git a/src/libs/qmleditorwidgets/contextpanewidgetimage.cpp b/src/libs/qmleditorwidgets/contextpanewidgetimage.cpp index fd5f3256e93..6b984a183b2 100644 --- a/src/libs/qmleditorwidgets/contextpanewidgetimage.cpp +++ b/src/libs/qmleditorwidgets/contextpanewidgetimage.cpp @@ -611,10 +611,14 @@ PreviewLabel::PreviewLabel(QWidget *parent) m_hooverInfo->setFrameShape(QFrame::StyledPanel); m_hooverInfo->setFrameShadow(QFrame::Sunken); + // TODO: The following code should be enabled for OSX + // when QTBUG-23205 is fixed +#ifndef Q_OS_MAC QGraphicsDropShadowEffect *dropShadowEffect = new QGraphicsDropShadowEffect; dropShadowEffect->setBlurRadius(4); dropShadowEffect->setOffset(2, 2); m_hooverInfo->setGraphicsEffect(dropShadowEffect); +#endif m_hooverInfo->setAutoFillBackground(true); m_hooverInfo->raise(); } diff --git a/src/libs/qmleditorwidgets/customcolordialog.cpp b/src/libs/qmleditorwidgets/customcolordialog.cpp index 59bd6744ebe..f683976599b 100644 --- a/src/libs/qmleditorwidgets/customcolordialog.cpp +++ b/src/libs/qmleditorwidgets/customcolordialog.cpp @@ -52,10 +52,14 @@ CustomColorDialog::CustomColorDialog(QWidget *parent) : QFrame(parent ) setFrameShape(QFrame::StyledPanel); setFrameShadow(QFrame::Sunken); + // TODO: The following code should be enabled for OSX + // when QTBUG-23205 is fixed +#ifndef Q_OS_MAC QGraphicsDropShadowEffect *dropShadowEffect = new QGraphicsDropShadowEffect; dropShadowEffect->setBlurRadius(6); dropShadowEffect->setOffset(2, 2); setGraphicsEffect(dropShadowEffect); +#endif setAutoFillBackground(true); m_hueControl = new HueControl(this);