<afiestas> mck182: do you think that would be possible to put the menubar into QMenBar so it gets exported via dbusmenu?
<afiestas> I mean, right now there is a button which displays a menu, the only needed thing is put htat menu in a QMenuBar, you don't need to display it though
I also think we could rethink it a little bit more (including the buttons in that menu or something). I'm still convinced we don't need a traditional main window menu.
Can't we just do what Dolphin does?
"I'm still convinced we don't need a traditional main
Convince us why we need something different.
a) That menu adds unnecessary visual clutter to such small window
b) We don't have that much actions, so the menus would end up with like 2 entries
c) We have diverse actions which would result in multiple menus - "File; Contacts; View; Edit; Settings; Help", provided we would stick all actions in there
The contact list window is supposed to be rather narrow, putting the menu there would make the menu partially hidden if you use the narrow width, thus loosing its purpose.
But if we do what dolphin does, by default it would look exactly like it does now.
The point is being able to export whatever you want via dbusmenu so it can be shown by dbusmenu "painters".
Take a look at this screenshot:
See? the contact list is lacking a button in the window decorator because it is not exporting the menubar.
Of course as dolphin does you can set the QMenu in QMenuBar but NOT PAINT IT ! so it gets exported automatically.
The wrench icon in dolphin is shown when the menu is hidden. Moreover it cannot be moved by its position, but the toolbar can still be configured. So the menu is actually there, just not displayed.
We should do the same in the contact list (and perhaps also in the other components)
I already have some drafts for ktp-contactlist global menu. Can anybody help me with menus contents?
Git commit a5c5f3642030909fb1ef61edfc11cad9ed5461a3 by David Edmundson, on behalf of Roman Nazarenko.
Committed on 25/02/2013 at 18:56.
Pushed by davidedmundson into branch 'master'.
Add KDE global menu support
Added global menu support.
Menu is not appearing in main window, so it's tiny look is not broken.
I also moved actions for menu from MainWidget constructor to class private scope, so they can be used from any method.
M +124 -62 main-widget.cpp
M +9 -0 main-widget.h