Commit e24f5e61 authored by Glen Ditchfield's avatar Glen Ditchfield 🐛
Browse files

Make To-do List popup menu match other menus

Make the To-do List's Summary column's popup menu use the same icons,
wording, and ordering as the Actions menu and most view's popup menus.
parent 8e354e85
Pipeline #45170 passed with stage
in 8 minutes
......@@ -309,16 +309,26 @@ TodoView::TodoView(const EventViews::PrefsPtr &prefs, bool sidebarView, QWidget
mItemPopupMenu = new QMenu(this);
mItemPopupMenuItemOnlyEntries << mItemPopupMenu->addAction(
QIcon::fromTheme(QStringLiteral("document-preview")),
i18nc("@action:inmenu show the to-do", "&Show"),
this, &TodoView::showTodo);
QAction *a = mItemPopupMenu->addAction(
QIcon::fromTheme(QStringLiteral("document-edit")),
i18nc("@action:inmenu edit the to-do", "&Edit..."),
this, &TodoView::editTodo);
mItemPopupMenuReadWriteEntries << a;
mItemPopupMenuItemOnlyEntries << a;
a = mItemPopupMenu->addAction(
QIcon::fromTheme(QStringLiteral("edit-delete")),
i18nc("@action:inmenu delete the to-do", "&Delete"),
this, &TodoView::deleteTodo);
mItemPopupMenuReadWriteEntries << a;
mItemPopupMenuItemOnlyEntries << a;
mItemPopupMenu->addSeparator();
mItemPopupMenuItemOnlyEntries << mItemPopupMenu->addAction(
QIcon::fromTheme(QStringLiteral("document-print")),
i18nc("@action:inmenu print the to-do", "&Print..."),
......@@ -328,12 +338,6 @@ TodoView::TodoView(const EventViews::PrefsPtr &prefs, bool sidebarView, QWidget
QIcon::fromTheme(QStringLiteral("document-print-preview")),
i18nc("@action:inmenu print preview the to-do", "Print Previe&w..."),
this, &TodoView::printPreviewTodo);
mItemPopupMenu->addSeparator();
a = mItemPopupMenu->addAction(QIcon::fromTheme(QStringLiteral("edit-delete")),
i18nc("@action:inmenu delete the to-do", "&Delete"),
this, &TodoView::deleteTodo);
mItemPopupMenuReadWriteEntries << a;
mItemPopupMenuItemOnlyEntries << a;
mItemPopupMenu->addSeparator();
......
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