Disable rubber band after objects have been selected.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-01-05 22:01:35 +02:00
parent e6dcfd708b
commit fdd7f6c2a3
4 changed files with 12 additions and 0 deletions

View File

@ -55,6 +55,7 @@
#include "../vpatterndb/vcontainer.h" #include "../vpatterndb/vcontainer.h"
#include "../vwidgets/vabstractmainwindow.h" #include "../vwidgets/vabstractmainwindow.h"
#include "../vwidgets/vmaingraphicsscene.h" #include "../vwidgets/vmaingraphicsscene.h"
#include "../vwidgets/vmaingraphicsview.h"
#include "ui_dialogflippingbyaxis.h" #include "ui_dialogflippingbyaxis.h"
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
@ -175,6 +176,8 @@ void DialogFlippingByAxis::ShowDialog(bool click)
scene->ToggleSplineHover(false); scene->ToggleSplineHover(false);
scene->ToggleSplinePathHover(false); scene->ToggleSplinePathHover(false);
qApp->getSceneView()->AllowRubberBand(false);
emit ToolTip(tr("Select origin point")); emit ToolTip(tr("Select origin point"));
} }
else if (not stage1 && prepare && click) else if (not stage1 && prepare && click)

View File

@ -55,6 +55,7 @@
#include "../vpatterndb/vcontainer.h" #include "../vpatterndb/vcontainer.h"
#include "../vwidgets/vabstractmainwindow.h" #include "../vwidgets/vabstractmainwindow.h"
#include "../vwidgets/vmaingraphicsscene.h" #include "../vwidgets/vmaingraphicsscene.h"
#include "../vwidgets/vmaingraphicsview.h"
#include "ui_dialogflippingbyline.h" #include "ui_dialogflippingbyline.h"
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
@ -174,6 +175,8 @@ void DialogFlippingByLine::ShowDialog(bool click)
scene->ToggleSplineHover(false); scene->ToggleSplineHover(false);
scene->ToggleSplinePathHover(false); scene->ToggleSplinePathHover(false);
qApp->getSceneView()->AllowRubberBand(false);
emit ToolTip(tr("Select first line point")); emit ToolTip(tr("Select first line point"));
} }
else if (not stage1 && prepare && click) else if (not stage1 && prepare && click)

View File

@ -60,6 +60,7 @@
#include "../vpatterndb/vtranslatevars.h" #include "../vpatterndb/vtranslatevars.h"
#include "../vwidgets/vabstractmainwindow.h" #include "../vwidgets/vabstractmainwindow.h"
#include "../vwidgets/vmaingraphicsscene.h" #include "../vwidgets/vmaingraphicsscene.h"
#include "../vwidgets/vmaingraphicsview.h"
#include "ui_dialogmove.h" #include "ui_dialogmove.h"
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
@ -280,6 +281,8 @@ void DialogMove::ShowDialog(bool click)
scene->ToggleElArcHover(false); scene->ToggleElArcHover(false);
scene->ToggleSplineHover(false); scene->ToggleSplineHover(false);
scene->ToggleSplinePathHover(false); scene->ToggleSplinePathHover(false);
qApp->getSceneView()->AllowRubberBand(false);
} }
else if (not stage2 && not stage1 && prepare && click) else if (not stage2 && not stage1 && prepare && click)
{ {

View File

@ -60,6 +60,7 @@
#include "../vpatterndb/vtranslatevars.h" #include "../vpatterndb/vtranslatevars.h"
#include "../vwidgets/vabstractmainwindow.h" #include "../vwidgets/vabstractmainwindow.h"
#include "../vwidgets/vmaingraphicsscene.h" #include "../vwidgets/vmaingraphicsscene.h"
#include "../vwidgets/vmaingraphicsview.h"
#include "ui_dialogrotation.h" #include "ui_dialogrotation.h"
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
@ -197,6 +198,8 @@ void DialogRotation::ShowDialog(bool click)
scene->ToggleSplineHover(false); scene->ToggleSplineHover(false);
scene->ToggleSplinePathHover(false); scene->ToggleSplinePathHover(false);
qApp->getSceneView()->AllowRubberBand(false);
emit ToolTip(tr("Select origin point")); emit ToolTip(tr("Select origin point"));
} }
else if (not stage1 && prepare && click) else if (not stage1 && prepare && click)