Skip to content

Commit

Permalink
- Set the GraphicsView drag mode to RubberBandDrag.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@23194 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adeas31 committed Nov 4, 2014
1 parent b34d130 commit ba9d529
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions OMEdit/OMEditGUI/Modeling/ModelWidgetContainer.cpp
Expand Up @@ -122,6 +122,7 @@ GraphicsView::GraphicsView(StringHandler::ViewType viewType, ModelWidget *parent
: QGraphicsView(parent), mViewType(viewType), mSkipBackground(false)
{
setFrameShape(QFrame::StyledPanel);
setDragMode(QGraphicsView::RubberBandDrag);
setAcceptDrops(true);
setViewportUpdateMode(QGraphicsView::FullViewportUpdate);
setMouseTracking(true);
Expand Down

0 comments on commit ba9d529

Please sign in to comment.