13 #ifndef QmitkPropertyItemModel_h
14 #define QmitkPropertyItemModel_h
17 #include <QAbstractItemModel>
26 struct IBerryPreferences;
45 int columnCount(
const QModelIndex &parent = QModelIndex())
const override;
46 QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole)
const override;
47 Qt::ItemFlags flags(
const QModelIndex &index)
const override;
49 QVariant headerData(
int section, Qt::Orientation orientation,
int role)
const override;
50 QModelIndex index(
int row,
int column,
const QModelIndex &parent = QModelIndex())
const override;
51 QModelIndex parent(
const QModelIndex &child)
const override;
52 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
53 bool setData(
const QModelIndex &index,
const QVariant &value,
int role = Qt::EditRole)
override;
58 void CreateRootItem();
60 void OnPropertyListModified();
61 void OnPropertyListDeleted();
62 void OnPropertyModified(
const itk::Object *property,
const itk::EventObject &event);
69 std::unique_ptr<QmitkPropertyItem> m_RootItem;
70 std::map<std::string, unsigned long> m_PropertyDeletedTags;
71 std::map<std::string, unsigned long> m_PropertyModifiedTags;
72 unsigned long m_PropertyListDeletedTag;
73 unsigned long m_PropertyListModifiedTag;