[Sketcher] [skip CI] CommandCreateGeo: code style fix
- the MSVC IDE had problems with this, thus apply our .clang style
This commit is contained in:
@@ -91,21 +91,21 @@
|
||||
using namespace std;
|
||||
using namespace SketcherGui;
|
||||
|
||||
#define CONSTRUCTION_UPDATE_ACTION(CLASS,ICON) \
|
||||
#define CONSTRUCTION_UPDATE_ACTION(CLASS, ICON) \
|
||||
/* This macro creates an updateAction() function that will toggle between normal & construction icon */ \
|
||||
void CLASS::updateAction(int mode) \
|
||||
{ \
|
||||
auto act = getAction(); \
|
||||
if (act) { \
|
||||
switch (mode) { \
|
||||
case Normal: \
|
||||
act->setIcon(Gui::BitmapFactory().iconFromTheme(ICON)); \
|
||||
break; \
|
||||
case Construction: \
|
||||
act->setIcon(Gui::BitmapFactory().iconFromTheme(ICON"_Constr")); \
|
||||
break; \
|
||||
} \
|
||||
} \
|
||||
void CLASS::updateAction(int mode) \
|
||||
{ \
|
||||
auto act = getAction(); \
|
||||
if (act) { \
|
||||
switch (mode) { \
|
||||
case Normal: \
|
||||
act->setIcon(Gui::BitmapFactory().iconFromTheme(ICON)); \
|
||||
break; \
|
||||
case Construction: \
|
||||
act->setIcon(Gui::BitmapFactory().iconFromTheme(ICON "_Constr")); \
|
||||
break; \
|
||||
} \
|
||||
} \
|
||||
}
|
||||
|
||||
namespace SketcherGui {
|
||||
|
||||
Reference in New Issue
Block a user