From c6713d0876ce2d99f912151c9884477606909681 Mon Sep 17 00:00:00 2001 From: jaseg Date: Mon, 17 Aug 2020 00:56:17 +0200 Subject: More UI work --- tagproptablemodel.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tagproptablemodel.h') diff --git a/tagproptablemodel.h b/tagproptablemodel.h index 09ab8b4..4ba0b3a 100644 --- a/tagproptablemodel.h +++ b/tagproptablemodel.h @@ -12,8 +12,7 @@ class TagPropTableModel : public QAbstractTableModel Q_OBJECT public: - TagPropTableModel(SQLiteSaveFile &backend) : TagPropTableModel(backend, false) {}; - TagPropTableModel(SQLiteSaveFile &backend, const Tag tag); + TagPropTableModel(SQLiteSaveFile *backend, bool showBaseData=true); int rowCount(const QModelIndex &parent=QModelIndex()) const override; int columnCount(const QModelIndex &parent=QModelIndex()) const override; @@ -25,16 +24,17 @@ public: void showTag(const Tag &tag); + QVariantMap metadata() { return tag_cached.metadata; } + private slots: void tagChange(TagChange change, const Tag &tag); private: - TagPropTableModel(SQLiteSaveFile &backend, bool tagIsValid); - SQLiteSaveFile &backend; + SQLiteSaveFile *backend = nullptr; Tag tag_cached; QStringList tag_keys; - bool tagIsValid; + bool showBaseData; }; #endif // TAGPROPTABLEMODEL_H -- cgit