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

Some small fixes with layout and font families.

Wolthera van Hövell tot Westerflier260003642f08
diff --git a/plugins/dockers/textproperties/qml/FontFamily.qml b/plugins/dockers/textproperties/qml/FontFamily.qml
index f294bec2eb..a7ed222ab8 100644
--- a/plugins/dockers/textproperties/qml/FontFamily.qml
+++ b/plugins/dockers/textproperties/qml/FontFamily.qml
@@ -16,7 +16,7 @@ CollapsibleGroupProperty {
onPropertiesUpdated: {
blockSignals = true;
- fontFamilies: properties.fontFamilies;
+ fontFamilies = properties.fontFamilies;
blockSignals = false;
}
@@ -26,7 +26,6 @@ CollapsibleGroupProperty {
mainFamilyCmb.currentIndex = mainFamilyCmb.find(fontFamilies[0]);
}
familyListView.model = fontFamilies;
- height: childrenRect.height;
} else {
properties.fontFamilies = fontFamilies;
}
@@ -46,7 +45,7 @@ CollapsibleGroupProperty {
columns: 2
anchors.left: parent.left
anchors.right: parent.right
- columnSpacing: columnSpacing;
+ columnSpacing: parent.columnSpacing;
RevertPropertyButton {
revertEnabled: properties.fontFamiliesState === KoSvgTextPropertiesModel.PropertySet;
@@ -55,7 +54,7 @@ CollapsibleGroupProperty {
ScrollView {
id: fullFamilyList;
Layout.fillWidth: true;
- Layout.preferredHeight: ItemDelegate.implicitHeight*3;
+ Layout.preferredHeight: ItemDelegate.implicitHeight * 3;
background: Rectangle {
color: sysPalette.alternateBase;
border.color: sysPalette.text;
diff --git a/plugins/dockers/textproperties/qml/TextProperties.qml b/plugins/dockers/textproperties/qml/TextProperties.qml
index f355645454..cacf6b03c8 100644
--- a/plugins/dockers/textproperties/qml/TextProperties.qml
+++ b/plugins/dockers/textproperties/qml/TextProperties.qml
@@ -56,6 +56,7 @@ Rectangle {
border.width: 1;
}
clip: true;
+ ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
ListView {
id: characterProperties
@@ -108,6 +109,7 @@ Rectangle {
border.width: 1;
}
clip: true;
+ ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
ListView {
id: paragraphProperties
model: ObjectModel {