Changeset View
Changeset View
Standalone View
Standalone View
src/incidenceattachmentmodel.h
Show All 38 Lines | |||||
39 | { | 39 | { | ||
40 | Q_OBJECT | 40 | Q_OBJECT | ||
41 | Q_PROPERTY(int attachmentCount READ rowCount NOTIFY rowCountChanged) | 41 | Q_PROPERTY(int attachmentCount READ rowCount NOTIFY rowCountChanged) | ||
42 | 42 | | |||
43 | public: | 43 | public: | ||
44 | enum Roles { | 44 | enum Roles { | ||
45 | AttachmentDataRole = Qt::UserRole, | 45 | AttachmentDataRole = Qt::UserRole, | ||
46 | MimeTypeRole, | 46 | MimeTypeRole, | ||
47 | AttachmentUrl, | | |||
48 | AttachmentCountRole, | 47 | AttachmentCountRole, | ||
49 | 48 | | |||
50 | UserRole = Qt::UserRole + 100 | 49 | UserRole = Qt::UserRole + 100 | ||
51 | }; | 50 | }; | ||
52 | 51 | | |||
53 | explicit IncidenceAttachmentModel(const QPersistentModelIndex &modelIndex, | 52 | explicit IncidenceAttachmentModel(const QPersistentModelIndex &modelIndex, | ||
54 | QObject *parent = nullptr); | 53 | QObject *parent = nullptr); | ||
55 | 54 | | |||
Show All 32 Lines |