Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit cce412a9 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Add a section title and a separator all tool right-click menus

This prevents accidental clicking on the first entry and looks a
bit better, too.

BUG:408696
parent 9f76e870
......@@ -311,6 +311,9 @@ QMenu* KisSelectionToolHelper::getSelectionContextMenu(KisCanvas2* canvas)
KActionCollection *actionCollection = canvas->viewManager()->actionCollection();
m_contextMenu->addSection(i18n("Selection Actions"));
m_contextMenu->addSeparator();
m_contextMenu->addAction(actionCollection->action("deselect"));
m_contextMenu->addAction(actionCollection->action("invert"));
m_contextMenu->addAction(actionCollection->action("select_all"));
......
......@@ -1666,7 +1666,11 @@ QMenu* DefaultTool::popupActionsMenu()
if (m_contextMenu) {
m_contextMenu->clear();
m_contextMenu->addSection(i18n("Vector Shape Actions"));
m_contextMenu->addSeparator();
QMenu *transform = m_contextMenu->addMenu(i18n("Transform"));
transform->addAction(action("object_transform_rotate_90_cw"));
transform->addAction(action("object_transform_rotate_90_ccw"));
transform->addAction(action("object_transform_rotate_180"));
......
......@@ -222,6 +222,9 @@ QMenu *KisToolCrop::popupActionsMenu()
if (m_contextMenu) {
m_contextMenu->clear();
m_contextMenu->addSection(i18n("Crop Tool Actions"));
m_contextMenu->addSeparator();
// keeps in sync with tool options
growToggleOption->setChecked(allowGrow());
centerToggleOption->setChecked(growCenter());
......
......@@ -346,6 +346,8 @@ QMenu* KisToolTransform::popupActionsMenu()
if (m_contextMenu) {
m_contextMenu->clear();
m_contextMenu->addSection(i18n("Transform Tool Actions"));
m_contextMenu->addSeparator();
// add a quick switch to different transform types
m_contextMenu->addAction(freeTransformAction);
m_contextMenu->addAction(perspectiveAction);
......
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