From 749abc5ed7e33a5d49f5bb7c0e97b6dfe219f87e Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Thu, 18 Sep 2014 14:58:22 +0200 Subject: [PATCH] Sketcher fixes: Symmetry arrows properly scaled, fixed icon in constraint taskbar list contextual menu --- src/Mod/Sketcher/Gui/SoDatumLabel.cpp | 5 +++-- src/Mod/Sketcher/Gui/TaskSketcherConstrains.cpp | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Mod/Sketcher/Gui/SoDatumLabel.cpp b/src/Mod/Sketcher/Gui/SoDatumLabel.cpp index 7c02776c7..eb141b36f 100644 --- a/src/Mod/Sketcher/Gui/SoDatumLabel.cpp +++ b/src/Mod/Sketcher/Gui/SoDatumLabel.cpp @@ -465,8 +465,9 @@ void SoDatumLabel::GLRender(SoGLRenderAction * action) // For the symmetry constraint that does not have text, but does have arrows //this->imgHeight = 3.36f; //this->imgWidth = 5.26f; - this->imgHeight = 1.5f; - this->imgWidth = 1.5f; + + this->imgHeight = scale*25.0f; + this->imgWidth = scale*25.0f; } // Get the points stored in the pnt field diff --git a/src/Mod/Sketcher/Gui/TaskSketcherConstrains.cpp b/src/Mod/Sketcher/Gui/TaskSketcherConstrains.cpp index 47fba3661..7f615f548 100644 --- a/src/Mod/Sketcher/Gui/TaskSketcherConstrains.cpp +++ b/src/Mod/Sketcher/Gui/TaskSketcherConstrains.cpp @@ -125,7 +125,7 @@ void ConstraintView::contextMenuEvent (QContextMenuEvent* event) QListWidgetItem* item = currentItem(); QList items = selectedItems(); - CONTEXT_ITEM("Constraint_SelectElements","Select Elements","Sketcher_SelectElementsAssociatedWithConstraints",doSelectConstraints,true) + CONTEXT_ITEM("Sketcher_SelectElementsAssociatedWithConstraints","Select Elements","Sketcher_SelectElementsAssociatedWithConstraints",doSelectConstraints,true) QAction* sep = menu.addSeparator();