11 #ifndef NUMERIC_VALUE_CHOOSER_DELEGATE_H_ 12 #define NUMERIC_VALUE_CHOOSER_DELEGATE_H_ 15 #include <QStyledItemDelegate> 25 void setMinMaxRange(
int min,
int max);
26 void setDefaultValue(
int defValue, QVariant defaultReturn);
29 QWidget *createEditor(QWidget *parent,
const QStyleOptionViewItem &
option,
const QModelIndex &index)
const;
30 void setEditorData(QWidget *editor,
const QModelIndex &index)
const;
31 void setModelData(QWidget *editor, QAbstractItemModel *model,
const QModelIndex &index)
const;
41 void onValueChanged(
int i);
Definition: numeric_value_chooser_delegate.h:17