DtkWidget
DTK Widget module
载入中...
搜索中...
未找到
Dtk::Widget::DKeySequenceEdit类 参考
类 Dtk::Widget::DKeySequenceEdit 继承关系图:
Dtk::Widget::KeySequenceEdit

信号

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
 

成员函数说明

◆ getKeySequence()

QString Dtk::Widget::DKeySequenceEdit::getKeySequence ( QKeySequence  sequence)

DKeySequenceEdit::getKeySequence 将Qt快捷键文案转换为Dtk文案

返回
Dtk文案

◆ keySequence()

QKeySequence Dtk::Widget::DKeySequenceEdit::keySequence ( )

DKeySequenceEdit::keySequence 返回设定的快捷键

返回

◆ setKeySequence()

bool Dtk::Widget::DKeySequenceEdit::setKeySequence ( const QKeySequence &  keySequence)

DKeySequenceEdit::setKeySequence 设定快捷键 keySequence 快捷键

返回
true设定成功 false设定失败

该类的文档由以下文件生成: