Commit 90dc6927 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.PropertyEditor: fixing font section



Fixing regression in 3.0.

Task-number: QTCREATORBUG-9752
Change-Id: I8e78ed28e444e4ad083f24c7857d7fb1e7d38949
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent 94bedf66
......@@ -44,6 +44,7 @@ import QtQuick.Layouts 1.0
import QtQuick.Controls 1.0 as Controls
Section {
id: fontSection
anchors.left: parent.left
anchors.right: parent.right
caption: qsTr("Font")
......@@ -59,6 +60,15 @@ Section {
property variant underlineStyle: backendValues.font_underline
property variant strikeoutStyle: backendValues.font_strikeout
onPointSizeChanged: {
sizeWidget.setPointPixelSize();
}
onPixelSizeChanged: {
sizeWidget.setPointPixelSize();
}
SectionLayout {
columns: 2
rows: 3
......@@ -82,12 +92,17 @@ Section {
property bool pixelSize: sizeType.currentText === "pixels"
property bool isSetup;
onSelectionFlagChanged: {
isSetup = true;
function setPointPixelSize() {
sizeWidget.isSetup = true;
sizeType.currentIndex = 1
if (pixelSize.isInModel)
if (fontSection.pixelSize.isInModel)
sizeType.currentIndex = 0
isSetup = false;
sizeWidget.isSetup = false;
}
onSelectionFlagChanged: {
sizeWidget.setPointPixelSize();
}
SpinBox {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment