Module implementing a specialized tool button subclass.
None |
E5ToolButton | Class implementing a specialized tool button subclass. |
None |
Class implementing a specialized tool button subclass.
NoOptions |
ShowMenuInsideOption |
ToolBarLookOption |
None |
E5ToolButton | Constructor |
__menuAboutToHide | Private slot to handle the tool button menu about to be hidden. |
__showMenu | Private slot to show the tool button menu. |
badgeText | Public method to get the badge text. |
contextMenuEvent | Protected method to handle context menu events. |
menu | Public method to get a reference to the tool button menu. |
mouseDoubleClickEvent | Protected method to handle mouse double click events. |
mousePressEvent | Protected method to handle mouse press events. |
mouseReleaseEvent | Protected method to handle mouse release events. |
setBadgeText | Public method to set the badge text. |
setMenu | Public method to set the tool button menu. |
setShowMenuInside | Public method to set a flag to show the menu edge aligned with the button. |
setToolbarButtonLook | Public method to set the toolbar look state. |
showMenuInside | Public method to check, if the menu edge shall be aligned with the button. |
toolbarButtonLook | Public method to check, if the button has the toolbar look. |
None |
Constructor
Private slot to handle the tool button menu about to be hidden.
Private slot to show the tool button menu.
Public method to get the badge text.
Protected method to handle context menu events.
Public method to get a reference to the tool button menu.
Protected method to handle mouse double click events.
Protected method to handle mouse press events.
Protected method to handle mouse release events.
Public method to set the badge text.
Public method to set the tool button menu.
Public method to set a flag to show the menu edge aligned with the button.
Public method to set the toolbar look state.
Public method to check, if the menu edge shall be aligned with the button.
Public method to check, if the button has the toolbar look.