16 #ifndef QGSLOCALEAWARENUMERICLINEEDITDELEGATE_H
17 #define QGSLOCALEAWARENUMERICLINEEDITDELEGATE_H
19 #include <QStyledItemDelegate>
36 class QgsLocaleAwareNumericLineEditDelegate:
public QStyledItemDelegate
48 QgsLocaleAwareNumericLineEditDelegate(
Qgis::DataType dataType, QWidget *parent =
nullptr );
50 QWidget *createEditor( QWidget *parent,
const QStyleOptionViewItem &option,
const QModelIndex &index )
const override;
54 void setEditorData( QWidget *editor,
const QModelIndex &index )
const override;
55 void setModelData( QWidget *editor, QAbstractItemModel *model,
const QModelIndex &index )
const override;
56 QString displayText(
const QVariant &value,
const QLocale &locale )
const override;
DataType
Raster data types.