further speedup during load. positions of branches are saved (again)
2 #ifndef ATTRIBUTEDELEGATE_H
3 #define ATTRIBUTEDELEGATE_H
5 #include <QItemDelegate>
12 #include "attribute.h"
14 class AttributeDelegate : public QItemDelegate
18 enum EditorType {Undefined,SpinBox,LineEdit,ComboBox};
21 AttributeDelegate(QObject *parent = 0);
23 QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option,
24 const QModelIndex &index) const;
26 void setEditorData(QWidget *editor, const QModelIndex &index) const ;
27 void setModelData(QWidget *editor, QAbstractItemModel *model,
28 const QModelIndex &index) const ;
30 void updateEditorGeometry(QWidget *editor,
31 const QStyleOptionViewItem &option, const QModelIndex &index) const;
32 void setAttributeTable(AttributeTable *table);
34 AttributeTable *attributeTable;