forked from qt-creator/qt-creator
QmlEditorWidgets: Fix wrong condition
Change-Id: Ib45a5470b0222afd61526ab1318dc02587aeb66d Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
40bfca381c
commit
4a71b6c035
@@ -129,7 +129,7 @@ static inline int limit(int a, int min, int max)
|
|||||||
|
|
||||||
void DragWidget::mouseMoveEvent(QMouseEvent * event)
|
void DragWidget::mouseMoveEvent(QMouseEvent * event)
|
||||||
{
|
{
|
||||||
if (event->buttons() && Qt::LeftButton) {
|
if (event->buttons() & Qt::LeftButton) {
|
||||||
if (m_startPos != QPoint(-1, -1)) {
|
if (m_startPos != QPoint(-1, -1)) {
|
||||||
QPoint newPos = parentWidget()->mapFromGlobal(event->globalPos() - m_startPos);
|
QPoint newPos = parentWidget()->mapFromGlobal(event->globalPos() - m_startPos);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user