Commit 3d89861e authored by Claudio Cambra's avatar Claudio Cambra
Browse files

Fixed tags jumping up delegates when unfolding nested tasks

parent f4fb755e
Pipeline #93352 canceled with stage
......@@ -172,7 +172,7 @@ TreeListView {
Repeater {
id: tagsRepeater
model: todoModel.data(todoModel.index(index, 0), Kalendar.ExtraTodoModel.CategoriesRole) // Getting categories from the model is *very* faulty
model: todoCategories // From todoModel
Tag {
implicitWidth: itemLayout.implicitWidth > tagFlow.width ? tagFlow.width : itemLayout.implicitWidth
......
......@@ -138,7 +138,7 @@ QHash<int, QByteArray> ExtraTodoModel::roleNames() const
roleNames[Roles::IncidencePtrRole] = "incidencePtr";
roleNames[Roles::TagsRole] = "tags";
roleNames[Roles::ItemRole] = "item";
roleNames[Roles::CategoriesRole] = "categories";
roleNames[Roles::CategoriesRole] = "todoCategories"; // Simply 'categories' causes issues
roleNames[Roles::CategoriesDisplayRole] = "categoriesDisplay";
roleNames[Roles::TreeDepthRole] = "treeDepth";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment