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

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

Summary:
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:

{F3903672}

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

Reviewed By: broulik

Differential Revision: https://phabricator.kde.org/D7743
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->setPriority(QAction::LowPriority);
mRotateLeftAction->setText(i18n("Rotate Left"));
mRotateLeftAction->setToolTip(i18nc("@info:tooltip", "Rotate image to the left"));
mRotateLeftAction->setIcon(QIcon::fromTheme("object-rotate-left"));
actionCollection->setDefaultShortcut(mRotateLeftAction, Qt::CTRL + Qt::Key_L);
mRotateRightAction = edit->addAction("rotate_right", q, SLOT(rotateRight()));
mRotateRightAction->setPriority(QAction::LowPriority);
mRotateRightAction->setText(i18n("Rotate Right"));
mRotateRightAction->setToolTip(i18nc("@info:tooltip", "Rotate image to the right"));
mRotateRightAction->setIcon(QIcon::fromTheme("object-rotate-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