Skip to content

Commit

Permalink
GUI: added GROOPS icon for windows builds
Browse files Browse the repository at this point in the history
  • Loading branch information
akvas authored and tmayerguerr committed Nov 11, 2020
1 parent 436fc44 commit 86e2506
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 2 additions & 0 deletions gui/groopsGui.pro
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ QT += widgets

CONFIG += c++14

win32:RC_ICONS += resources/groops.ico

TEMPLATE = app

INCLUDEPATH += $$GROOPS_DIR/source
Expand Down
Binary file added gui/resources/groops.ico
Binary file not shown.
9 changes: 3 additions & 6 deletions gui/tree/tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
#include "settingsDialog/settingsPathDialog.h"
#include "tree/tree.h"
#ifdef _WIN32
#define NOMINMAX
#undef NOMINMAX
#define NOMINMAX 1
#include "windows.h"
#endif

Expand All @@ -67,11 +68,7 @@ Tree::Tree(QWidget *parent, ActionList *actionList, TabEnvironment *workspace) :
this->_undoStack = new QUndoStack(this);
this->workspace = workspace;

#ifndef _WIN32
std::setlocale(LC_NUMERIC, "en_US.UTF-8"); // force . as decimal separator (QLocale behavior is strange)
#else
setlocale(LC_NUMERIC, "american_usa");
#endif
setlocale(LC_NUMERIC, "en_US.UTF-8"); // force . as decimal separator (QLocale behavior is strange)

// init QTreeWidget
// ----------------
Expand Down

0 comments on commit 86e2506

Please sign in to comment.