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

Add some place holder text for the style selector in the text tool options.

Wolthera van Hövell tot Westerflier86600e45345e
diff --git a/plugins/tools/svgtexttool/SvgTextToolOptions.qml b/plugins/tools/svgtexttool/SvgTextToolOptions.qml
index 4c855e0518..4928dac870 100644
--- a/plugins/tools/svgtexttool/SvgTextToolOptions.qml
+++ b/plugins/tools/svgtexttool/SvgTextToolOptions.qml
@@ -89,6 +89,8 @@ Control {
enabled: !chkCurrentProperties.checked;
useFileName: false;
+ placeholderText: i18nc("@info:placeholder", "Select Style Preset")
+
resourceType: "css_styles";
resourceDelegate: Kis.CssStylePresetDelegate {
id: presetDelegate;
diff --git a/qmlmodules/components/qml/ResourcePopup.qml b/qmlmodules/components/qml/ResourcePopup.qml
index 8ad279601d..54060447df 100644
--- a/qmlmodules/components/qml/ResourcePopup.qml
+++ b/qmlmodules/components/qml/ResourcePopup.qml
@@ -29,6 +29,8 @@ Button {
property alias resourceDelegate: resourceView.resourceDelegate;
property alias addResourceRowVisible: resourceView.addResourceRowVisible;
+ property alias placeholderText: textInput.placeholderText;
+
Connections {
target: modelWrapper;
function onResourceFilenameChanged() {