Commit d740abcb authored by Dmitry Kazakov's avatar Dmitry Kazakov

Add "New->Clone Layer" actions to right-click and menubar menus

BUG:411704
parent d568016b
......@@ -177,6 +177,7 @@ xsi:schemaLocation="http://www.kde.org/standards/kxmlgui/1.0 http://www.kde.org
<Menu name="LayerNew">
<text>New</text>
<Action name="add_new_paint_layer"/>
<Action name="add_new_clone_layer"/>
<Action name="new_from_visible"/>
<Action name="duplicatelayer"/>
<Separator/>
......
......@@ -668,6 +668,9 @@ void LayerBox::slotContextMenuRequested(const QPoint &pos, const QModelIndex &in
addActionToMenu(addLayerMenu, "add_new_colorize_mask");
addActionToMenu(addLayerMenu, "add_new_transform_mask");
addActionToMenu(addLayerMenu, "add_new_selection_mask");
addLayerMenu->addSeparator();
addActionToMenu(addLayerMenu, "add_new_clone_layer");
QMenu *convertToMenu = menu.addMenu(i18n("&Convert"));
addActionToMenu(convertToMenu, "convert_to_paint_layer");
......@@ -680,6 +683,9 @@ void LayerBox::slotContextMenuRequested(const QPoint &pos, const QModelIndex &in
addActionToMenu(splitAlphaMenu, "split_alpha_into_mask");
addActionToMenu(splitAlphaMenu, "split_alpha_write");
addActionToMenu(splitAlphaMenu, "split_alpha_save_merged");
} else {
QMenu *addLayerMenu = menu.addMenu(i18n("&Add"));
addActionToMenu(addLayerMenu, "add_new_clone_layer");
}
menu.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