Compare commits
2 Commits
0f13cf5196
...
745376adfb
| Author | SHA1 | Date | |
|---|---|---|---|
| 745376adfb | |||
| 13d4e6cb75 |
@@ -342,6 +342,7 @@ void Graphic::procGesture(QGesture * g) {
|
|||||||
QPointF dp = -pg->delta();
|
QPointF dp = -pg->delta();
|
||||||
dp.rx() /= getScaleX();
|
dp.rx() /= getScaleX();
|
||||||
dp.ry() /= getScaleY();
|
dp.ry() /= getScaleY();
|
||||||
|
dp.ry() = -dp.y();
|
||||||
selrect.translate(dp);
|
selrect.translate(dp);
|
||||||
totalUpdate();
|
totalUpdate();
|
||||||
} break;
|
} break;
|
||||||
@@ -357,11 +358,7 @@ void Graphic::procGesture(QGesture * g) {
|
|||||||
} break;
|
} break;
|
||||||
case Qt::TapAndHoldGesture: {
|
case Qt::TapAndHoldGesture: {
|
||||||
QTapAndHoldGesture * pg = (QTapAndHoldGesture *)g;
|
QTapAndHoldGesture * pg = (QTapAndHoldGesture *)g;
|
||||||
if (pg->state() == Qt::GestureStarted)
|
if (pg->state() == Qt::GestureStarted) QMetaObject::invokeMethod(this, [this]() { showMenu(); }, Qt::QueuedConnection);
|
||||||
QMetaObject::invokeMethod(
|
|
||||||
this,
|
|
||||||
[this]() { showMenu(); },
|
|
||||||
Qt::QueuedConnection);
|
|
||||||
} break;
|
} break;
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user