QKeySequenceEdit::setClearButtonEnabled was introduced in Qt 6.4.
This commit is contained in:
parent
06dd217130
commit
5c1d8476ff
|
@ -82,6 +82,10 @@ VShortcutDialog::VShortcutDialog(int index, QWidget *parent)
|
|||
|
||||
m_shortcutObject = VAbstractApplication::VApp()->GetShortcutManager()->GetShortcutsList().value(index);
|
||||
ui->keySequenceEdit->setKeySequence(m_shortcutObject.shortcuts.join(", "_L1));
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 4, 0)
|
||||
ui->keySequenceEdit->setClearButtonEnabled(true);
|
||||
#endif
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
|
|
|
@ -15,11 +15,7 @@
|
|||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QKeySequenceEdit" name="keySequenceEdit">
|
||||
<property name="clearButtonEnabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QKeySequenceEdit" name="keySequenceEdit"/>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QDialogButtonBox" name="buttonBox">
|
||||
|
|
Loading…
Reference in New Issue
Block a user