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++
Fix some minor issues with text properties UI.
Wolthera van Hövell tot Westerflier4193f2a970a6
diff --git a/plugins/dockers/textproperties/qml/BaselineShift.qml b/plugins/dockers/textproperties/qml/BaselineShift.qmlindex 67a03a1306..e7b1f97056 100644--- a/plugins/dockers/textproperties/qml/BaselineShift.qml+++ b/plugins/dockers/textproperties/qml/BaselineShift.qml@@ -64,6 +64,7 @@ TextPropertyBase {SpinBox {id: baselineShiftSpnLayout.fillWidth: true;+ enabled: baselineShiftMode == 3;}ComboBox {diff --git a/plugins/dockers/textproperties/qml/HangingPunctuation.qml b/plugins/dockers/textproperties/qml/HangingPunctuation.qmlindex a827b3bc5c..f7b7dadde7 100644--- a/plugins/dockers/textproperties/qml/HangingPunctuation.qml+++ b/plugins/dockers/textproperties/qml/HangingPunctuation.qml@@ -11,7 +11,7 @@ import org.krita.flake.text 1.0TextPropertyBase {property alias hangStart: paragraphStartCbx.checked;property alias hangEnd: paragraphEndCbx.checked;- property var hangComma;+ property int hangComma: KoSvgTextPropertiesModel.NoHang;onHangCommaChanged: lineEndCmb.currentIndex = lineEndCmb.indexOfValue(hangComma)GridLayout {columns: 2;diff --git a/plugins/dockers/textproperties/qml/TextAlign.qml b/plugins/dockers/textproperties/qml/TextAlign.qmlindex 18ba0bfa91..d61bfd29fe 100644--- a/plugins/dockers/textproperties/qml/TextAlign.qml+++ b/plugins/dockers/textproperties/qml/TextAlign.qml@@ -10,11 +10,11 @@ import QtQuick.Layouts 1.12CollapsibleGroupProperty {propertyName: "Text Align";- property int textAlignAll;+ property int textAlignAll: 1;onTextAlignAllChanged: textAlignAllCmb.currentIndex = textAlignAllCmb.indexOfValue(textAlignAll);- property int textAlignLast;+ property int textAlignLast: 0;onTextAlignLastChanged: textAlignLastCmb.currentIndex = textAlignLastCmb.indexOfValue(textAlignLast);- property int textAnchor;+ property int textAnchor: 0;onTextAnchorChanged: textAnchorCmb.currentIndex = textAnchorCmb.indexOfValue(textAnchor);contentItem: GridLayout {