Clean up the model
Add custom roles for QML Set roleNames() Use switch() instead of if() Remove PixmapRole, DecorationRole is enough
This commit is contained in:
parent
f8b59e78b5
commit
b88e8a6268
2 changed files with 27 additions and 40 deletions
|
|
@ -62,7 +62,6 @@ public:
|
|||
QHash<int, QByteArray> roleNames() const;
|
||||
|
||||
enum PostRoles {
|
||||
PixmapRole = Qt::UserRole + 1000,
|
||||
FileUrlRole = Qt::UserRole + 1001,
|
||||
ThumbUrlRole = Qt::UserRole + 1002,
|
||||
SizeRole = Qt::UserRole + 1003,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue