fix for the opencs icon

pull/16/head
graffy76 11 years ago
parent 43912f927a
commit ceefae81e8

@ -40,7 +40,7 @@ opencs_units_noqt (model/tools
opencs_units (view/doc
viewmanager view operations operation subview
viewmanager view operations operation subview startup
)
opencs_units_noqt (view/doc
@ -73,7 +73,7 @@ opencs_units_noqt (view/tools
set (OPENCS_US
)
set (OPENCS_RES
set (OPENCS_RES ../../files/opencs/resources.qrc
)
source_group (opencs FILES ${OPENCS_SRC} ${OPENCS_HDR})
@ -102,4 +102,4 @@ target_link_libraries(opencs
${Boost_LIBRARIES}
${QT_LIBRARIES}
components
)
)

@ -5,6 +5,7 @@
#include <iostream>
#include <QtGui/QApplication>
#include <QIcon>
class Application : public QApplication
{
@ -31,9 +32,12 @@ class Application : public QApplication
int main(int argc, char *argv[])
{
Q_INIT_RESOURCE (resources);
Application mApplication (argc, argv);
mApplication.setWindowIcon (QIcon (":./opencs.png"));
CS::Editor editor;
return editor.run();
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

@ -0,0 +1,5 @@
<RCC>
<qresource prefix="/">
<file>opencs.png</file>
</qresource>
</RCC>
Loading…
Cancel
Save