19 #include <QGridLayout>
22 #include <QPushButton>
46 this->setReadOnly(
true);
47 connect(
this, SIGNAL(textChanged(
const QString &)),
this, SLOT(
LineEditTextChanged(
const QString &)));
59 m_KeySequence = QKeySequence(event->modifiers(),
event->key());
61 if (event->modifiers() == Qt::NoModifier)
70 this->setText(_QKeySequence.toString());
90 QKeySequence _KeySequence = QKeySequence(event->modifiers(),
event->key());
92 if (event->modifiers() == Qt::NoModifier)
93 _KeySequence = QKeySequence(event->key());
bool Matches(QKeyEvent *event)
virtual QString GetKeySequenceAsString()
virtual void keyPressEvent(QKeyEvent *event) override
static const std::string TOOLTIP
virtual QKeySequence GetKeySequence()
QKeySequence m_KeySequence
QmitkHotkeyLineEdit(QWidget *parent=nullptr)
void LineEditTextChanged(const QString &)
virtual void SetKeySequence(const QKeySequence &_QKeySequence)