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