diff --git a/src/Editor/Editor.pro b/src/Editor/Editor.pro index 9d8d18f9..6db3606c 100644 --- a/src/Editor/Editor.pro +++ b/src/Editor/Editor.pro @@ -9,6 +9,8 @@ QMAKE_CXXFLAGS += /WX DEFINES += PWE_EDITOR RESOURCES += Icons.qrc +win32: RC_ICONS += icons/AppIcon.ico + CONFIG += console TEMPLATE = app DESTDIR = $$PWD/../../bin diff --git a/src/Editor/Icons.qrc b/src/Editor/Icons.qrc index 157e59b0..dc238584 100644 --- a/src/Editor/Icons.qrc +++ b/src/Editor/Icons.qrc @@ -30,5 +30,6 @@ icons/SelectMode.png icons/POI Important.png icons/POI Normal.png + icons/AppIcon.ico diff --git a/src/Editor/icons/AppIcon.ico b/src/Editor/icons/AppIcon.ico new file mode 100644 index 00000000..2ed39eab Binary files /dev/null and b/src/Editor/icons/AppIcon.ico differ diff --git a/src/Editor/main.cpp b/src/Editor/main.cpp index fbcf4061..9d790eaf 100644 --- a/src/Editor/main.cpp +++ b/src/Editor/main.cpp @@ -27,6 +27,7 @@ int main(int argc, char *argv[]) // Create application QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts); QApplication app(argc, argv); + app.setWindowIcon(QIcon(":/icons/AppIcon.ico")); // Init log bool Initialized = Log::InitLog("primeworldeditor.log");