Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Remove the "tricky" code in rightmostProperties

Maciej Jesionowskidfe4b8e3789c
diff --git a/plugins/dockers/layerdocker/NodeDelegate.cpp b/plugins/dockers/layerdocker/NodeDelegate.cpp
index ba64edfb7a..79481e510c 100644
--- a/plugins/dockers/layerdocker/NodeDelegate.cpp
+++ b/plugins/dockers/layerdocker/NodeDelegate.cpp
@@ -434,7 +434,6 @@ QList<OptionalProperty> NodeDelegate::Private::rightmostProperties(const KisBase
list << OptionalProperty(0);
list << OptionalProperty(0);
list << OptionalProperty(0);
- list << OptionalProperty(0);
KisBaseNode::PropertyList::const_iterator it = props.constBegin();
KisBaseNode::PropertyList::const_iterator end = props.constEnd();
@@ -446,24 +445,17 @@ QList<OptionalProperty> NodeDelegate::Private::rightmostProperties(const KisBase
if (it->id == KisLayerPropertiesIcons::visible.id()) {
// noop...
- } else if (it->id == KisLayerPropertiesIcons::colorOverlay.id()) {
- list[0] = OptionalProperty(&(*it));
} else if (it->id == KisLayerPropertiesIcons::locked.id()) {
- list[1] = OptionalProperty(&(*it));
+ list[0] = OptionalProperty(&(*it));
} else if (it->id == KisLayerPropertiesIcons::inheritAlpha.id()) {
- list[2] = OptionalProperty(&(*it));
+ list[1] = OptionalProperty(&(*it));
} else if (it->id == KisLayerPropertiesIcons::alphaLocked.id()) {
- list[3] = OptionalProperty(&(*it));
+ list[2] = OptionalProperty(&(*it));
} else {
prependList.prepend(OptionalProperty(&(*it)));
}
}
- // If fast color overlay is not used, don't show its icon.
- if (list[0] == nullptr) {
- list.removeFirst();
- }
-
{
QMutableListIterator<OptionalProperty> i(prependList);
i.toBack();