resources changes
This commit is contained in:
parent
9bb40f47cb
commit
7384f39c7d
10 changed files with 16 additions and 3 deletions
8
main.cpp
8
main.cpp
|
@ -32,6 +32,7 @@
|
|||
#include <QString>
|
||||
#include <QDebug>
|
||||
#include <QFile>
|
||||
#include <QDir>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
@ -39,6 +40,10 @@ int main(int argc, char *argv[])
|
|||
a.setApplicationName("gta5sync");
|
||||
a.setApplicationVersion("1.0.0");
|
||||
|
||||
QDir pluginsDir = QFileInfo(a.applicationFilePath()).absoluteDir();
|
||||
pluginsDir.cd("plugins");
|
||||
a.addLibraryPath(pluginsDir.path());
|
||||
|
||||
// Loading translation settings
|
||||
QSettings settings("Syping", "gta5sync");
|
||||
settings.beginGroup("Interface");
|
||||
|
@ -238,6 +243,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
bool readOk = picture.readingPictureFromFile(arg1);
|
||||
picDialog->setWindowFlags(picDialog->windowFlags()^Qt::WindowContextHelpButtonHint);
|
||||
picDialog->setWindowIcon(QIcon(":/img/5sync-48.png"));
|
||||
picDialog->setSnapmaticPicture(&picture, readOk);
|
||||
|
||||
int crewID = picture.getCrewNumber();
|
||||
|
@ -259,6 +265,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
bool readOk = savegame.readingSavegameFromFile(arg1);
|
||||
savegameDialog->setWindowFlags(savegameDialog->windowFlags()^Qt::WindowContextHelpButtonHint);
|
||||
savegameDialog->setWindowIcon(QIcon(":/img/5sync-48.png"));
|
||||
savegameDialog->setSavegameData(&savegame, readOk);
|
||||
|
||||
if (!readOk) { return 1; }
|
||||
|
@ -276,6 +283,7 @@ int main(int argc, char *argv[])
|
|||
threadDB->start();
|
||||
|
||||
UserInterface *uiWindow = new UserInterface(profileDB, crewDB, threadDB);
|
||||
uiWindow->setWindowIcon(QIcon(":/img/5sync-48.png"));
|
||||
uiWindow->show();
|
||||
|
||||
return a.exec();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue