forked from teamnwah/openmw-tes3coop
Merge remote-tracking branch 'graffy76/next' into next
Conflicts: apps/opencs/CMakeLists.txt
This commit is contained in:
commit
9221c861c5
4 changed files with 12 additions and 3 deletions
|
@ -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})
|
||||||
|
|
|
@ -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,8 +32,11 @@ 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
BIN
files/opencs/opencs.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 64 KiB |
5
files/opencs/resources.qrc
Normal file
5
files/opencs/resources.qrc
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<RCC>
|
||||||
|
<qresource prefix="/">
|
||||||
|
<file>opencs.png</file>
|
||||||
|
</qresource>
|
||||||
|
</RCC>
|
Loading…
Reference in a new issue