[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Question about the shutdown dialog's reboot list implementation
From:       Konstantinos Smanis <konstantinos.smanis () gmail ! com>
Date:       2012-07-06 13:17:50
Message-ID: CANJf_cB8OrGeUmkr-FNx4u0MRMSiCuAjsv2eawKmGWkghwX9HQ () mail ! gmail ! com
[Download RAW message or body]

Hi,

I am working on a patch for bug #297209
(https://bugs.kde.org/show_bug.cgi?id=297209) and couldn't help but
notice that since the Shutdown Dialog was QMLified, the code that
shows the reboot list (when long-clicking the Reboot button) has been
moved in the QML code of the theme
(http://lxr.kde.org/source/kde/kde-workspace/ksmserver/themes/default/main.qml#319),
which means that every theme should duplicate this code. I have a
proper fix for the above mentioned bug written in C++ (generate a
proper QMenu with submenus) which applies perfectly on the 4.8 branch
(which is C++ only), so I was thinking maybe generate the menu in the
C++ part of the code and pass it on to the QML theme? Being a total
QML newbie I don't know if that's possible, plus after a quick search
I can't figure out how to implement submenus for the context menu in
QML (it uses a custom ContextMenu component).

I wouldn't like to dig in QML just for this and I think it makes more
sense if the list was centrally generated and not in every theme.
Still, if the code should reside in the theme, I would appreciate any
pointers as to how implement submenus in the context menu.

-- 
Konstantinos Smanis
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic