mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-04-02 01:19:59 +02:00
Element editor add touchpad gestures, thank Yoann
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3533 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -47,6 +47,8 @@ class ElementView : public QGraphicsView {
|
||||
void mousePressEvent(QMouseEvent *);
|
||||
void mouseMoveEvent(QMouseEvent *);
|
||||
void mouseReleaseEvent(QMouseEvent *);
|
||||
bool gestureEvent(QGestureEvent *event);
|
||||
bool event(QEvent *event);
|
||||
void wheelEvent(QWheelEvent *);
|
||||
virtual void drawBackground(QPainter *, const QRectF &);
|
||||
|
||||
@@ -58,6 +60,8 @@ class ElementView : public QGraphicsView {
|
||||
void setSelectionMode();
|
||||
void zoomIn();
|
||||
void zoomOut();
|
||||
void zoomInSlowly();
|
||||
void zoomOutSlowly();
|
||||
void zoomFit();
|
||||
void zoomReset();
|
||||
void adjustSceneRect();
|
||||
@@ -86,6 +90,7 @@ class ElementView : public QGraphicsView {
|
||||
QPointF start_top_left_corner_;
|
||||
QPointF reference_view_;
|
||||
QPointF center_view_;
|
||||
bool gestures() const;
|
||||
bool is_moving_view_; ///< Indicate whether the visualisation mode has been enabled due to mouse/keyboard interactions
|
||||
};
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user