Commit 4a71b6c0 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

QmlEditorWidgets: Fix wrong condition



Change-Id: Ib45a5470b0222afd61526ab1318dc02587aeb66d
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent 40bfca38
......@@ -129,7 +129,7 @@ static inline int limit(int a, int min, int max)
void DragWidget::mouseMoveEvent(QMouseEvent * event)
{
if (event->buttons() && Qt::LeftButton) {
if (event->buttons() & Qt::LeftButton) {
if (m_startPos != QPoint(-1, -1)) {
QPoint newPos = parentWidget()->mapFromGlobal(event->globalPos() - m_startPos);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment