compress global files
This commit is contained in:
parent
609efb7fba
commit
e3a8edae2d
4 changed files with 21 additions and 13 deletions
3
main.cpp
3
main.cpp
|
@ -43,6 +43,7 @@
|
|||
#include <QMessageBox>
|
||||
#include <QStringList>
|
||||
#include <QTranslator>
|
||||
#include <QResource>
|
||||
#include <QCheckBox>
|
||||
#include <QFileInfo>
|
||||
#include <QSysInfo>
|
||||
|
@ -291,6 +292,8 @@ int main(int argc, char *argv[])
|
|||
QObject::connect(&threadDB, SIGNAL(finished()), &a, SLOT(quit()));
|
||||
threadDB.start();
|
||||
|
||||
QResource::registerResource(":/global/global.rcc");
|
||||
|
||||
UserInterface uiWindow(&profileDB, &crewDB, &threadDB);
|
||||
uiWindow.setWindowIcon(IconLoader::loadingAppIcon());
|
||||
uiWindow.setupDirEnv();
|
||||
|
|
14
res/app.qrc
14
res/app.qrc
|
@ -24,19 +24,7 @@
|
|||
<file>watermarkdark.png</file>
|
||||
</qresource>
|
||||
<qresource prefix="/global">
|
||||
<file>global.de.ini</file>
|
||||
<file>global.en.ini</file>
|
||||
<file>global.es.ini</file>
|
||||
<file>global.es_MX.ini</file>
|
||||
<file>global.fr.ini</file>
|
||||
<file>global.it.ini</file>
|
||||
<file>global.ja.ini</file>
|
||||
<file>global.ko.ini</file>
|
||||
<file>global.pl.ini</file>
|
||||
<file>global.pt.ini</file>
|
||||
<file>global.ru.ini</file>
|
||||
<file>global.zh.ini</file>
|
||||
<file>global.zh.loc</file>
|
||||
<file>global.rcc</file>
|
||||
</qresource>
|
||||
<qresource prefix="/template">
|
||||
<file>template.g5e</file>
|
||||
|
|
17
res/global.qrc
Normal file
17
res/global.qrc
Normal file
|
@ -0,0 +1,17 @@
|
|||
<RCC>
|
||||
<qresource prefix="/global">
|
||||
<file>global.de.ini</file>
|
||||
<file>global.en.ini</file>
|
||||
<file>global.es.ini</file>
|
||||
<file>global.es_MX.ini</file>
|
||||
<file>global.fr.ini</file>
|
||||
<file>global.it.ini</file>
|
||||
<file>global.ja.ini</file>
|
||||
<file>global.ko.ini</file>
|
||||
<file>global.pl.ini</file>
|
||||
<file>global.pt.ini</file>
|
||||
<file>global.ru.ini</file>
|
||||
<file>global.zh.ini</file>
|
||||
<file>global.zh.loc</file>
|
||||
</qresource>
|
||||
</RCC>
|
BIN
res/global.rcc
Normal file
BIN
res/global.rcc
Normal file
Binary file not shown.
Loading…
Reference in a new issue