20 : QStyledItemDelegate(parent), d(new
Private)
33 KComboBox *combo =
new KComboBox(parent);
41 combo->setCurrentIndex(0);
48 KComboBox *combo = qobject_cast<KComboBox *>(editor);
51 combo->setCurrentIndex(index.data(Qt::EditRole).toUInt() - 1);
56 KComboBox *combo = qobject_cast<KComboBox *>(editor);
58 model->setData(index, combo->currentIndex() + 1, Qt::EditRole);
63 editor->setGeometry(option.rect);
QList< QString > QStringList
static QString shortcutTypeToText(ShortcutType type)
@ NativeGestureType
A macOS gesture.
@ MouseButtonType
A mouse button, possibly with key modifiers.
@ MouseWheelType
Mouse wheel movement, possibly with key modifiers.
@ TouchGestureType
A touch gesture.
@ KeyCombinationType
A list of keys that should be pressed.