Commit 852585b6 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.propertyEditor: adding support for sourceSize

parent a1000e1e
......@@ -36,6 +36,41 @@ QWidget {
}
}
}
QWidget { // 1
layout: HorizontalLayout {
Label {
text: qsTr("Source Size")
}
DoubleSpinBox {
text: "W"
alignRight: false
spacing: 4
singleStep: 1;
enabled: anchorBackend.hasParent;
backendValue: backendValues.sourceSize_width
minimum: -2000;
maximum: 2000;
baseStateFlag: isBaseState;
}
DoubleSpinBox {
singleStep: 1;
text: "H"
alignRight: false
spacing: 4
backendValue: backendValues.sourceSize_height
enabled: anchorBackend.hasParent;
minimum: -2000;
maximum: 2000;
baseStateFlag: isBaseState;
}
}
} //QWidget //1
IntEditor {
......
......@@ -38,7 +38,7 @@ QWidget {
showComboBox: true
}
}
}
}
QWidget {
layout: HorizontalLayout {
......@@ -69,11 +69,80 @@ QWidget {
backendValue: backendValues.smooth
baseStateFlag: isBaseState;
checkable: true;
x: 28; // indent a bit
}
}
}
QWidget { // 1
layout: HorizontalLayout {
Label {
text: qsTr("Source Size")
}
DoubleSpinBox {
text: "W"
alignRight: false
spacing: 4
singleStep: 1;
enabled: anchorBackend.hasParent;
backendValue: backendValues.sourceSize_width
minimum: -2000;
maximum: 2000;
baseStateFlag: isBaseState;
}
DoubleSpinBox {
singleStep: 1;
text: "H"
alignRight: false
spacing: 4
backendValue: backendValues.sourceSize_height
enabled: anchorBackend.hasParent;
minimum: -2000;
maximum: 2000;
baseStateFlag: isBaseState;
}
}
} //QWidget //1
QWidget { // 1
layout: HorizontalLayout {
Label {
text: qsTr("Painted Size")
}
DoubleSpinBox {
text: "W"
alignRight: false
spacing: 4
singleStep: 1;
enabled: anchorBackend.hasParent;
backendValue: backendValues.paintedWidth
minimum: -2000;
maximum: 2000;
baseStateFlag: isBaseState;
}
DoubleSpinBox {
singleStep: 1;
text: "H"
alignRight: false
spacing: 4
backendValue: backendValues.paintedHeight
enabled: anchorBackend.hasParent;
minimum: -2000;
maximum: 2000;
baseStateFlag: isBaseState;
}
}
} //QWidget //1
}
}
......
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