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++

Hide property config in css style preset edit window.

Wolthera van Hövell tot Westerflier6ed3a96ec2e4
diff --git a/plugins/dockers/textproperties/qml/CssStylePresetEdit.qml b/plugins/dockers/textproperties/qml/CssStylePresetEdit.qml
index c65b8deae6..4906264128 100644
--- a/plugins/dockers/textproperties/qml/CssStylePresetEdit.qml
+++ b/plugins/dockers/textproperties/qml/CssStylePresetEdit.qml
@@ -174,6 +174,7 @@ Control {
TextPropertyBaseList {
propertiesModel: styleEdit.textProperties;
locales: styleEdit.locales;
+ textConfigButtonVisible: false;
Layout.fillWidth: true;
Layout.fillHeight: true;
canvasDPI: styleEdit.makePixelRelative? styleEdit.pixelRelativeDPI: styleEdit.canvasDPI;
diff --git a/plugins/dockers/textproperties/qml/TextPropertyBaseList.qml b/plugins/dockers/textproperties/qml/TextPropertyBaseList.qml
index d686f82332..3480d4f169 100644
--- a/plugins/dockers/textproperties/qml/TextPropertyBaseList.qml
+++ b/plugins/dockers/textproperties/qml/TextPropertyBaseList.qml
@@ -18,6 +18,8 @@ ColumnLayout {
property KoSvgTextPropertiesModel propertiesModel;
property var locales: [];
+ property alias textConfigButtonVisible: configButton.visible;
+
ListModel {
id: propertyList;
}
@@ -405,7 +407,7 @@ ColumnLayout {
id: configButton;
icon.source: "qrc:///light_configure.svg"
icon.color: palette.text;
- icon.width: 16;
+ icon.width: visible? 16: 0;
icon.height: 16;
text: i18nc("@label:button", "Configure");
display: AbstractButton.IconOnly;