KDEUI
Go to the documentation of this file.
22 #ifndef KKEYSEQUENCEWIDGET_H
23 #define KKEYSEQUENCEWIDGET_H
25 #include <QtCore/QList>
26 #include <QtGui/QPushButton>
31 class KKeySequenceWidgetPrivate;
55 Q_FLAGS(ShortcutTypes)
58 bool multiKeyShortcutsAllowed
59 READ multiKeyShortcutsAllowed
60 WRITE setMultiKeyShortcutsAllowed )
63 ShortcutTypes checkForConflictsAgainst
64 READ checkForConflictsAgainst
65 WRITE setCheckForConflictsAgainst )
68 bool modifierlessAllowed
69 READ isModifierlessAllowed
70 WRITE setModifierlessAllowed )
101 LocalShortcuts = 0x01,
102 StandardShortcuts = 0x02,
103 GlobalShortcuts = 0x03
105 Q_DECLARE_FLAGS(ShortcutTypes, ShortcutType)
161 void setCheckForConflictsAgainst( ShortcutTypes types );
169 ShortcutTypes checkForConflictsAgainst() const;
174 void setMultiKeyShortcutsAllowed(
bool);
175 bool multiKeyShortcutsAllowed() const;
184 void setModifierlessAllowed(
bool allow);
189 bool isModifierlessAllowed();
195 void setClearButtonShown(
bool show);
208 bool isKeySequenceAvailable(const QKeySequence &seq) const;
213 QKeySequence keySequence() const;
235 #ifndef KDE_NO_DEPRECATED
236 KDE_DEPRECATED
void setCheckActionList(
const QList<QAction*> &checkList);
243 void setComponentName(
const QString &componentName);
252 void keySequenceChanged(
const QKeySequence &seq);
263 void stealShortcut(
const QKeySequence &seq,
KAction *action);
274 void captureKeySequence();
282 void setKeySequence(
const QKeySequence &seq, Validation val = NoValidate);
287 void clearKeySequence();
301 void applyStealShortcut();
304 Q_PRIVATE_SLOT(d,
void doneRecording())
307 friend class KKeySequenceWidgetPrivate;
308 KKeySequenceWidgetPrivate *const d;
313 Q_DECLARE_OPERATORS_FOR_FLAGS(KKeySequenceWidget::ShortcutTypes)
315 #endif //KKEYSEQUENCEWIDGET_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Apr 16 2013 19:13:47 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.