diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2022-04-13 16:47:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-13 16:47:44 +0300 |
commit | 4033411ffadb7d9491fafe89a2dc72f47173897e (patch) | |
tree | 4583f645f7a13f45ace8af34f9543b545f427cbd /src/gui/folderstatusdelegate.h | |
parent | 5205defcd23a65d4e7ed889e005d082745bf340b (diff) |
Use the folder object directly instead of looking it up by its name (#9583)
Diffstat (limited to 'src/gui/folderstatusdelegate.h')
-rw-r--r-- | src/gui/folderstatusdelegate.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/folderstatusdelegate.h b/src/gui/folderstatusdelegate.h index 8908bb2b8..63dc22132 100644 --- a/src/gui/folderstatusdelegate.h +++ b/src/gui/folderstatusdelegate.h @@ -29,8 +29,7 @@ public: FolderStatusDelegate(); // TODO: don't use the role but columns... - enum datarole { FolderAliasRole = Qt::UserRole + 100, - HeaderRole, + enum datarole { HeaderRole = Qt::UserRole + 100, FolderPathRole, // for a SubFolder it's the complete path FolderSecondPathRole, FolderConflictMsg, @@ -48,7 +47,7 @@ public: AddButton, // 1 = enabled; 2 = disabled FolderSyncText, - + IsReady // boolean }; void paint(QPainter *, const QStyleOptionViewItem &, const QModelIndex &) const override; |