class KSelectAction |
|
Action for selecting one of several items
Action for selecting one of several items. This action shows up a submenu with a list of items. One of them can be checked. If the user clicks on an item this item will automatically be checked, the formerly checked item becomes unchecked. There can be only one item checked at a time. |
|
Constructs a selection action with the specified parent.
parent - The action's parent object. |
|
Constructs a selection action with text; a shortcut may be specified by
the ampersand character (e.g. "&Option" creates a shortcut with key O )
This is the most common KSelectAction used when you do not have a corresponding icon (note that it won't appear in the current version of the "Edit ToolBar" dialog, because an action needs an icon to be plugged in a toolbar...). text - The text that will be displayed. parent - The action's parent object. |
|
Constructs a selection action with text and an icon; a shortcut may be specified by
the ampersand character (e.g. "&Option" creates a shortcut with key O )
This is the other common KSelectAction used. Use it when you do have a corresponding icon. icon - The icon to display. text - The text that will be displayed. parent - The action's parent object. |
|
Internal
Creates a new KSelectAction object.
dd - the private d member parent - The action's parent object. |
|
Returns the action at index, if one exists. |
|
Searches for an action with the specified text, using a search whose case sensitivity is defined by cs. |
|
This function is called whenever an action from the selections is triggered. |
|
Returns the list of selectable actions |
|
Add action to the list of selectable actions. |
|
addAction(QAction* action)
Convenience function which creates an action from text and inserts it into the list of selectable actions. The newly created action is checkable and not user configurable. |
|
addAction(QAction* action)
Convenience function which creates an action from text and icon and inserts it into the list of selectable actions. The newly created action is checkable and not user configurable. |
|
Changes the text of item index - to text - . |
|
Clears up all the items in this action. The actions will be deleted for backwards compatibility with KDE3. If you just want to remove all actions, use removeAllActions() |
|
When this action is plugged into a toolbar, it creates a combobox. This returns the maximum width set by setComboWidth |
|
Reimplemented from
See also QWidgetAction. |
|
Returns the current QAction.
See also setCurrentAction |
|
Returns the index of the current item.
See also currentItem and currentAction |
|
Returns the text of the currently selected item.
See also currentItem and currentAction |
|
Reimplemented from
See also QWidgetAction. |
|
|
When this action is plugged into a toolbar, it creates a combobox. Returns true if the combo editable. |
|
Convenience function which returns the items that can be selected with this action. It is the same as iterating selectableActionGroup()->actions() and looking at each action's text(). |
|
Returns whether ampersands passed to methods using QStrings are interpreted as keyboard accelerator indicators or as literal ampersands. |
|
Remove the specified action from this action selector.
You take ownership here, so save or delete it in order to not leak the action. |
|
|
The action group used to create exclusivity between the actions associated with this action. |
|
When this action is plugged into a toolbar, it creates a combobox. This gives a _maximum_ size to the combobox. The minimum size is automatically given by the contents (the items). |
|
Sets the currently checked item.
action - the QAction to become the currently checked item. Returns true if a corresponding action was found and successfully checked. |
|
setCurrentAction(QAction*)
Convenience function to set the currently checked action to be the action which has text as its text(). If there is no action at that index, the currently checked action (if any) will be deselected. Returns true if a corresponding action was found, otherwise false |
|
setCurrentAction(QAction*)
Convenience function to set the currently checked action to be the action at index index. If there is no action at that index, the currently checked action (if any) will be deselected. Returns true if a corresponding action was found and thus set to the current action, otherwise false |
|
When this action is plugged into a toolbar, it creates a combobox. This makes the combo editable or read-only. |
|
Convenience function to create the list of selectable items. Any previously existing items will be cleared. |
|
Sets the maximum items that are visible at once if the action is a combobox, that is the number of items in the combobox's viewport |
|
Sets whether any occurrence of the ampersand character ( & ) in items
should be interpreted as keyboard accelerator for items displayed in a
menu or not. Only applies to (overloaded) methods dealing with QStrings,
not those dealing with QActions.
Defaults to true. b - true if ampersands indicate a keyboard accelerator, otherwise false. |
|
Set the type of widget to be inserted in a toolbar to mode. |
|
Set how this list of actions should behave when in popup mode and plugged into a toolbar. |
|
For structured menu building. Deselects all items if the action was unchecked by the top menu |
|
Returns which type of widget (combo box or button with drop-down menu) will be inserted in a toolbar. |
|
Returns the style for the list of actions, when this action is plugged
into a KToolBar. The default value is QToolButton.InstantPopup
See also QToolButton.setPopupMode() |
|
This signal is emitted when an item is selected; action - indicates the item selected. |
|
This signal is emitted when an item is selected; index - indicates the item selected. |
|
This signal is emitted when an item is selected; text - indicates the item selected. |
Creates a button which pops up a menu when interacted with, as defined by toolButtonPopupMode().
MenuMode | - | - | ||
ComboBoxMode | - | - |