libyui-qt
2.43.3
|
Public Member Functions | |
YQContextMenu () | |
YQContextMenu (const QPoint position) | |
virtual | ~YQContextMenu () |
virtual void | rebuildMenuTree () |
virtual int | preferredWidth () |
virtual int | preferredHeight () |
virtual void | setSize (int newWidth, int newHeight) |
Protected Slots | |
void | menuEntryActivated (QAction *menuItem) |
void | returnNow () |
void | slotMenuHidden () |
void | slotReturnMenuHidden () |
Protected Member Functions | |
void | rebuildMenuTree (QMenu *menu, YItemIterator begin, YItemIterator end) |
Protected Attributes | |
YMenuItem * | _selectedItem |
QPushButton * | _qt_button |
QHash< QAction *, int > | _serials |
Definition at line 37 of file YQContextMenu.h.
YQContextMenu::YQContextMenu | ( | ) |
Constructor.
Definition at line 37 of file YQContextMenu.cc.
|
virtual |
Destructor.
Definition at line 55 of file YQContextMenu.cc.
|
protectedslot |
Triggered when any menu item is activated.
Definition at line 151 of file YQContextMenu.cc.
|
virtual |
Preferred height of the widget.
Reimplemented from YWidget.
Definition at line 200 of file YQContextMenu.cc.
|
virtual |
Preferred width of the widget.
Reimplemented from YWidget.
Definition at line 194 of file YQContextMenu.cc.
|
virtual |
Change the label on the button.
Reimplemented from YContextMenu / YSelectionWidget. Rebuild the displayed menu tree from the internally stored YMenuItems.
Implemented from YContextMenu.
Definition at line 62 of file YQContextMenu.cc.
|
protected |
Recursively insert menu items into 'menu' from iterator 'begin' to iterator 'end'.
Definition at line 83 of file YQContextMenu.cc.
|
protectedslot |
Triggered via menuEntryActivated() by zero timer to get back in sync with the Qt event loop.
Definition at line 184 of file YQContextMenu.cc.
|
virtual |
Set the new size of the widget.
Reimplemented from YWidget.
Definition at line 207 of file YQContextMenu.cc.
|
protectedslot |
Triggered when the context menu is hidden
Definition at line 132 of file YQContextMenu.cc.
|
protectedslot |
Triggered via slotMenuHidden() by zero timer to get back in sync with the Qt event loop.
Definition at line 141 of file YQContextMenu.cc.