Commit fb77bf0a authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.PropertyEditor: fix .qml indentations

parent 47b2bde0
......@@ -44,26 +44,26 @@ GroupBox {
step: 1;
minimumValue: 0;
maximumValue: 2000;
}
}
IntEditor {
backendValue: backendValues.border_top;
caption: "Border Top: "
baseStateFlag: isBaseState;
IntEditor {
backendValue: backendValues.border_top;
caption: "Border Top: "
baseStateFlag: isBaseState;
step: 1;
minimumValue: 0;
maximumValue: 2000;
}
step: 1;
minimumValue: 0;
maximumValue: 2000;
}
IntEditor {
backendValue: backendValues.border_bottom;
caption: "Border Bottom:"
baseStateFlag: isBaseState;
IntEditor {
backendValue: backendValues.border_bottom;
caption: "Border Bottom:"
baseStateFlag: isBaseState;
step: 1;
minimumValue: 0;
maximumValue: 2000;
}
step: 1;
minimumValue: 0;
maximumValue: 2000;
}
}
}
......@@ -96,7 +96,7 @@ GroupBox {
onCurrentTextChanged: {
if (count == 3)
print("set");
print("set");
print(currentText);
backendValues.horizontalAlignment.value = currentText;
print(currentText);
......
......@@ -14,7 +14,6 @@ GroupBox {
rightMargin: 4;
QWidget {
layout: QVBoxLayout {
topMargin: 0;
bottomMargin: 60;
......@@ -27,20 +26,20 @@ GroupBox {
font.bold: true;
}
QLabel {
text: "Size:"
font.bold: true
text: "Size:"
font.bold: true
}
}
}
QWidget {
layout: QVBoxLayout {
topMargin: 0;
bottomMargin: 0;
QWidget {
layout: QHBoxLayout {
topMargin: 0;
bottomMargin: 0;
QWidget {
layout: QVBoxLayout {
topMargin: 0;
bottomMargin: 0;
QWidget {
layout: QHBoxLayout {
topMargin: 0;
bottomMargin: 0;
//---
......@@ -54,7 +53,7 @@ GroupBox {
bottomMargin: 0;
DoubleSpinBox {
id: XSpinBox;
singleStep: 1;
singleStep: 1;
objectName: "XSpinBox";
enabled: anchorBackend.hasParent;
backendValue: backendValues.x == undefined ? 0 : backendValues.x
......@@ -76,7 +75,7 @@ GroupBox {
DoubleSpinBox {
id: YSpinBox;
singleStep: 1;
singleStep: 1;
objectName: "YSpinBox";
backendValue: backendValues.y == undefined ? 0 : backendValues.y
enabled: anchorBackend.hasParent;
......@@ -94,7 +93,7 @@ GroupBox {
} //QHBoxLayout //7
} //QWidget //1
//---
//---
} //QHBoxLayout
} //GroupBox
QWidget {
......@@ -112,7 +111,7 @@ GroupBox {
bottomMargin: 0;
DoubleSpinBox {
id: WidthSpinBox;
singleStep: 1;
singleStep: 1;
objectName: "WidthSpinBox";
backendValue: backendValues.width == undefined ? 0 : backendValues.width
minimum: -2000;
......@@ -132,7 +131,7 @@ GroupBox {
bottomMargin: 0;
DoubleSpinBox {
id: HeightSpinBox;
singleStep: 1;
singleStep: 1;
objectName: "HeightSpinBox";
backendValue: backendValues.height == undefined ? 0 : backendValues.height
minimum: -2000;
......@@ -149,8 +148,6 @@ GroupBox {
} //QWidget
} //QHBoxLayout
} //QWidget
//---
} // QHBoxLayout
} //Widget
......@@ -164,10 +161,6 @@ GroupBox {
maximumValue: 100;
}
} //QVBoxLayout
} //QWidget
} //QHBoxLayout
} //QGroupBox
......@@ -38,14 +38,14 @@ GroupBox {
font.bold: true;
}
QLabel {
text: "Scale:"
QLabel {
text: "Scale:"
font.bold: true;
}
QLabel {
text: "Scale:"
text: ""
text: ""
font.bold: true;
}
......@@ -62,10 +62,10 @@ GroupBox {
QWidget {
layout: QVBoxLayout {
topMargin: 02;
bottomMargin: 2;
leftMargin: 5;
rightMargin: 0;
topMargin: 02;
bottomMargin: 2;
leftMargin: 5;
rightMargin: 0;
QWidget {
layout: QHBoxLayout {
......@@ -103,10 +103,7 @@ GroupBox {
}
}
}
}
}
QWidget {
layout: QHBoxLayout {
topMargin: 10;
......@@ -123,7 +120,7 @@ GroupBox {
singleStep: 0.1
baseStateFlag: isBaseState;
onBackendValueChanged: {
ScaleSlider.value = backendValue.value * 10;
ScaleSlider.value = backendValue.value * 10;
}
}
QSlider {
......@@ -139,33 +136,33 @@ GroupBox {
}
}
QWidget {
layout: QHBoxLayout {
QWidget {
layout: QHBoxLayout {
topMargin: 5;
bottomMargin: 5;
leftMargin: 10;
rightMargin: 0;
QLabel {
text: "Origin: ";
text: "Origin: ";
}
QComboBox {
items : { [
"TopLeft", "Top", "TopRight", "Left", "Center", "Right", "BottomLeft", "Bottom",
"BottomRight"
] }
currentText: backendValues.transformOrigin.value;
onItemsChanged: {
currentText = backendValues.transformOrigin.value;
}
onCurrentTextChanged: {
backendValues.transformOrigin.value = currentText;
}
}
QComboBox {
items : { [
"TopLeft", "Top", "TopRight", "Left", "Center", "Right", "BottomLeft", "Bottom",
"BottomRight"
] }
currentText: backendValues.transformOrigin.value;
onItemsChanged: {
currentText = backendValues.transformOrigin.value;
}
onCurrentTextChanged: {
backendValues.transformOrigin.value = currentText;
}
}
}
}
}
}
QWidget {
layout: QHBoxLayout {
......
......@@ -28,10 +28,10 @@ QWidget { //This is a special SpinBox that does color coding for states
else
SpinBox.setStyleSheet("color: gray;");
} else {
if (backendValue != null && backendValue.isInSubState)
SpinBox.setStyleSheet("color: #7799FF;");
else
SpinBox.setStyleSheet("color: gray;");
if (backendValue != null && backendValue.isInSubState)
SpinBox.setStyleSheet("color: #7799FF;");
else
SpinBox.setStyleSheet("color: gray;");
}
}
}
......@@ -55,8 +55,8 @@ QWidget { //This is a special SpinBox that does color coding for states
onValueFromBackendChanged: {
readingFromBackend = true;
value = valueFromBackend
readingFromBackend = false;
}
readingFromBackend = false;
}
onValueChanged: {
if (SpinBox.backendValue != null && readingFromBackend == false)
......
......@@ -34,7 +34,7 @@ GroupBox {
}
}
FontWidget {
FontWidget {
text: "Font:";
bold: backendValues.font_bold.value;
......@@ -83,7 +83,7 @@ GroupBox {
onCurrentTextChanged: {
if (count == 3)
backendValues.horizontalAlignment.value = currentText;
backendValues.horizontalAlignment.value = currentText;
}
}
......@@ -137,7 +137,7 @@ GroupBox {
CheckBox {
text: "Read Only";
baseStateFlag: isBaseState;
baseStateFlag: isBaseState;
checkable: true;
backendValue: backendValues.readOnly;
}
......@@ -145,7 +145,7 @@ GroupBox {
CheckBox {
text: "Cursor Visible";
baseStateFlag: isBaseState;
baseStateFlag: isBaseState;
checkable: true;
backendValue: backendValues.cursorVisible;
......@@ -165,7 +165,7 @@ GroupBox {
CheckBox {
text: "Focus On Press";
baseStateFlag: isBaseState;
baseStateFlag: isBaseState;
checkable: true;
backendValue: backendValues. focusOnPress;
}
......
......@@ -22,75 +22,75 @@ GroupBox {
minimumHeight: 20;
text: "Url:"
font.bold: true;
}
QLineEdit {
text: backendValues.url.value;
onEditingFinished: {
backendValues.url.value = text;
}
}
QLineEdit {
text: backendValues.url.value;
onEditingFinished: {
backendValues.url.value = text;
}
}
}
}
IntEditor {
id: preferredWidth;
backendValue: backendValues.preferredWidth;
caption: "Prefered Width: "
baseStateFlag: isBaseState;
step: 1;
minimumValue: 0;
maximumValue: 2000;
}
IntEditor {
id: preferredWidth;
backendValue: backendValues.preferredWidth;
caption: "Prefered Width: "
baseStateFlag: isBaseState;
step: 1;
minimumValue: 0;
maximumValue: 2000;
}
IntEditor {
id: webPageWidth;
backendValue: backendValues.preferredHeight;
caption: "Web Page Height:"
baseStateFlag: isBaseState;
step: 1;
minimumValue: 0;
maximumValue: 2000;
}
IntEditor {
id: webPageWidth;
backendValue: backendValues.preferredHeight;
caption: "Web Page Height:"
baseStateFlag: isBaseState;
step: 1;
minimumValue: 0;
maximumValue: 2000;
}
QWidget {
layout: QHBoxLayout {
topMargin: 10;
bottomMargin: 0;
leftMargin: 0;
rightMargin: 0;
spacing: 20;
QWidget {
layout: QHBoxLayout {
topMargin: 10;
bottomMargin: 0;
leftMargin: 0;
rightMargin: 0;
spacing: 20;
QLabel {
minimumHeight: 20;
text: "ZommFactor:"
font.bold: true;
}
DoubleSpinBox {
id: ZoomSpinBox;
objectName: "ZommSpinBox";
backendValue: backendValues.zoomFactor;
minimumWidth: 60;
minimum: 0.01
maximum: 10
singleStep: 0.1
baseStateFlag: isBaseState;
onBackendValueChanged: {
ZoomSlider.value = backendValue.value * 10;
}
}
QSlider {
id: ZoomSlider;
orientation: "Qt::Horizontal";
minimum: 1;
maximum: 100;
singleStep: 1;
onValueChanged: {
backendValues.zoomFactor.value = value / 10;
}
}
}
}
QLabel {
minimumHeight: 20;
text: "ZommFactor:"
font.bold: true;
}
DoubleSpinBox {
id: ZoomSpinBox;
objectName: "ZommSpinBox";
backendValue: backendValues.zoomFactor;
minimumWidth: 60;
minimum: 0.01
maximum: 10
singleStep: 0.1
baseStateFlag: isBaseState;
onBackendValueChanged: {
ZoomSlider.value = backendValue.value * 10;
}
}
QSlider {
id: ZoomSlider;
orientation: "Qt::Horizontal";
minimum: 1;
maximum: 100;
singleStep: 1;
onValueChanged: {
backendValues.zoomFactor.value = value / 10;
}
}
}
}
}
}
Supports Markdown
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