![]() |
BuildmLearn Toolkit
2.0.4
BuildmLearn Toolkit is an easy-to-use program that helps users make mobile apps without any knowledge of application development.
|
Widget for displaying and editing shortcuts. More...
#include <dynamicshortcutswidget.h>
Public Member Functions | |
DynamicShortcutsWidget (QWidget *parent=0) | |
Constructor. More... | |
virtual | ~DynamicShortcutsWidget () |
Destructor. | |
void | updateShortcuts () |
Updates shortcuts of all actions according to changes. More... | |
bool | areShortcutsUnique () |
Checks whether set shortcuts are unique. More... | |
void | populate (const QList< QAction * > actions) |
Populates this widget with shortcut widgets for given actions. More... | |
Widget for displaying and editing shortcuts.
Definition at line 44 of file dynamicshortcutswidget.h.
|
explicit |
Constructor.
parent | Pointer to parent object. |
Definition at line 44 of file dynamicshortcutswidget.cpp.
bool DynamicShortcutsWidget::areShortcutsUnique | ( | ) |
Checks whether set shortcuts are unique.
Definition at line 56 of file dynamicshortcutswidget.cpp.
void DynamicShortcutsWidget::populate | ( | const QList< QAction * > | actions | ) |
Populates this widget with shortcut widgets for given actions.
This gets initial shortcut for each action from its properties, NOT from the application settings, so shortcuts from settings need to be assigned to actions before calling this method.
Definition at line 81 of file dynamicshortcutswidget.cpp.
void DynamicShortcutsWidget::updateShortcuts | ( | ) |
Updates shortcuts of all actions according to changes.
No access to settings is done here. Shortcuts are fetched from settings when applications starts and stored back to settings when application quits.
Definition at line 75 of file dynamicshortcutswidget.cpp.