28 :
public QAbstractItemModel
29 ,
public Nano::Observer
34 void setSelected(QList<const IdentifiedObjectAbstract*> sel);
36 QModelIndex index(
int row,
int column,
const QModelIndex& parent)
const override;
37 QModelIndex parent(
const QModelIndex& child)
const override;
38 QVariant headerData(
int section, Qt::Orientation orientation,
int role)
const override;
40 int rowCount(
const QModelIndex& parent)
const override;
41 int columnCount(
const QModelIndex& parent)
const override;
43 QVariant data(
const QModelIndex& index,
int role)
const override;
44 Qt::ItemFlags flags(
const QModelIndex& index)
const override;
46 bool setData(
const QModelIndex& index,
const QVariant& value,
int role)
override;
48 QMimeData* mimeData(
const QModelIndexList& indexes)
const override;
50 const QMimeData* data, Qt::DropAction action,
int row,
int column,
51 const QModelIndex& parent)
const override;
53 const QMimeData* data, Qt::DropAction action,
int row,
int column,
54 const QModelIndex& parent)
override;
55 Qt::DropActions supportedDropActions()
const override;
56 Qt::DropActions supportedDragActions()
const override;
59 void changed() W_SIGNAL(changed);
62 void setupConnections();
63 void cleanConnections();
65 bool isAlive(QObject* obj)
const;
67 template <
typename... Args>
68 void recompute(Args&&...)
79 QList<const QObject*> m_root;
80 QMetaObject::Connection m_con;
84 std::vector<QMetaObject::Connection> m_itemCon;
Definition DocumentContext.hpp:18
Specializes ApplicationContext with the QMainWindow.
Definition GUIApplicationContext.hpp:15