Diffusion KGet 80adf24c1091

Set window icon in code instead of in the desktop file

Authored by wbauer on Dec 20 2018, 9:29 PM.

Description

Set window icon in code instead of in the desktop file

%i is expanded to "--icon xxx", but Qt only supports that option on
xcb, not Wayland. Therefore kget couldn't be started from the
application launcher/menu on Wayland.
See https://community.kde.org/Guidelines_and_HOWTOs/Wayland_Porting_Notes#Application_Icon .

Instead, use QApplication::setWindowIcon() to set the window icon
(necessary to have a window icon on other desktops than Plasma). This
also has the advantage that the proper window icon is set when running
kget from a shell (and not passing the --icon or -qwindowicon options).

BUG: 400367
FIXED-IN: 18.12.1

Details

Committed
wbauerDec 20 2018, 9:29 PM
Parents
R433:c5c3eb067801: GIT_SILENT made messages (after extraction)
Branches
Unknown
Tags
Unknown