#include <QtxShortcutEdit.h>
Constructor & Destructor Documentation
| QtxShortcutTree::QtxShortcutTree |
( |
QWidget * |
parent = 0 | ) |
|
| QtxShortcutTree::~QtxShortcutTree |
( |
| ) |
[virtual] |
Member Function Documentation
| void QtxShortcutTree::setBindings |
( |
const QString & |
title, |
|
|
const ShortcutMap & |
theShortcutMap |
|
) |
| |
- Parameters:
-
| title | the name of top-level item |
| theShortcutMap | map of key bindings |
References myPrevBindings.
| ShortcutMap * QtxShortcutTree::bindings |
( |
const QString & |
sec | ) |
const |
| QStringList QtxShortcutTree::sections |
( |
| ) |
const |
- Returns:
- list of section names
| void QtxShortcutTree::setGeneralSections |
( |
const QStringList & |
sectionsList | ) |
|
Key combinations in general sections should not intersect with any other key combinations.
- Parameters:
-
| sectionsList | list of common section names |
References myGeneralSections.
| bool QtxShortcutTree::eventFilter |
( |
QObject * |
obj, |
|
|
QEvent * |
event |
|
) |
| [protected, virtual] |
| void QtxShortcutTree::focusOutEvent |
( |
QFocusEvent * |
event | ) |
[protected, virtual] |
| bool QtxShortcutTree::checkUniqueness |
( |
QTreeWidgetItem * |
item, |
|
|
const QString & |
shortcut |
|
) |
| [protected, virtual] |
- Parameters:
-
| item | current item of the shortcut tree |
| shortcut | shortcut appointed for the current item |
- Returns:
true if the given shortcut is allowed
References myGeneralSections, and sections().
- Parameters:
-
| cur | the current item |
| prev | the previous current item |
References myPrevBindings.
Field Documentation