summaryrefslogtreecommitdiff
path: root/tagproptablemodel.h
diff options
context:
space:
mode:
Diffstat (limited to 'tagproptablemodel.h')
-rw-r--r--tagproptablemodel.h10
1 files changed, 5 insertions, 5 deletions
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