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++
Make all sliders use blockUpdates in text properties docker.
Wolthera van Hövell tot Westerflier69a73dcef28f
diff --git a/plugins/dockers/textproperties/qml/BaselineShift.qml b/plugins/dockers/textproperties/qml/BaselineShift.qmlindex a6caf88dd7..81680e193b 100644--- a/plugins/dockers/textproperties/qml/BaselineShift.qml+++ b/plugins/dockers/textproperties/qml/BaselineShift.qml@@ -124,6 +124,7 @@ TextPropertyBase {dTo: 99;onDValueChanged: if (enabled) baselineShiftUnitCmb.userValue = dValue;palette: baselinePalette.palette;+ blockUpdateSignalOnDrag: true;}}diff --git a/plugins/dockers/textproperties/qml/FontSizeAdjust.qml b/plugins/dockers/textproperties/qml/FontSizeAdjust.qmlindex a038cdd8c5..8a267e624a 100644--- a/plugins/dockers/textproperties/qml/FontSizeAdjust.qml+++ b/plugins/dockers/textproperties/qml/FontSizeAdjust.qml@@ -56,6 +56,7 @@ TextPropertyBase {dStepSize: 0.1;Layout.preferredWidth: implicitWidth;Layout.fillWidth: true;+ blockUpdateSignalOnDrag: true;}Button {diff --git a/plugins/dockers/textproperties/qml/FontStyle.qml b/plugins/dockers/textproperties/qml/FontStyle.qmlindex 488767da6e..f594c6a5cb 100644--- a/plugins/dockers/textproperties/qml/FontStyle.qml+++ b/plugins/dockers/textproperties/qml/FontStyle.qml@@ -155,7 +155,7 @@ CollapsibleGroupProperty {Kis.IntSliderSpinBox {id: fontWeightSpn- prefix: i18nc("@label:spinbox", "Weight: ");+ prefix: i18nc("@label:slider", "Weight: ");from: 0;to: 1000;blockUpdateSignalOnDrag: true;@@ -186,7 +186,7 @@ CollapsibleGroupProperty {Kis.IntSliderSpinBox {id: fontStretchSpn- prefix: i18nc("@label:spinbox", "Width: ")+ prefix: i18nc("@label:slider", "Width: ")from: 0;to: 200;blockUpdateSignalOnDrag: true;@@ -235,13 +235,15 @@ CollapsibleGroupProperty {Layout.preferredHeight: fontSlantSpn.implicitHeight;Kis.IntSliderSpinBox {id: fontSlantSpn;- suffix:"°"+ suffix: i18nc("@item:valuesuffix", "%")from: -90;to: 90;enabled: fontSlant == CssFontStyleModel.StyleOblique;PaletteControl {id: slantSpnPal;+ colorGroup: parent.enabled? SystemPalette.Active: SystemPalette.Disabled;}+ blockUpdateSignalOnDrag: true;anchors.fill: parent;palette: slantSpnPal.palette;}diff --git a/plugins/dockers/textproperties/qml/LetterSpacing.qml b/plugins/dockers/textproperties/qml/LetterSpacing.qmlindex 3337abcdec..0849238e7c 100644--- a/plugins/dockers/textproperties/qml/LetterSpacing.qml+++ b/plugins/dockers/textproperties/qml/LetterSpacing.qml@@ -66,6 +66,8 @@ TextPropertyBase {softRangeActive: true;dStepSize: 0.1;+ blockUpdateSignalOnDrag: true;+onDValueChanged: letterSpacingUnitCmb.userValue = dValue;}diff --git a/plugins/dockers/textproperties/qml/LineHeight.qml b/plugins/dockers/textproperties/qml/LineHeight.qmlindex ba94e34b2a..b6181788a2 100644--- a/plugins/dockers/textproperties/qml/LineHeight.qml+++ b/plugins/dockers/textproperties/qml/LineHeight.qml@@ -130,6 +130,7 @@ TextPropertyBase {onDValueChanged:if (enabled) converter.userValue = dValue;palette: lineHeightPalette.palette;+ blockUpdateSignalOnDrag: true;}}diff --git a/plugins/dockers/textproperties/qml/TabSize.qml b/plugins/dockers/textproperties/qml/TabSize.qmlindex 53b3db45f5..e6430f9559 100644--- a/plugins/dockers/textproperties/qml/TabSize.qml+++ b/plugins/dockers/textproperties/qml/TabSize.qml@@ -86,6 +86,7 @@ TextPropertyBase {dFrom: 0;dTo: 99;onDValueChanged: converter.userValue = dValue;+ blockUpdateSignalOnDrag: true;}SqueezedComboBox {id: tabSizeUnitCmb;diff --git a/plugins/dockers/textproperties/qml/TextIndent.qml b/plugins/dockers/textproperties/qml/TextIndent.qmlindex 05fabb15e4..70cf7df6e3 100644--- a/plugins/dockers/textproperties/qml/TextIndent.qml+++ b/plugins/dockers/textproperties/qml/TextIndent.qml@@ -74,6 +74,7 @@ CollapsibleGroupProperty {dFrom: 0;dTo: 999;onDValueChanged: textIndentUnitCmb.userValue = dValue;+ blockUpdateSignalOnDrag: true;}/// Note: percentage calculation in the default unitcombobox isn't great for textIndent as it assumes 100% = fontsize,/// While spec-wise, it's the inline length that defines percentage.diff --git a/plugins/dockers/textproperties/qml/WordSpacing.qml b/plugins/dockers/textproperties/qml/WordSpacing.qmlindex 10ed56fbcd..14f71c0201 100644--- a/plugins/dockers/textproperties/qml/WordSpacing.qml+++ b/plugins/dockers/textproperties/qml/WordSpacing.qml@@ -67,6 +67,7 @@ TextPropertyBase {dStepSize: 0.1;onDValueChanged: wordSpacingUnitCmb.userValue = dValue;+ blockUpdateSignalOnDrag: true;}UnitComboBox {diff --git a/qmlmodules/components/qml/DoubleSliderSpinBox.qml b/qmlmodules/components/qml/DoubleSliderSpinBox.qmlindex c8f2a23243..a00e0cbf4b 100644--- a/qmlmodules/components/qml/DoubleSliderSpinBox.qml+++ b/qmlmodules/components/qml/DoubleSliderSpinBox.qml@@ -30,7 +30,7 @@ import "sliderspinbox"softDTo: 100.0;value: 50.25;- prefix: i18nc("@label:spinbox", "Percentage: ")+ prefix: i18nc("@label:slider", "Percentage: ")suffix: i18nc("@item:valuesuffix", "%")}\endqml