tdf#121417 Allow dynamic menu changes for Qt5 and KDE5 interfaces
Separate HandleMenuActivateEvent function call from HandleMenuCommandEvent function call since first one might update some of menus. Also add call to HandleMenuDeActivateEvent function. Delete action with Qt5MenuItem to reflect the change in actual menu. Also update underlying qt-based menu from Qt5Menu::InsertItem function. And update Qt5Menu::SetItemImage to work with different types of descendants of SalBitmap. This code is shared between Qt5 and KDE5 plugins, but KDE5 plugin uses SvpSalBitmap instead of Qt5Bitmap. New image conversion process is borrowed from GTK plugin code. This approach is used in order to properly process transparency channel if it's present, and it is present usually. This change also fixes tdf#120789. Change-Id: Ifdc64c3e5d80782955b52e2da8fcff4844d2dc25 Reviewed-on: https://gerrit.libreoffice.org/63862 Tested-by: Jenkins Reviewed-by:Katarina Behrens <Katarina.Behrens@cib.de> Move menu item insertion into separate function Change-Id: I721910bbbd558827e9a5de1f8763426b460f08fa Reviewed-on: https://gerrit.libreoffice.org/63861 Tested-by: Jenkins Reviewed-by:
Katarina Behrens <Katarina.Behrens@cib.de> Fix menu insertion to specified position Change-Id: I61f870010003fae98d792f95d7fdac0e59d4305c Reviewed-on: https://gerrit.libreoffice.org/63885 Tested-by: Jenkins Reviewed-by:
Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> loplugin:override Change-Id: Ia45b5f7c126c082d8f3835c3c3529a34a9e20975 Reviewed-on: https://gerrit.libreoffice.org/65149 Tested-by: Jenkins Reviewed-by:
Aleksei Nikiforov <darktemplar@basealt.ru> Reviewed-by:
Michael Weghorn <m.weghorn@posteo.de>
Showing
This diff is collapsed.
Please
register
or
sign in
to comment