diff options
author | Aurindam Jana <aurindam.jana@nokia.com> | 2012-07-05 14:00:45 +0200 |
---|---|---|
committer | Aurindam Jana <aurindam.jana@nokia.com> | 2012-07-10 20:14:02 +0200 |
commit | d0152332a47837e1ec8522175a0a6d3571c4fba5 (patch) | |
tree | 59484d93c4c888cf4bbe324ca703c845b2a788ef /src/libs/qmleditorwidgets/contextpanewidget.cpp | |
parent | dd21ecfeb8abb1d4986e67dfdda7e9d3dc4081fc (diff) |
Disable QGraphicsDropShadowEffect for Mac
The QGraphicsDropShadowEffect::draw() results in a crash on
Mac https://bugreports.qt-project.org/browse/QTBUG-23205 .
Task-number: QTCREATORBUG-7605
Change-Id: Icee71e6452997b2daede7ef4735e508caf68aa1a
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
Diffstat (limited to 'src/libs/qmleditorwidgets/contextpanewidget.cpp')
-rw-r--r-- | src/libs/qmleditorwidgets/contextpanewidget.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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); } |