forked from qt-creator/qt-creator
Remove some workarounds for Qt bugs that have been fixed.
Change-Id: I0e7112ee3f3790fba42fc882cb98e06ec6a2186d Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -81,15 +81,10 @@ DragWidget::DragWidget(QWidget *parent) : QFrame(parent)
|
||||
setFrameShadow(QFrame::Sunken);
|
||||
m_startPos = QPoint(-1, -1);
|
||||
m_pos = QPoint(-1, -1);
|
||||
|
||||
// TODO: The following code should be enabled for OSX
|
||||
// when QTBUG-23205 is fixed
|
||||
if (!HostOsInfo::isMacHost()) {
|
||||
m_dropShadowEffect = new QGraphicsDropShadowEffect;
|
||||
m_dropShadowEffect->setBlurRadius(6);
|
||||
m_dropShadowEffect->setOffset(2, 2);
|
||||
setGraphicsEffect(m_dropShadowEffect);
|
||||
}
|
||||
m_dropShadowEffect = new QGraphicsDropShadowEffect;
|
||||
m_dropShadowEffect->setBlurRadius(6);
|
||||
m_dropShadowEffect->setOffset(2, 2);
|
||||
setGraphicsEffect(m_dropShadowEffect);
|
||||
}
|
||||
|
||||
void DragWidget::mousePressEvent(QMouseEvent * event)
|
||||
@@ -107,14 +102,10 @@ 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
|
||||
if (!HostOsInfo::isMacHost()) {
|
||||
m_dropShadowEffect = new QGraphicsDropShadowEffect;
|
||||
m_dropShadowEffect->setBlurRadius(6);
|
||||
m_dropShadowEffect->setOffset(2, 2);
|
||||
setGraphicsEffect(m_dropShadowEffect);
|
||||
}
|
||||
m_dropShadowEffect = new QGraphicsDropShadowEffect;
|
||||
m_dropShadowEffect->setBlurRadius(6);
|
||||
m_dropShadowEffect->setOffset(2, 2);
|
||||
setGraphicsEffect(m_dropShadowEffect);
|
||||
}
|
||||
QFrame::mouseReleaseEvent(event);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user