1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

[IconTheme] Fixed setting fallback icon theme

Closes #1274

[ci skip]
This commit is contained in:
nowrep 2014-04-07 09:30:42 +02:00
parent 7824f3862e
commit 78ba3875d9
2 changed files with 9 additions and 9 deletions

View File

@ -110,6 +110,12 @@ MainApplication::MainApplication(int &argc, char** argv)
setOrganizationDomain(QLatin1String("qupzilla"));
setWindowIcon(QIcon(QLatin1String(":icons/exeicons/qupzilla-window.png")));
// Set fallback icon theme (eg. on Windows/Mac)
if (QIcon::fromTheme(QSL("view-refresh")).isNull()) {
QIcon::setThemeSearchPaths(QStringList() << QL1S(":/oxygen-fallback"));
QIcon::setThemeName(QSL("oxygen-fallback"));
}
QUrl startUrl;
QString startProfile;
QStringList messages;

View File

@ -159,24 +159,18 @@ int main(int argc, char* argv[])
#endif
#if defined(QZ_WS_X11) && QT_VERSION < 0x050000
QApplication::setGraphicsSystem("raster"); // Better overall performance on X11
// Better overall performance on X11
QApplication::setGraphicsSystem(QSL("raster"));
#endif
#if defined(Q_OS_LINUX) || defined(__GLIBC__) || defined(__FreeBSD__)
signal(SIGSEGV, qupzilla_signal_handler);
#endif
// Set fallback icon theme (eg. on Windows/Mac)
if (QIcon::fromTheme(QSL("document-open")).isNull()) {
QIcon::setThemeSearchPaths(QStringList() << QL1S(":/oxygen-fallback"));
QIcon::setThemeName(QSL("oxygen-fallback"));
}
MainApplication app(argc, argv);
if (app.isClosing()) {
if (app.isClosing())
return 0;
}
app.setProxyStyle(new ProxyStyle);