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++
Move Text Property Visibility Config button next to the add property dropdown.
Wolthera van Hövell tot Westerflierd670cc4c21a7
diff --git a/plugins/dockers/textproperties/qml/TextProperties.qml b/plugins/dockers/textproperties/qml/TextProperties.qmlindex 3469c17eca..0763f1b000 100644--- a/plugins/dockers/textproperties/qml/TextProperties.qml+++ b/plugins/dockers/textproperties/qml/TextProperties.qml@@ -37,34 +37,11 @@ Rectangle {paragraphPropertyList.updatePropertyVisibilityState();}- RowLayout {- id: configLayout;- height: implicitHeight;- anchors.right: parent.right;- anchors.left: parent.left;- anchors.top: parent.top;- Item {- Layout.fillWidth: true;- }- ToolButton {- id: configButton;- icon.source: "qrc:///light_configure.svg"- icon.color: palette.text;- icon.width: 16;- icon.height: 16;- text: i18nc("@label:button", "Configure");-- palette: paletteControl.palette;-- onClicked: mainWindow.callModalTextPropertyConfigDialog();- }- }-TabBar {id: tabsanchors.right: parent.right;anchors.left: parent.left;- anchors.top: configLayout.bottom;+ anchors.top: parent.top;palette: paletteControl.palette;TabButton {text: i18nc("@title:tab", "Character")diff --git a/plugins/dockers/textproperties/qml/TextPropertyBaseList.qml b/plugins/dockers/textproperties/qml/TextPropertyBaseList.qmlindex 76c0871cd9..5ce426b65e 100644--- a/plugins/dockers/textproperties/qml/TextPropertyBaseList.qml+++ b/plugins/dockers/textproperties/qml/TextPropertyBaseList.qml@@ -346,5 +346,22 @@ ColumnLayout {popup.y: addPropertyCmb.height - 1;popup.palette: cmbPalette.palette;}++ ToolButton {+ id: configButton;+ icon.source: "qrc:///light_configure.svg"+ icon.color: palette.text;+ icon.width: 16;+ icon.height: 16;+ text: i18nc("@label:button", "Configure");+ display: AbstractButton.IconOnly;+ ToolTip.text: text;+ ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval+ ToolTip.visible: highlighted;++ palette: paletteControl.palette;++ onClicked: mainWindow.callModalTextPropertyConfigDialog();+ }}}