Commit 5808246d authored by Glen Ditchfield's avatar Glen Ditchfield 🐛
Browse files

Allow the printed to-do list to be sorted by tags

parent fa9ad2e0
Pipeline #66241 passed with stage
in 6 minutes and 29 seconds
......@@ -1465,6 +1465,7 @@ void CalPrintTodos::setSettingsWidget()
cfg->mSortField->addItem(i18nc("@option sort by due date/time", "Due Date"));
cfg->mSortField->addItem(i18nc("@option sort by priority", "Priority"));
cfg->mSortField->addItem(i18nc("@option sort by percent completed", "Percent Complete"));
cfg->mSortField->addItem(i18nc("@option sort by tags", "Tags"));
cfg->mSortField->setCurrentIndex(mTodoSortField);
}
......@@ -1629,6 +1630,9 @@ void CalPrintTodos::print(QPainter &p, int width, int height)
case TodoFieldPercentComplete:
sortField = KCalendarCore::TodoSortPercentComplete;
break;
case TodoFieldCategories:
sortField = KCalendarCore::TodoSortCategories;
break;
case TodoFieldUnset:
break;
}
......
......@@ -292,6 +292,7 @@ protected:
TodoFieldDueDate,
TodoFieldPriority,
TodoFieldPercentComplete,
TodoFieldCategories,
TodoFieldUnset
} mTodoSortField;
......
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