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 fallout in cssStylePresetEdit from generalizing some qml components.
Wolthera van Hövell tot Westerflier99c6a453038a
diff --git a/plugins/dockers/textproperties/CssStylePresetEditDialog.cpp b/plugins/dockers/textproperties/CssStylePresetEditDialog.cppindex 44183af712..ba6b5f43ea 100644--- a/plugins/dockers/textproperties/CssStylePresetEditDialog.cpp+++ b/plugins/dockers/textproperties/CssStylePresetEditDialog.cpp@@ -139,6 +139,7 @@ QColor CssStylePresetEditDialog::modalColorDialog(QColor oldColor)}void CssStylePresetEditDialog::slotUpdateDirty() {+ if (!m_quickWidget->rootObject()) return;bool isDirty = m_currentResource->isDirty();const QString title = m_quickWidget->rootObject()->property("presetTitle").toString();if (!isDirty && m_quickWidget->rootObject()) {diff --git a/plugins/dockers/textproperties/qml/CssStylePresetEdit.qml b/plugins/dockers/textproperties/qml/CssStylePresetEdit.qmlindex 4906264128..08846b5796 100644--- a/plugins/dockers/textproperties/qml/CssStylePresetEdit.qml+++ b/plugins/dockers/textproperties/qml/CssStylePresetEdit.qml@@ -54,14 +54,14 @@ Control {Layout.preferredHeight: implicitHeight;columns: 2;- KoShapeQtQuickLabel {+ Kis.KoShapeQtQuickLabel {id: presetSampleLabel;Layout.fillWidth: true;Layout.columnSpan: 2;foregroundColor: palette.text;fullColor: false;- scalingType: styleType === "paragraph"? KoShapeQtQuickLabel.FitWidth: KoShapeQtQuickLabel.Fit;+ scalingType: styleType === "paragraph"? Kis.KoShapeQtQuickLabel.FitWidth: Kis.KoShapeQtQuickLabel.Fit;Layout.preferredHeight: presetTitleField.height*4;padding: presetTitleField.height;