+
+class DataTableItemDelegate : public QStyledItemDelegate
+{
+ Q_OBJECT
+public:
+ DataTableItemDelegate(ModelAPI_AttributeTables::ValueType theType);
+
+ virtual QWidget* createEditor(QWidget* theParent,
+ const QStyleOptionViewItem & theOption,
+ const QModelIndex& theIndex) const;
+
+ ModelAPI_AttributeTables::ValueType dataType() const { return myType; }
+
+ void setDataType(ModelAPI_AttributeTables::ValueType theType) { myType = theType; }
+
+private slots:
+ void onEditItem(const QString& theText);
+
+private:
+ ModelAPI_AttributeTables::ValueType myType;
+};
+
+
+