diff options
author | jaseg <git-bigdata-wsl-arch@jaseg.de> | 2020-08-17 00:56:17 +0200 |
---|---|---|
committer | jaseg <git-bigdata-wsl-arch@jaseg.de> | 2020-08-17 00:56:17 +0200 |
commit | c6713d0876ce2d99f912151c9884477606909681 (patch) | |
tree | 07717d3ffb8d78095f83bee5b0779a6bd264149a /tagproptablemodel.h | |
parent | 2deadc6cfbf71e06908963fb1bae628cfe370f9d (diff) | |
download | numberator-c6713d0876ce2d99f912151c9884477606909681.tar.gz numberator-c6713d0876ce2d99f912151c9884477606909681.tar.bz2 numberator-c6713d0876ce2d99f912151c9884477606909681.zip |
More UI work
Diffstat (limited to 'tagproptablemodel.h')
-rw-r--r-- | tagproptablemodel.h | 10 |
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
|