mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-02-16 07:40:49 +01:00
Always use the GPXSee icon theme on Mac and Windows
This commit is contained in:
parent
d045fed086
commit
56425a3318
@ -29,9 +29,9 @@ App::App(int &argc, char **argv) : QApplication(argc, argv)
|
|||||||
{
|
{
|
||||||
#if defined(Q_OS_WIN32) || defined(Q_OS_MAC)
|
#if defined(Q_OS_WIN32) || defined(Q_OS_MAC)
|
||||||
setApplicationName(APP_NAME);
|
setApplicationName(APP_NAME);
|
||||||
#else
|
#else // Q_OS_WIN32 || Q_OS_MAC
|
||||||
setApplicationName(QString(APP_NAME).toLower());
|
setApplicationName(QString(APP_NAME).toLower());
|
||||||
#endif
|
#endif // Q_OS_WIN32 || Q_OS_MAC
|
||||||
setApplicationVersion(APP_VERSION);
|
setApplicationVersion(APP_VERSION);
|
||||||
|
|
||||||
QTranslator *app = new QTranslator(this);
|
QTranslator *app = new QTranslator(this);
|
||||||
@ -65,6 +65,9 @@ App::App(int &argc, char **argv) : QApplication(argc, argv)
|
|||||||
loadPCSs();
|
loadPCSs();
|
||||||
Waypoint::loadSymbolIcons(ProgramPaths::symbolsDir());
|
Waypoint::loadSymbolIcons(ProgramPaths::symbolsDir());
|
||||||
|
|
||||||
|
#if defined(Q_OS_WIN32) || defined(Q_OS_MAC)
|
||||||
|
QIcon::setThemeName(APP_NAME);
|
||||||
|
#endif // Q_OS_WIN32 || Q_OS_MAC
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)
|
||||||
QIcon::setFallbackThemeName(APP_NAME);
|
QIcon::setFallbackThemeName(APP_NAME);
|
||||||
#endif // QT 5.12
|
#endif // QT 5.12
|
||||||
|
Loading…
x
Reference in New Issue
Block a user