DtkWidget
DTK Widget module
|
信号 | |
void | editingFinished (const QKeySequence &keySequence) |
void | keySequenceChanged (const QKeySequence &keySequence) |
Public 成员函数 | |
DKeySequenceEdit (QWidget *parent=nullptr) | |
DKeySequenceEdit::DKeySequenceEdit 一个快捷键编辑展示的控件 parent | |
void | clear () |
DKeySequenceEdit::clear 清空内容 | |
bool | setKeySequence (const QKeySequence &keySequence) |
DKeySequenceEdit::setKeySequence 设定快捷键 keySequence 快捷键 | |
QKeySequence | keySequence () |
DKeySequenceEdit::keySequence 返回设定的快捷键 | |
void | ShortcutDirection (Qt::AlignmentFlag alig) |
DKeySequenceEdit::ShortcutDirection 快捷键文本展示方向 alig 设定方向的枚举值 | |
QString | getKeySequence (QKeySequence sequence) |
DKeySequenceEdit::getKeySequence 将Qt快捷键文案转换为Dtk文案 | |
Protected 成员函数 | |
void | keyPressEvent (QKeyEvent *event) override |
bool | event (QEvent *e) override |
QString Dtk::Widget::DKeySequenceEdit::getKeySequence | ( | QKeySequence | sequence | ) |
DKeySequenceEdit::getKeySequence 将Qt快捷键文案转换为Dtk文案
QKeySequence Dtk::Widget::DKeySequenceEdit::keySequence | ( | ) |
DKeySequenceEdit::keySequence 返回设定的快捷键
bool Dtk::Widget::DKeySequenceEdit::setKeySequence | ( | const QKeySequence & | keySequence | ) |
DKeySequenceEdit::setKeySequence 设定快捷键 keySequence 快捷键