Commit 144f440c authored by Nathaniel Graham's avatar Nathaniel Graham

Always show image rotation buttons in Image Operations sidebar when other operations are available

BUG: 354149

Always show the Rotate Left and Rotate Right operations in the Image Operations sidebar when other edit operations are visible.

Test Plan:
Tested in KDE Neon (dev unstable). Works as expected:


Reviewers: #kde_applications, aacid, broulik, cfeck, #vdg, jensreuterberg

Reviewed By: broulik

Differential Revision:
parent 7bfd9a54
......@@ -79,15 +79,14 @@ struct ImageOpsContextManagerItem::Private
KActionCollection* actionCollection = mMainWindow->actionCollection();
KActionCategory* edit = new KActionCategory(i18nc("@title actions category - means actions changing image", "Edit"), actionCollection);
mRotateLeftAction = edit->addAction("rotate_left", q, SLOT(rotateLeft()));
mRotateLeftAction->setText(i18n("Rotate Left"));
mRotateLeftAction->setToolTip(i18nc("@info:tooltip", "Rotate image to the left"));
actionCollection->setDefaultShortcut(mRotateLeftAction, Qt::CTRL + Qt::Key_L);
mRotateRightAction = edit->addAction("rotate_right", q, SLOT(rotateRight()));
mRotateRightAction->setText(i18n("Rotate Right"));
mRotateRightAction->setToolTip(i18nc("@info:tooltip", "Rotate image to the right"));
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