![]() |
Falkon Develop
Cross-platform Qt-based web browser
|
#include <buttonwithmenu.h>
Classes | |
| struct | Item |
Public Slots | |
| void | clearItems () |
| void | selectNextItem () |
| void | selectPreviousItem () |
Signals | |
| void | activeItemChanged (const ButtonWithMenu::Item &item) |
| void | itemAdded (const ButtonWithMenu::Item &item) |
| void | itemRemoved (const ButtonWithMenu::Item &item) |
Signals inherited from ToolButton | |
| void | middleMouseClicked () |
| void | controlClicked () |
| void | doubleClicked () |
| void | aboutToShowMenu () |
| void | aboutToHideMenu () |
Public Member Functions | |
| ButtonWithMenu (QWidget *parent=nullptr) | |
| ~ButtonWithMenu () override | |
| void | addItem (const Item &item) |
| void | addItems (const QVector< Item > &items) |
| void | removeItem (const Item &item) |
| void | setCurrentItem (const Item &item, bool emitSignal=true) |
| void | setCurrentIndex (int index, bool emitSignal=true) |
| Item | currentItem () |
| QVector< Item > | allItems () |
| QMenu * | menu () const |
Public Member Functions inherited from ToolButton | |
| ToolButton (QWidget *parent=nullptr) | |
| QImage | multiIcon () const |
| void | setMultiIcon (const QImage &image) |
| QString | themeIcon () const |
| void | setThemeIcon (const QString &icon) |
| QIcon | fallbackIcon () const |
| void | setFallbackIcon (const QIcon &fallbackIcon) |
| QIcon | icon () const |
| void | setIcon (const QIcon &icon) |
| QMenu * | menu () const |
| void | setMenu (QMenu *menu) |
| bool | showMenuInside () const |
| void | setShowMenuInside (bool enable) |
| bool | showMenuOnRightClick () const |
| void | setShowMenuOnRightClick (bool enable) |
| bool | toolbarButtonLook () const |
| void | setToolbarButtonLook (bool enable) |
Additional Inherited Members | |
Protected Member Functions inherited from ToolButton | |
| void | mousePressEvent (QMouseEvent *e) override |
| void | mouseReleaseEvent (QMouseEvent *e) override |
| void | mouseDoubleClickEvent (QMouseEvent *e) override |
| void | contextMenuEvent (QContextMenuEvent *e) override |
| void | paintEvent (QPaintEvent *e) override |
Properties inherited from ToolButton | |
| QSize | fixedsize |
| int | fixedwidth |
| int | fixedheight |
| QImage | multiIcon |
| QIcon | icon |
| QString | themeIcon |
| QIcon | fallbackIcon |
Definition at line 27 of file buttonwithmenu.h.
|
explicit |
Definition at line 23 of file buttonwithmenu.cpp.
|
overridedefault |
|
signal |
| void ButtonWithMenu::addItem | ( | const Item & | item | ) |
Definition at line 66 of file buttonwithmenu.cpp.
| void ButtonWithMenu::addItems | ( | const QVector< Item > & | items | ) |
Definition at line 77 of file buttonwithmenu.cpp.
|
inline |
Definition at line 66 of file buttonwithmenu.h.
|
slot |
Definition at line 42 of file buttonwithmenu.cpp.
| ButtonWithMenu::Item ButtonWithMenu::currentItem | ( | ) |
Definition at line 147 of file buttonwithmenu.cpp.
|
signal |
|
signal |
| QMenu * ButtonWithMenu::menu | ( | ) | const |
Definition at line 152 of file buttonwithmenu.cpp.
| void ButtonWithMenu::removeItem | ( | const Item & | item | ) |
Definition at line 84 of file buttonwithmenu.cpp.
|
slot |
Definition at line 48 of file buttonwithmenu.cpp.
|
slot |
Definition at line 57 of file buttonwithmenu.cpp.
| void ButtonWithMenu::setCurrentIndex | ( | int | index, |
| bool | emitSignal = true |
||
| ) |
Definition at line 120 of file buttonwithmenu.cpp.
| void ButtonWithMenu::setCurrentItem | ( | const Item & | item, |
| bool | emitSignal = true |
||
| ) |
Definition at line 103 of file buttonwithmenu.cpp.