12 #ifndef NUMERIC_VALUE_CHOOSER_DELEGATE_H_
13 #define NUMERIC_VALUE_CHOOSER_DELEGATE_H_
16 #include <QStyledItemDelegate>
26 void setMinMaxRange(
int min,
int max);
27 void setDefaultValue(
int defValue, QVariant defaultReturn);
30 QWidget *createEditor(QWidget *parent,
const QStyleOptionViewItem &option,
const QModelIndex &index)
const;
31 void setEditorData(QWidget *editor,
const QModelIndex &index)
const;
32 void setModelData(QWidget *editor, QAbstractItemModel *model,
const QModelIndex &index)
const;
42 void onValueChanged(
int i);
Definition: numeric_value_chooser_delegate.h:19