libyui-qt
2.46.1
|
Public Member Functions | |
YQContextMenu () | |
YQContextMenu (QWidget *parent, 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 57 of file YQContextMenu.cc.
|
protectedslot |
Triggered when any menu item is activated.
Definition at line 153 of file YQContextMenu.cc.
|
virtual |
Preferred height of the widget.
Reimplemented from YWidget.
Definition at line 202 of file YQContextMenu.cc.
|
virtual |
Preferred width of the widget.
Reimplemented from YWidget.
Definition at line 196 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 64 of file YQContextMenu.cc.
|
protected |
Recursively insert menu items into 'menu' from iterator 'begin' to iterator 'end'.
Definition at line 85 of file YQContextMenu.cc.
|
protectedslot |
Triggered via menuEntryActivated() by zero timer to get back in sync with the Qt event loop.
Definition at line 186 of file YQContextMenu.cc.
|
virtual |
Set the new size of the widget.
Reimplemented from YWidget.
Definition at line 209 of file YQContextMenu.cc.
|
protectedslot |
Triggered when the context menu is hidden
Definition at line 134 of file YQContextMenu.cc.
|
protectedslot |
Triggered via slotMenuHidden() by zero timer to get back in sync with the Qt event loop.
Definition at line 143 of file YQContextMenu.cc.