diff --git a/UI/CWorldEditor.ui b/UI/CWorldEditor.ui index 1baa3f06..3a5c92f1 100644 --- a/UI/CWorldEditor.ui +++ b/UI/CWorldEditor.ui @@ -153,7 +153,10 @@ - Qt::NoFocus + Qt::TabFocus + + + Qt::NoContextMenu QAbstractSpinBox::CorrectToNearestValue @@ -203,7 +206,10 @@ - Qt::NoFocus + Qt::TabFocus + + + Qt::NoContextMenu QAbstractSpinBox::CorrectToNearestValue @@ -253,7 +259,10 @@ - Qt::ClickFocus + Qt::TabFocus + + + Qt::NoContextMenu QAbstractSpinBox::CorrectToNearestValue @@ -302,6 +311,9 @@ Qt::NoFocus + + Qt::NoContextMenu + true @@ -458,6 +470,9 @@ + + Qt::NoFocus + QTabWidget::North @@ -465,7 +480,7 @@ QTabWidget::Rounded - 1 + 0 @@ -882,6 +897,12 @@
WDraggableSpinBox.h
+ + XSpinBox + YSpinBox + ZSpinBox + TabWidget + diff --git a/UI/WDraggableSpinBox.cpp b/UI/WDraggableSpinBox.cpp index 130ec2ac..453242a4 100644 --- a/UI/WDraggableSpinBox.cpp +++ b/UI/WDraggableSpinBox.cpp @@ -17,11 +17,14 @@ WDraggableSpinBox::~WDraggableSpinBox() { } -void WDraggableSpinBox::mousePressEvent(QMouseEvent*) +void WDraggableSpinBox::mousePressEvent(QMouseEvent *pEvent) { - mBeingDragged = true; - mBeenDragged = false; - mLastY = QCursor::pos().y(); + if (pEvent->button() == Qt::LeftButton) + { + mBeingDragged = true; + mBeenDragged = false; + mLastY = QCursor::pos().y(); + } } void WDraggableSpinBox::mouseReleaseEvent(QMouseEvent *Event)