QmlDesigner.propertyEditor: adjust property editor to width 300

This commit is contained in:
Thomas Hartmann
2010-03-24 17:12:39 +01:00
parent 23dacb24d0
commit a3ef5e2ed9
12 changed files with 78 additions and 56 deletions

View File

@@ -5,7 +5,6 @@ QGroupBox {
id: aligmentHorizontalButtons
layout: HorizontalLayout {
topMargin: 6
rightMargin: 10;
QWidget {
fixedHeight: 32

View File

@@ -5,7 +5,6 @@ QGroupBox {
id: alignmentVerticalButtons
layout: HorizontalLayout {
topMargin: 6
rightMargin: 10;
QWidget {
fixedHeight: 32

View File

@@ -21,8 +21,8 @@ QWidget {
QPushButton {
checkable: true
fixedWidth: 32
fixedHeight: 32
fixedWidth: 31
fixedHeight: 28
styleSheetFile: "anchortop.css";
checked: anchorBackend.topAnchored;
@@ -39,10 +39,10 @@ QWidget {
QPushButton {
x: 32
x: 31
checkable: true
fixedWidth: 32
fixedHeight: 32
fixedWidth: 30
fixedHeight: 28
styleSheetFile: "anchorbottom.css";
@@ -59,10 +59,10 @@ QWidget {
}
QPushButton {
x: 64
x: 61
checkable: true
fixedWidth: 32
fixedHeight: 32
fixedWidth: 30
fixedHeight: 28
styleSheetFile: "anchorleft.css";
@@ -79,10 +79,10 @@ QWidget {
QPushButton {
x: 96
x: 91
checkable: true
fixedWidth: 32
fixedHeight: 32
fixedWidth: 30
fixedHeight: 28
styleSheetFile: "anchorright.css";
@@ -98,10 +98,10 @@ QWidget {
}
QPushButton {
x: 128
x: 121
checkable: true
fixedWidth: 32
fixedHeight: 32
fixedWidth: 19
fixedHeight: 28
styleSheetFile: "anchorspacer.css";
@@ -109,9 +109,9 @@ QWidget {
}
QPushButton {
x: 128 + 21
fixedWidth: 32
fixedHeight: 32
x: 140
fixedWidth: 30
fixedHeight: 28
styleSheetFile: "anchorfill.css";
@@ -119,53 +119,53 @@ QWidget {
}
QPushButton {
x: 128 + 21 + 32
x: 170
checkable: true
fixedWidth: 32
fixedHeight: 32
fixedWidth: 19
fixedHeight: 28
styleSheetFile: "anchorspacer.css";
}
QPushButton {
x: 128 + 42 + 64
x: 189
checkable: true
fixedWidth: 32
fixedHeight: 32
fixedWidth: 30
fixedHeight: 28
styleSheetFile: "anchorhorizontal.css";
checked: anchorBackend.horizontalCentered;
onToggled: {
if (checked) {
anchorBackend.leftAnchored = false;
anchorBackend.rightAnchored = false;
anchorBackend.horizontalCentered = true;
} else {
anchorBackend.horizontalCentered = false;
}
}
}
QPushButton {
x: 128 + 42 + 32
checkable: true
fixedWidth: 32
fixedHeight: 32
styleSheetFile: "anchorvertical.css";
styleSheetFile: "anchorvertical.css";
checked: anchorBackend.verticalCentered;
onToggled: {
if (checked) {
anchorBackend.topAnchored = false;
anchorBackend.bottomAnchored = false;
anchorBackend.leftAnchored = false;
anchorBackend.rightAnchored = false;
anchorBackend.verticalCentered = true;
} else {
anchorBackend.verticalCentered = false;
}
}
}
QPushButton {
x: 219
checkable: true
fixedWidth: 31
fixedHeight: 28
styleSheetFile: "anchorhorizontal.css";
checked: anchorBackend.horizontalCentered;
onToggled: {
if (checked) {
anchorBackend.topAnchored = false;
anchorBackend.bottomAnchored = false;
anchorBackend.horizontalCentered = true;
} else {
anchorBackend.horizontalCentered = false;
}
}
}
}

View File

@@ -138,6 +138,8 @@ QExtGroupBox {
QWidget {
layout: HorizontalLayout {
leftMargin: 12
spacing: 0
ColorBox {
id: colorControl;
@@ -159,7 +161,8 @@ QExtGroupBox {
layout: VerticalLayout {
topMargin: 4
bottomMargin: 4
rightMargin: 4
rightMargin: 0
leftMargin: 0
spacing: 2
QWidget {
layout: HorizontalLayout {

View File

@@ -65,6 +65,7 @@ QWidget { //This is a special doubleSpinBox that does color coding for states
layout: HorizontalLayout {
id: layoutH;
spacing: 4
QLabel {
id: label;

View File

@@ -10,6 +10,7 @@ GroupBox {
QWidget {
layout: HorizontalLayout {
rightMargin: 12
Label {
text: "Font"
}
@@ -58,6 +59,7 @@ GroupBox {
QWidget {
visible: showStyle
layout: HorizontalLayout {
rightMargin: 12
Label {
text: "Style"
}

View File

@@ -51,7 +51,7 @@ QWidget {
QWidget {
layout: HorizontalLayout {
Label {
text: "Antialiasing:"
text: "Aliasing"
}
CheckBox {

View File

@@ -9,7 +9,7 @@ GroupBox {
layout: VerticalLayout {
ColorGroupBox {
caption: "Color"
caption: "Rectangle"
finished: finishedNotify
@@ -17,7 +17,7 @@ GroupBox {
}
ColorGroupBox {
caption: "Border Color"
caption: "Border"
finished: finishedNotify
backendColor: backendValues.border_color

View File

@@ -20,6 +20,7 @@ QWidget {
caption: "Rectangle"
layout: VerticalLayout {
rightMargin: 24
IntEditor {
backendValue: backendValues.radius
@@ -35,7 +36,7 @@ QWidget {
id: borderWidth;
backendValue: backendValues.border_width === undefined ? 0 : backendValues.border_width
caption: "Border Width"
caption: "Border"
baseStateFlag: isBaseState;
step: 1;

View File

@@ -36,7 +36,7 @@ GroupBox {
ColorGroupBox {
visible: showSelectedTextColor
caption: "Selected Text"
caption: "Selected"
finished: finishedNotify

View File

@@ -28,8 +28,9 @@ QWidget {
QWidget {
layout: HorizontalLayout {
rightMargin: 12
Label {
text: "Text Format"
text: "Format"
}
ComboBox {
baseStateFlag: isBaseState

View File

@@ -10,15 +10,25 @@ GroupBox {
QWidget {
layout: HorizontalLayout {
Label {text: "Flags"}
CheckBox {
text: "Read Only";
baseStateFlag: isBaseState;
checkable: true;
backendValue: backendValues.readOnly;
}
}
}
QWidget {
layout: HorizontalLayout {
Label {text: ""}
CheckBox {
text: "Cursor Visible";
@@ -28,6 +38,12 @@ GroupBox {
}
}
}
QWidget {
layout: HorizontalLayout {
Label {text: ""}
CheckBox {
text: "Focus On Press";
baseStateFlag: isBaseState;