add window icons in wayland (#4232)
Co-authored-by: Fabio Bas <fabio.bas@officineinformatiche.net>
This commit is contained in:
parent
3edb862561
commit
1bfcca91be
2 changed files with 8 additions and 0 deletions
|
@ -151,6 +151,10 @@ int main(int argc, char *argv[])
|
|||
qDebug("main(): MainWindow constructor finished");
|
||||
|
||||
ui.setWindowIcon(QPixmap("theme:cockatrice"));
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 7, 0)
|
||||
// set name of the app desktop file; used by wayland to load the window icon
|
||||
QGuiApplication::setDesktopFileName("cockatrice");
|
||||
#endif
|
||||
|
||||
SettingsCache::instance().setClientID(generateClientID());
|
||||
|
||||
|
|
|
@ -62,6 +62,10 @@ int main(int argc, char *argv[])
|
|||
|
||||
QIcon icon("theme:appicon.svg");
|
||||
wizard.setWindowIcon(icon);
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 7, 0)
|
||||
// set name of the app desktop file; used by wayland to load the window icon
|
||||
QGuiApplication::setDesktopFileName("oracle");
|
||||
#endif
|
||||
|
||||
wizard.show();
|
||||
|
||||
|
|
Loading…
Reference in a new issue