Merge remote-tracking branch 'graffy76/next' into next

Conflicts:
	apps/opencs/CMakeLists.txt
This commit is contained in:
Marc Zinnschlag 2013-02-17 17:38:33 +01:00
commit 9221c861c5
4 changed files with 12 additions and 3 deletions

View file

@ -75,7 +75,7 @@ opencs_units_noqt (view/tools
set (OPENCS_US set (OPENCS_US
) )
set (OPENCS_RES set (OPENCS_RES ../../files/opencs/resources.qrc
) )
source_group (opencs FILES ${OPENCS_SRC} ${OPENCS_HDR}) source_group (opencs FILES ${OPENCS_SRC} ${OPENCS_HDR})
@ -104,4 +104,4 @@ target_link_libraries(opencs
${Boost_LIBRARIES} ${Boost_LIBRARIES}
${QT_LIBRARIES} ${QT_LIBRARIES}
components components
) )

View file

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

BIN
files/opencs/opencs.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

View file

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