Definition at line 25 of file kis_zoom_action.cpp.
◆ Private()
◆ centerPoint()
| QPointF KisZoomAction::Private::centerPoint |
( |
QTouchEvent * | event | ) |
|
Definition at line 45 of file kis_zoom_action.cpp.
46{
47 QPointF result;
48 int count = 0;
49
50 Q_FOREACH (QTouchEvent::TouchPoint point, event->touchPoints()) {
51 if (point.state() != Qt::TouchPointReleased) {
52 result += point.pos();
53 count++;
54 }
55 }
56
57 if (count > 0) {
58 return result / count;
59 } else {
60 return QPointF();
61 }
62}
◆ actionStillPoint
◆ lastDiscreteZoomDistance
| qreal KisZoomAction::Private::lastDiscreteZoomDistance {0.0} |
◆ lastDistance
| float KisZoomAction::Private::lastDistance {0.0} |
◆ lastPosition
| QPointF KisZoomAction::Private::lastPosition |
◆ mode
◆ startZoom
| qreal KisZoomAction::Private::startZoom {1.0} |
The documentation for this class was generated from the following file: