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

Move per-text-property seperator to be always at the bottom of a property.

Wolthera van Hövell tot Westerflier8f3be679d92e
diff --git a/plugins/dockers/textproperties/qml/TextPropertyBase.qml b/plugins/dockers/textproperties/qml/TextPropertyBase.qml
index fa8ebe994d..48cc6631b0 100644
--- a/plugins/dockers/textproperties/qml/TextPropertyBase.qml
+++ b/plugins/dockers/textproperties/qml/TextPropertyBase.qml
@@ -8,11 +8,12 @@ import QtQuick.Controls 2.15
import org.krita.flake.text 1.0
Column {
+ id: root;
property int firstColumnWidth: 32;
property int columnSpacing: 5;
padding: columnSpacing;
width: parent? parent.width - (padding*2): 100;
- height: visible? childrenRect.height+padding: 0;
+ height: visible? childrenRect.height: 0;
enum PropertyType {
Character, ///< This property can be applied on a character level.
@@ -26,17 +27,23 @@ Column {
signal enableProperty; ///< Set the property to a default value.
property bool blockSignals; ///< When setting the data on the controls, this needs to be enabled and checked while returning data from the controls.
- property string propertyName;
- property int propertyType;
- property int parentPropertyType;
- property string toolTip;
- property string searchTerms;
+ property string propertyName; ///< Translated name of the property.
+ property int propertyType; ///< PropertyType of the current property.
+ property int parentPropertyType; ///< PropertyType of the current property list it is in.
+ property string toolTip; ///< Tooltip associated with the property.
+ property string searchTerms; ///< Any additional search terms associated with the property.
function autoEnable() {
enabled = true;
}
+ Component.onCompleted: {
+ children.push(seperator);
+ }
MenuSeparator {
+ id: seperator;
width: parent.width;
+ topPadding: parent.padding;
+ bottomPadding:parent.padding;
}
}