diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-01-22 03:58:22 -0500 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2020-02-04 03:33:22 -0500 |
| commit | a55a69e6ac56dfb6851b5538e4252e9d8dab402b (patch) | |
| tree | 2c0a9556869d2f263641c4866741a2ee71c80ae2 /src/filetreeitem.h | |
| parent | 412165fcfbbd27d679a7400ebdef75ff3a9d6aa7 (diff) | |
file size column
Diffstat (limited to 'src/filetreeitem.h')
| -rw-r--r-- | src/filetreeitem.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/filetreeitem.h b/src/filetreeitem.h index 2677d590..445b1ea8 100644 --- a/src/filetreeitem.h +++ b/src/filetreeitem.h @@ -17,6 +17,12 @@ public: Conflicted = 0x04 }; + struct Meta + { + uint64_t size; + }; + + Q_DECLARE_FLAGS(Flags, Flag); FileTreeItem( @@ -124,6 +130,8 @@ public: QFont font() const; + const Meta& meta() const; + const QString& realPath() const { return m_realPath; @@ -210,6 +218,7 @@ private: const MOShared::DirectoryEntry::FileKey m_key; const QString m_file; const QString m_mod; + mutable std::optional<Meta> m_meta; bool m_loaded; bool m_expanded; |
