aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/qmleditorwidgets/contextpanewidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/qmleditorwidgets/contextpanewidget.cpp')
-rw-r--r--src/libs/qmleditorwidgets/contextpanewidget.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libs/qmleditorwidgets/contextpanewidget.cpp b/src/libs/qmleditorwidgets/contextpanewidget.cpp
index d6c6621c80..c33f4142fd 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);
}