Added application icon

This commit is contained in:
parax0 2016-02-16 19:41:54 -07:00
parent dfd9ea92db
commit 9eaf537611
4 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -30,5 +30,6 @@
<file>icons/SelectMode.png</file>
<file>icons/POI Important.png</file>
<file>icons/POI Normal.png</file>
<file>icons/AppIcon.ico</file>
</qresource>
</RCC>

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

View File

@ -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");