summaryrefslogtreecommitdiff
path: root/src/filetreemodel.h
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-12-19 23:00:18 -0500
committerisanae <14251494+isanae@users.noreply.github.com>2020-02-04 03:33:19 -0500
commit2be531470d54fa56307e392ad5bdfbc02048a744 (patch)
tree4ab9e436d40b1650fdce9378bdef83b970cd2136 /src/filetreemodel.h
parent0a908c49625fe0e54bc45e29fe8c4908d20b0dbe (diff)
renamed ToLower() to avoid confusion with in-place vs copy
pre-hashed file lookup in DirectoryEntry
Diffstat (limited to 'src/filetreemodel.h')
-rw-r--r--src/filetreemodel.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/filetreemodel.h b/src/filetreemodel.h
index 0cfe19c7..8a1738b3 100644
--- a/src/filetreemodel.h
+++ b/src/filetreemodel.h
@@ -23,8 +23,13 @@ public:
FileTreeModel(OrganizerCore& core, QObject* parent=nullptr);
- void setFlags(Flags f);
+ void setFlags(Flags f)
+ {
+ m_flags = f;
+ }
+
void refresh();
+ void clear();
QModelIndex index(int row, int col, const QModelIndex& parent={}) const override;
QModelIndex parent(const QModelIndex& index) const override;
@@ -53,7 +58,11 @@ private:
mutable std::vector<QModelIndex> m_iconPending;
mutable QTimer m_iconPendingTimer;
- bool showConflicts() const;
+ bool showConflicts() const
+ {
+ return (m_flags & Conflicts);
+ }
+
bool showArchives() const;
void fill(