Commit 9f76e870 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Make the transform menu the first entry in the vector tool popup menu

This is safe, since it's a menu with submenus, so clicking doesn't
do anything.

BUG:408696
parent 2325f3fb
......@@ -1666,25 +1666,6 @@ QMenu* DefaultTool::popupActionsMenu()
if (m_contextMenu) {
m_contextMenu->clear();
m_contextMenu->addAction(action("edit_cut"));
m_contextMenu->addAction(action("edit_copy"));
m_contextMenu->addAction(action("edit_paste"));
m_contextMenu->addSeparator();
m_contextMenu->addAction(action("object_order_front"));
m_contextMenu->addAction(action("object_order_raise"));
m_contextMenu->addAction(action("object_order_lower"));
m_contextMenu->addAction(action("object_order_back"));
if (action("object_group")->isEnabled() || action("object_ungroup")->isEnabled()) {
m_contextMenu->addSeparator();
m_contextMenu->addAction(action("object_group"));
m_contextMenu->addAction(action("object_ungroup"));
}
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"));
......@@ -1706,6 +1687,27 @@ QMenu* DefaultTool::popupActionsMenu()
transform->addAction(action("object_subtract"));
transform->addAction(action("object_split"));
}
m_contextMenu->addSeparator();
m_contextMenu->addAction(action("edit_cut"));
m_contextMenu->addAction(action("edit_copy"));
m_contextMenu->addAction(action("edit_paste"));
m_contextMenu->addSeparator();
m_contextMenu->addAction(action("object_order_front"));
m_contextMenu->addAction(action("object_order_raise"));
m_contextMenu->addAction(action("object_order_lower"));
m_contextMenu->addAction(action("object_order_back"));
if (action("object_group")->isEnabled() || action("object_ungroup")->isEnabled()) {
m_contextMenu->addSeparator();
m_contextMenu->addAction(action("object_group"));
m_contextMenu->addAction(action("object_ungroup"));
}
}
return m_contextMenu.data();
......
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