Commit 044ca68e authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner.propertyEditor: qml cleanup

parent d1e45079
import Qt 4.6
import Bauhaus 1.0
GroupBox {
maximumHeight: 240;
QWidget {
layout: QVBoxLayout {
topMargin: 0
bottomMargin: 0
leftMargin: 0
rightMargin: 0
spacing: 0
finished: finishedNotify;
caption: "Image";
layout: VerticalLayout {
GroupBox {
maximumHeight: 240;
FileWidget {
enabled: isBaseState || backendValues.id.value != "";
maximumWidth: 250;
text: "Source";
fileName: backendValues.source.value;
onFileNameChanged: {
backendValues.source.value = fileName;
}
}
finished: finishedNotify;
caption: "Image";
layout: VerticalLayout {
IntEditor {
id: pixelSize;
backendValue: backendValues.border_left;
caption: "Left"
baseStateFlag: isBaseState;
FileWidget {
enabled: isBaseState || backendValues.id.value != "";
maximumWidth: 250;
text: "Source";
fileName: backendValues.source.value;
onFileNameChanged: {
backendValues.source.value = fileName;
}
}
step: 1;
minimumValue: 0;
maximumValue: 2000;
}
IntEditor {
backendValue: backendValues.border_right;
caption: "Right"
baseStateFlag: isBaseState;
IntEditor {
id: pixelSize;
backendValue: backendValues.border_left;
caption: "Left"
baseStateFlag: isBaseState;
step: 1;
minimumValue: 0;
maximumValue: 2000;
}
step: 1;
minimumValue: 0;
maximumValue: 2000;
}
IntEditor {
backendValue: backendValues.border_top;
caption: "Top"
baseStateFlag: isBaseState;
IntEditor {
backendValue: backendValues.border_right;
caption: "Right"
baseStateFlag: isBaseState;
step: 1;
minimumValue: 0;
maximumValue: 2000;
}
step: 1;
minimumValue: 0;
maximumValue: 2000;
}
IntEditor {
backendValue: backendValues.border_bottom;
caption: "Bottom"
baseStateFlag: isBaseState;
IntEditor {
backendValue: backendValues.border_top;
caption: "Top"
baseStateFlag: isBaseState;
step: 1;
minimumValue: 0;
maximumValue: 2000;
step: 1;
minimumValue: 0;
maximumValue: 2000;
}
IntEditor {
backendValue: backendValues.border_bottom;
caption: "Bottom"
baseStateFlag: isBaseState;
step: 1;
minimumValue: 0;
maximumValue: 2000;
}
}
}
}
}
import Qt 4.6
import Bauhaus 1.0
GroupBox {
maximumHeight: 200;
QWidget {
layout: QVBoxLayout {
topMargin: 0
bottomMargin: 0
leftMargin: 0
rightMargin: 0
spacing: 0
GroupBox {
finished: finishedNotify;
caption: "Grid";
id: gridSpecifics;
layout: QVBoxLayout {
GroupBox {
maximumHeight: 200;
finished: finishedNotify;
caption: "Grid";
id: gridSpecifics;
layout: QVBoxLayout {
topMargin: 18;
bottomMargin: 2;
leftMargin: 8;
rightMargin: 8;
topMargin: 18;
bottomMargin: 2;
leftMargin: 8;
rightMargin: 8;
IntEditor {
id: spacing;
backendValue: backendValues.spacing;
caption: "Spacing"
baseStateFlag: isBaseState;
step: 1;
minimumValue: 0;
maximumValue: 200;
IntEditor {
id: spacing;
backendValue: backendValues.spacing;
caption: "Spacing"
baseStateFlag: isBaseState;
step: 1;
minimumValue: 0;
maximumValue: 200;
}
}
}
}
}
}
......@@ -100,9 +100,9 @@ QWidget { //This is a special doubleSpinBox that does color coding for states
onFocusChanged: {
if (focus)
doubleSpinBox.backendValue.lock();
transaction.start();
else
doubleSpinBox.backendValue.unlock();
transaction.end();
}
}
}
......
import Qt 4.6
import Bauhaus 1.0
GroupBox {
finished: finishedNotify;
caption: "Flickable";
QWidget {
layout: QVBoxLayout {
topMargin: 15;
bottomMargin: 6;
leftMargin: 0;
rightMargin: 0;
QWidget {
id: contentWidget;
maximumHeight: 220;
layout: QHBoxLayout {
topMargin: 0;
bottomMargin: 0;
leftMargin: 10;
rightMargin: 10;
QWidget {
layout: QVBoxLayout {
topMargin: 0;
bottomMargin: 0;
leftMargin: 0;
rightMargin: 0;
QLabel {
minimumHeight: 20;
text: "Horizontal Velocity:"
font.bold: true;
}
topMargin: 0
bottomMargin: 0
leftMargin: 0
rightMargin: 0
spacing: 0
GroupBox {
QLabel {
minimumHeight: 20;
text: "Vertical Velocity:"
font.bold: true;
}
QLabel {
minimumHeight: 20;
text: "Maximum Flick Velocity:"
font.bold: true;
}
GroupBox {
finished: finishedNotify;
caption: "Flickable";
QLabel {
minimumHeight: 20;
text: "Over Shoot:"
font.bold: true;
}
}
}
layout: QVBoxLayout {
topMargin: 15;
bottomMargin: 6;
leftMargin: 0;
rightMargin: 0;
QWidget {
layout: QVBoxLayout {
topMargin: 0;
bottomMargin: 0;
leftMargin: 0;
rightMargin: 0;
DoubleSpinBox {
id: horizontalVelocitySpinBox;
objectName: "horizontalVelocitySpinBox";
backendValue: backendValues.horizontalVelocity;
minimumWidth: 30;
minimum: 0.1
maximum: 10
singleStep: 0.1
baseStateFlag: isBaseState;
}
QWidget {
id: contentWidget;
maximumHeight: 220;
DoubleSpinBox {
id: verticalVelocitySpinBox;
objectName: "verticalVelocitySpinBox";
backendValue: backendValues.verticalVelocity;
minimumWidth: 30;
minimum: 0.1
maximum: 10
singleStep: 0.1
baseStateFlag: isBaseState;
}
layout: QHBoxLayout {
topMargin: 0;
bottomMargin: 0;
leftMargin: 10;
rightMargin: 10;
DoubleSpinBox {
id: maximumVelocitySpinBox;
objectName: "maximumVelocitySpinBox";
backendValue: backendValues.maximumFlickVelocity;
minimumWidth: 30;
minimum: 0.1
maximum: 10
singleStep: 0.1
baseStateFlag: isBaseState;
}
QWidget {
layout: QVBoxLayout {
topMargin: 0;
bottomMargin: 0;
leftMargin: 0;
rightMargin: 0;
QLabel {
minimumHeight: 20;
text: "Horizontal Velocity:"
font.bold: true;
}
QLabel {
minimumHeight: 20;
text: "Vertical Velocity:"
font.bold: true;
}
QLabel {
minimumHeight: 20;
text: "Maximum Flick Velocity:"
font.bold: true;
}
QLabel {
minimumHeight: 20;
text: "Over Shoot:"
font.bold: true;
}
}
}
QWidget {
layout: QVBoxLayout {
topMargin: 0;
bottomMargin: 0;
leftMargin: 0;
rightMargin: 0;
DoubleSpinBox {
id: horizontalVelocitySpinBox;
objectName: "horizontalVelocitySpinBox";
backendValue: backendValues.horizontalVelocity;
minimumWidth: 30;
minimum: 0.1
maximum: 10
singleStep: 0.1
baseStateFlag: isBaseState;
}
DoubleSpinBox {
id: verticalVelocitySpinBox;
objectName: "verticalVelocitySpinBox";
backendValue: backendValues.verticalVelocity;
minimumWidth: 30;
minimum: 0.1
maximum: 10
singleStep: 0.1
baseStateFlag: isBaseState;
}
DoubleSpinBox {
id: maximumVelocitySpinBox;
objectName: "maximumVelocitySpinBox";
backendValue: backendValues.maximumFlickVelocity;
minimumWidth: 30;
minimum: 0.1
maximum: 10
singleStep: 0.1
baseStateFlag: isBaseState;
}
CheckBox {
id: overshootCheckBox;
text: "overshoot";
backendValue: backendValues.overShoot;
baseStateFlag: isBaseState;
checkable: true;
CheckBox {
id: overshootCheckBox;
text: "overshoot";
backendValue: backendValues.overShoot;
baseStateFlag: isBaseState;
checkable: true;
}
}
}
}
}
}
}
}
}
}
import Qt 4.6
import Bauhaus 1.0
GroupBox {
maximumHeight: 200;
QWidget {
layout: QVBoxLayout {
topMargin: 0
bottomMargin: 0
leftMargin: 0
rightMargin: 0
spacing: 0
GroupBox {
finished: finishedNotify;
}
GroupBox {
maximumHeight: 200;
finished: finishedNotify;
}
}
}
import Qt 4.6
import Bauhaus 1.0
QWidget {
layout: QVBoxLayout {
topMargin: 0
bottomMargin: 0
leftMargin: 0
rightMargin: 0
spacing: 0
GroupBox {
GroupBox {
maximumHeight: 200;
......@@ -47,3 +57,6 @@ GroupBox {
}
}
}
}
}
import Qt 4.6
import Bauhaus 1.0
GroupBox {
maximumHeight: 240;
finished: finishedNotify;
caption: "Image";
import Qt 4.6
import Bauhaus 1.0
layout: VerticalLayout {
FileWidget {
enabled: isBaseState || backendValues.id.value != "";
text: "Source: ";
fileName: backendValues.source.value;
onFileNameChanged: {
backendValues.source.value = fileName;
}
}
QWidget {
layout: QVBoxLayout {
topMargin: 0
bottomMargin: 0
leftMargin: 0
rightMargin: 0
spacing: 0
GroupBox {
maximumHeight: 240;
QWidget {
layout: HorizontalLayout {
Label {
text: "Fill Mode"
}
finished: finishedNotify;
caption: "Image";
layout: VerticalLayout {
ComboBox {
baseStateFlag: isBaseState
items : { ["Stretch", "PreserveAspectFit", "PreserveAspectCrop", "Tile", "TileVertically", "TileHorizontally"] }
currentText: backendValues.fillMode.value;
onItemsChanged: {
currentText = backendValues.fillMode.value;
FileWidget {
enabled: isBaseState || backendValues.id.value != "";
text: "Source: ";
fileName: backendValues.source.value;
onFileNameChanged: {
backendValues.source.value = fileName;
}
backendValue: backendValues.fillMode
}
}
}
QWidget {
layout: HorizontalLayout {
Label {
text: "Antialiasing:"
QWidget {
layout: HorizontalLayout {
Label {
text: "Fill Mode"
}
ComboBox {
baseStateFlag: isBaseState
items : { ["Stretch", "PreserveAspectFit", "PreserveAspectCrop", "Tile", "TileVertically", "TileHorizontally"] }
currentText: backendValues.fillMode.value;
onItemsChanged: {
currentText = backendValues.fillMode.value;
}
backendValue: backendValues.fillMode
}
}
}
CheckBox {
text: "Smooth";
backendValue: backendValues.smooth
baseStateFlag: isBaseState;
checkable: true;
x: 28; // indent a bit
QWidget {
layout: HorizontalLayout {
Label {
text: "Antialiasing:"
}
CheckBox {
text: "Smooth";
backendValue: backendValues.smooth
baseStateFlag: isBaseState;
checkable: true;
x: 28; // indent a bit
}
}
}
}
}
QScrollArea {}
}
}
import Qt 4.6
import Bauhaus 1.0
GroupBox {
finished: finishedNotify;
caption: "List View";
QWidget {
layout: QVBoxLayout {
topMargin: 15;
bottomMargin: 6;
leftMargin: 0;
rightMargin: 0;
topMargin: 0
bottomMargin: 0