Sketcher: fix contraints cmd crosshair color

This commit is contained in:
dulouie
2020-03-15 22:48:42 +01:00
committed by wwmayer
parent 799d113508
commit 134c841e08
2 changed files with 18 additions and 15 deletions

View File

@@ -911,25 +911,26 @@ protected:
{ return isCreateGeoActive(getActiveGuiDocument()); }
};
extern char cursor_crosshair_color[];
/* XPM */
static const char *cursor_genericconstraint[]={
"32 32 3 1",
"32 32 2 1",
" c None",
". c #FFFFFF",
"+ c #FF0000",
" . ",
" . ",
" . ",
" . ",
" . ",
cursor_crosshair_color,
" + ",
" + ",
" + ",
" + ",
" + ",
" ",
"..... ..... ",
"+++++ +++++ ",
" ",
" . ",
" . ",
" . ",
" . ",
" . ",
" + ",
" + ",
" + ",
" + ",
" + ",
" ",
" ",
" ",
@@ -971,6 +972,8 @@ public:
Gui::Selection().rmvSelectionGate();
Gui::Selection().addSelectionGate(selFilterGate);
setCrosshairColor();
// Constrain icon size in px
int iconSize = 16;
QPixmap cursorPixmap(cursor_genericconstraint),

View File

@@ -231,7 +231,7 @@ void removeRedundantHorizontalVertical(Sketcher::SketchObject* psketch,
/* Sketch commands =======================================================*/
static const char cursor_crosshair_color_fmt[] = "+ c #%06lX";
static char cursor_crosshair_color[12];
char cursor_crosshair_color[12];
void DrawSketchHandler::setCrosshairColor()
{