Set the wheelEvent Like libreCad or Autocad: Onclick select visu mode and drag schema.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2106 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
cfdev
2013-04-13 12:26:42 +00:00
parent 1a27dd8fb3
commit ff916f1320
2 changed files with 38 additions and 21 deletions

View File

@@ -52,6 +52,7 @@ class DiagramView : public QGraphicsView {
bool fresh_focus_in_; ///< Indicate the focus was freshly gained
ElementsLocation next_location_;
QPoint next_position_;
int FlagMouseButtons_; ///< save the buttons of mouse
// methods
public:
@@ -86,6 +87,7 @@ class DiagramView : public QGraphicsView {
private:
void mousePressEvent(QMouseEvent *);
void mouseReleaseEvent(QMouseEvent *);
void dragEnterEvent(QDragEnterEvent *);
void dragLeaveEvent(QDragLeaveEvent *);
void dragMoveEvent(QDragMoveEvent *);