Salome HOME
refs #1468: patch to customize dragging of several selected objects with left mouse...
[modules/gui.git] / src / GraphicsView / GraphicsView_ViewPort.h
index 51b3f53dedcf6e92922f49f2132bf62dda8e40b1..1d66b0ac260c14ef4dca5d0667fef204c2a50818 100644 (file)
@@ -205,6 +205,9 @@ public:
   // dragging
   bool                             isDragging() { return myIsDragging; }
 
+  bool                             isDraggingSelectedByLeftButton() const { return myDraggingSelectedByLeftButton; }
+  void                             setDraggingSelectedByLeftButton( const bool& theValue );
+
   // pulling
   bool                             startPulling( const QPointF& );
   void                             drawPulling( const QPointF& );
@@ -327,6 +330,7 @@ private:
   int                              myIsDragging;
   QPointF                          myDragPosition;
   bool                             myIsDragPositionInitialized;
+  bool                             myDraggingSelectedByLeftButton;
 
   // pulling
   bool                             myIsPulling;