The QKeySequenceWidget is a widget to input a QKeySequence.
More...
#include <qkeysequencewidget/src/qkeysequencewidget.h>
List of all members.
Detailed Description
The QKeySequenceWidget is a widget to input a QKeySequence.
This widget lets the user choose a QKeySequence, which is usually used as a shortcut key. The recording is initiated by calling captureKeySequence() or the user clicking into the widget.
Member Enumeration Documentation
Modes of sohow ClearButton.
- Enumerator:
NoShow |
Hide ClearButton
|
ShowLeft |
ClearButton isow is left
|
ShowRight |
ClearButton isow is left
|
Constructor & Destructor Documentation
QKeySequenceWidget |
( |
QKeySequence |
seq, |
|
|
QString |
noneString, |
|
|
QWidget * |
parent = 0 |
|
) |
| [explicit] |
Creates a QKeySequenceWidget object wuth parent and keysequence keySequence and string for noneString
Member Function Documentation
void captureKeySequence |
( |
) |
[slot] |
Start process capturing key sequence. This slot is designed for software process capturing key sequence.
QIcon clearButtonIcon |
( |
) |
const |
QKeySequenceWidget::ClearButtonShow clearButtonShow |
( |
) |
const |
Return mode of clear button dosplay.
- Parameters:
-
show | Display mode of clear button (NoShow, ShowLeft or ShorRight) |
- See also:
- setClearButtonShow
void clearKeySequence |
( |
) |
[slot] |
QKeySequence keySequence |
( |
) |
const |
QString noneText |
( |
) |
const |
Get string for display when key sequence is undefined.
- Returns:
- Text string
- See also:
- setNoneText
void setClearButtonIcon |
( |
const QIcon & |
icon ) |
[slot] |
void setClearButtonShow |
( |
QKeySequenceWidget::ClearButtonShow |
show ) |
[slot] |
Setting mode of Clear Buttorn display.
- Parameters:
-
show | Position of clear button ClearButtornShow |
- See also:
- clearButtonShow
void setKeySequence |
( |
const QKeySequence & |
key ) |
[slot] |
void setNoneText |
( |
const QString |
text ) |
[slot] |
Set string for display when key sequence is undefined.
- Parameters:
-
- See also:
- noneText
void setToolTip |
( |
const QString & |
tip ) |
|
Setting tooltip text to sequence button
- Parameters:
-