Module implementing a menu populated from a QAbstractItemModel.
None |
E5ModelMenu | Class implementing a menu populated from a QAbstractItemModel. |
None |
Class implementing a menu populated from a QAbstractItemModel.
None |
None |
E5ModelMenu | Constructor |
__aboutToShow | Private slot to show the menu. |
__actionTriggered | Private slot to handle the triggering of an action. |
__makeAction | Private method to create an action. |
createBaseMenu | Public method to get the menu that is used to populate sub menu's. |
createMenu | Public method to put all the children of a parent into a menu of a given length. |
dragEnterEvent | Protected method to handle drag enter events. |
dropEvent | Protected method to handle drop events. |
firstSeparator | Public method to get the first separator. |
index | Public method to get the index of an action. |
makeAction | Public method to create an action. |
maxRows | Public method to get the maximum number of entries to show. |
model | Public method to get a reference to the model. |
mouseMoveEvent | Protected method to handle mouse move events. |
mousePressEvent | Protected method handling mouse press events. |
mouseReleaseEvent | Protected method handling mouse release events. |
postPopulated | Public method to add any actions after the tree. |
prePopulated | Public method to add any actions before the tree. |
removeEntry | Public method to remove a menu entry. |
resetFlags | Public method to reset the saved internal state. |
rootIndex | Public method to get the index of the root item. |
separatorRole | Public method to get the role of the separator. |
setFirstSeparator | Public method to set the first separator. |
setMaxRows | Public method to set the maximum number of entries to show. |
setModel | Public method to set the model for the menu. |
setRootIndex | Public method to set the index of the root item. |
setSeparatorRole | Public method to set the role of the separator. |
setStatusBarTextRole | Public method to set the role of the status bar text. |
statusBarTextRole | Public method to get the role of the status bar text. |
None |
Constructor
Private slot to show the menu.
Private slot to handle the triggering of an action.
Private method to create an action.
Public method to get the menu that is used to populate sub menu's.
Public method to put all the children of a parent into a menu of a given length.
Protected method to handle drag enter events.
Protected method to handle drop events.
Public method to get the first separator.
Public method to get the index of an action.
Public method to create an action.
Public method to get the maximum number of entries to show.
Public method to get a reference to the model.
Protected method to handle mouse move events.
Protected method handling mouse press events.
Protected method handling mouse release events.
Public method to add any actions after the tree.
Public method to add any actions before the tree.
Public method to remove a menu entry.
Public method to reset the saved internal state.
Public method to get the index of the root item.
Public method to get the role of the separator.
Public method to set the first separator.
Public method to set the maximum number of entries to show.
Public method to set the model for the menu.
Public method to set the index of the root item.
Public method to set the role of the separator.
Public method to set the role of the status bar text.
Public method to get the role of the status bar text.