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