KContextMenuManager
Simon Hausmann
hausmann at kde.org
Mon May 1 08:51:02 BST 2006
Hi,
are there any objections against removing KContextMenuManager?
These days Qt provides a contextMenuEvent and QWidget has a context menu
policy that makes porting straightforward:
old code:
QMenu *menu = ...
KContextMenuManager::insert(myWidget, menu);
new code:
widget->setContextMenuPolicy(Qt::ActionsContextMenu);
widget->addActions(menu->actions()); // (or add the actions directly)
Simon
More information about the kde-core-devel
mailing list