Commit 6c39c98e authored by José Luis Vergara's avatar José Luis Vergara
Browse files

Remove unnecessary clutter from the KisLayerBox menu

o Commands to change the layer's individual properties were removed: there are
icons for that.
o Commands to add new layers were removed: the add layer button is there for that,
and there is no need to right click on a layer to add a new layer.
o Commands to delete, duplicate or merge the layer down were presented: there are
icons to do that (except merge layer down), however, right clicking on a layer to
remove it or duplicate it makes sense, unlike right clicking on a layer to add a new one.

BUG:275764
parent 2c342fb5
......@@ -357,27 +357,13 @@ void KisLayerBox::slotContextMenuRequested(const QPoint &pos, const QModelIndex
QMenu menu;
if (index.isValid()) {
m_wdgLayerBox->listLayers->addPropertyActions(&menu, index);
menu.addAction(KIcon("document-properties"), i18n("&Properties..."), this, SLOT(slotPropertiesClicked()));
menu.addSeparator();
menu.addAction(KIcon("edit-delete"), i18n("&Remove Layer"), this, SLOT(slotRmClicked()));
menu.addAction(KIcon("edit-duplicate"), i18n("&Duplicate Layer or Mask"), this, SLOT(slotDuplicateClicked()));
QAction* mergeLayerDown = menu.addAction(KIcon("edit-merge"), i18n("&Merge with Layer Below"), this, SLOT(slotMergeLayer()));
if (!index.sibling(index.row() + 1, 0).isValid()) mergeLayerDown->setEnabled(false);
menu.addSeparator();
}
menu.addAction(m_newPainterLayerAction);
menu.addAction(m_newGroupLayerAction);
menu.addAction(m_newCloneLayerAction);
menu.addAction(m_newShapeLayerAction);
menu.addAction(m_newAdjustmentLayerAction);
menu.addAction(m_newGeneratorLayerAction);
menu.addSeparator();
menu.addAction(m_newTransparencyMaskAction);
menu.addAction(m_newEffectMaskAction);
// menu.addAction(KIcon("view-filter"), i18n("&Transformation Mask..."), this, SLOT(slotNewTransformationMask()));
menu.addAction(m_newSelectionMaskAction);
menu.exec(pos);
}
......
Supports Markdown
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