|
YMenuItem * | _selectedItem |
|
QMap< QAction *, YMenuItem * > | _actionMap |
|
◆ YQMenuBar()
YQMenuBar::YQMenuBar |
( |
YWidget * |
parent | ) |
|
◆ ~YQMenuBar()
YQMenuBar::~YQMenuBar |
( |
| ) |
|
|
virtual |
◆ activateItem()
void YQMenuBar::activateItem |
( |
YMenuItem * |
item | ) |
|
|
virtual |
Activate the item selected in the tree. Can be used in tests to simulate user input.
◆ menuEntryActivated
void YQMenuBar::menuEntryActivated |
( |
QAction * |
menuItem | ) |
|
|
protectedslot |
Triggered when any menu item is activated.
◆ preferredHeight()
int YQMenuBar::preferredHeight |
( |
| ) |
|
|
virtual |
Preferred height of the widget.
Reimplemented from YWidget.
◆ preferredWidth()
int YQMenuBar::preferredWidth |
( |
| ) |
|
|
virtual |
Preferred width of the widget.
Reimplemented from YWidget.
◆ rebuildMenuTree() [1/2]
void YQMenuBar::rebuildMenuTree |
( |
| ) |
|
|
virtual |
Rebuild the displayed menu tree from the internally stored YMenuItems.
Implemented from YMenuWidget.
◆ rebuildMenuTree() [2/2]
void YQMenuBar::rebuildMenuTree |
( |
QMenu * |
menu, |
|
|
YItemIterator |
begin, |
|
|
YItemIterator |
end |
|
) |
| |
|
protected |
Recursively insert menu items into 'menu' from iterator 'begin' to iterator 'end'.
◆ returnNow
void YQMenuBar::returnNow |
( |
| ) |
|
|
protectedslot |
◆ setEnabled()
void YQMenuBar::setEnabled |
( |
bool |
enabled | ) |
|
|
virtual |
Set enabled / disabled state.
Reimplemented from YWidget.
◆ setItemEnabled()
void YQMenuBar::setItemEnabled |
( |
YMenuItem * |
item, |
|
|
bool |
enabled |
|
) |
| |
|
virtual |
Enable or disable an item.
Reimplemented from YMenuWidget.
◆ setItemVisible()
void YQMenuBar::setItemVisible |
( |
YMenuItem * |
item, |
|
|
bool |
visible |
|
) |
| |
|
virtual |
Show or hide an item.
Reimplemented from YMenuWidget.
◆ setKeyboardFocus()
bool YQMenuBar::setKeyboardFocus |
( |
| ) |
|
|
virtual |
Accept the keyboard focus.
◆ setSize()
void YQMenuBar::setSize |
( |
int |
newWidth, |
|
|
int |
newHeight |
|
) |
| |
|
virtual |
Set the new size of the widget.
Reimplemented from YWidget.
◆ shortcutChanged()
void YQMenuBar::shortcutChanged |
( |
| ) |
|
|
virtual |
Notification that some shortcut was changed.
Reimplemented from YSelectionWidget.
The documentation for this class was generated from the following files:
- /builddir/build/BUILD/libyui-4.6.0/libyui-qt/src/YQMenuBar.h
- /builddir/build/BUILD/libyui-4.6.0/libyui-qt/src/YQMenuBar.cc