mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 18:56:08 +03:00
Refactor
This commit is contained in:
parent
0a5bb6685f
commit
b3c73b7868
1 changed files with 8 additions and 4 deletions
|
@ -133,14 +133,18 @@ Application::Application(const QString &id, int &argc, char **argv)
|
||||||
QFont::insertSubstitution(".Lucida Grande UI", "Lucida Grande");
|
QFont::insertSubstitution(".Lucida Grande UI", "Lucida Grande");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
setApplicationName("qBittorrent");
|
||||||
initializeTranslation();
|
initializeTranslation();
|
||||||
#ifndef DISABLE_GUI
|
|
||||||
|
#if !defined(DISABLE_GUI)
|
||||||
setAttribute(Qt::AA_UseHighDpiPixmaps, true); // opt-in to the high DPI pixmap support
|
setAttribute(Qt::AA_UseHighDpiPixmaps, true); // opt-in to the high DPI pixmap support
|
||||||
setQuitOnLastWindowClosed(false);
|
setQuitOnLastWindowClosed(false);
|
||||||
#ifdef Q_OS_WIN
|
#endif
|
||||||
|
|
||||||
|
#if defined(Q_OS_WIN) && !defined(DISABLE_GUI)
|
||||||
connect(this, SIGNAL(commitDataRequest(QSessionManager &)), this, SLOT(shutdownCleanup(QSessionManager &)), Qt::DirectConnection);
|
connect(this, SIGNAL(commitDataRequest(QSessionManager &)), this, SLOT(shutdownCleanup(QSessionManager &)), Qt::DirectConnection);
|
||||||
#endif // Q_OS_WIN
|
#endif
|
||||||
#endif // DISABLE_GUI
|
|
||||||
|
|
||||||
connect(this, SIGNAL(messageReceived(const QString &)), SLOT(processMessage(const QString &)));
|
connect(this, SIGNAL(messageReceived(const QString &)), SLOT(processMessage(const QString &)));
|
||||||
connect(this, SIGNAL(aboutToQuit()), SLOT(cleanup()));
|
connect(this, SIGNAL(aboutToQuit()), SLOT(cleanup()));
|
||||||
|
|
Loading…
Reference in a new issue