[Panel-devel] porting panelbutton to menuext

Vinay Khaitan vkhaitan at gmail.com
Sat Sep 10 16:35:07 CEST 2005


I am thinking to port all of those. Looks really simple. 
But there is a trouble. 
let's take example of windowlist.
in windowlistbutton, it does
setPopup(new KWindowList(this))
because class KWindowList already provide the popupmenu.

But KPanelMenu is itself PopupMenu, So the only way seems(without code dupe) 
that iterating over all (new KWindowLIst(this)) actions and add them to 
this->addActions(). this works perfectly, but looks slightly hackish way. Is 
it okay?
file is attached.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/panel-devel/attachments/20050910/011269b0/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: windowlistmenu.cpp
Type: text/x-c++src
Size: 1619 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20050910/011269b0/windowlistmenu.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: windowlistmenu.h
Type: text/x-chdr
Size: 1467 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20050910/011269b0/windowlistmenu-0001.bin


More information about the Panel-devel mailing list