Skip to content

Commit

Permalink
Added program icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Reiten committed Aug 15, 2016
1 parent 199d299 commit 113f1e9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
Binary file added doc/app.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
a.setWindowIcon(QIcon(":/doc/app.png"));


MainWindow w;

Expand Down
5 changes: 5 additions & 0 deletions nbody.pro
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ INCLUDEPATH += "external/"
unix:LIBS += -lvulkan
win32:LIBS += "$$PWD/lib/x64/vulkan-1.lib"

win32: RC_ICONS = doc/app.ico

OBJECTS_DIR = buildfiles/obj
MOC_DIR = buildfiles/moc
RCC_DIR = buildfiles/rcc
Expand Down Expand Up @@ -60,3 +62,6 @@ DISTFILES += \
shaders/luminosity.vert \
shaders/performance_meter.frag \
shaders/performance_meter.vert

RESOURCES += \
resources.qrc
5 changes: 5 additions & 0 deletions resources.qrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<RCC>
<qresource prefix="/">
<file>doc/app.png</file>
</qresource>
</RCC>

0 comments on commit 113f1e9

Please sign in to comment.