aboutsummaryrefslogtreecommitdiffstats
path: root/share/qtcreator/qmldesigner/propertyeditor/Qt/AlignmentHorizontalButtons.qml
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@nokia.com>2010-03-01 14:06:06 +0100
committerThomas Hartmann <Thomas.Hartmann@nokia.com>2010-03-01 14:06:26 +0100
commit3985c8daea6ed01b32b721d759d5c0c5935b2ce3 (patch)
treeabf90c0decdb7fcddb5df8cb2478091a78c78656 /share/qtcreator/qmldesigner/propertyeditor/Qt/AlignmentHorizontalButtons.qml
parent532952b5a003080277c295ac93b146353756bdb2 (diff)
QmlDesigner.propertyEditor: aligment controls:
Diffstat (limited to 'share/qtcreator/qmldesigner/propertyeditor/Qt/AlignmentHorizontalButtons.qml')
-rw-r--r--share/qtcreator/qmldesigner/propertyeditor/Qt/AlignmentHorizontalButtons.qml66
1 files changed, 66 insertions, 0 deletions
diff --git a/share/qtcreator/qmldesigner/propertyeditor/Qt/AlignmentHorizontalButtons.qml b/share/qtcreator/qmldesigner/propertyeditor/Qt/AlignmentHorizontalButtons.qml
new file mode 100644
index 0000000000..84a61b35cc
--- /dev/null
+++ b/share/qtcreator/qmldesigner/propertyeditor/Qt/AlignmentHorizontalButtons.qml
@@ -0,0 +1,66 @@
+import Qt 4.6
+import Bauhaus 1.0
+
+QGroupBox {
+ id: aligmentHorizontalButtons
+ layout: HorizontalLayout {
+ topMargin: 6
+ rightMargin: 10;
+
+ QWidget {
+ fixedHeight: 32
+
+ QPushButton {
+ id: leftButton
+ checkable: true
+ fixedWidth: 32
+ fixedHeight: 32
+ styleSheetFile: "alignmentleftbutton.css";
+ checked: backendValues.horizontalAlignment.value == "AlignLeft"
+
+ onClicked: {
+ backendValues.horizontalAlignment.value = "AlignLeft";
+ checked = true;
+ centerButton.checked = false;
+ rightButton.checked = false;
+ }
+
+ }
+ QPushButton {
+ id: centerButton
+ x: 32
+ checkable: true
+ fixedWidth: 32
+ fixedHeight: 32
+
+ styleSheetFile: "alignmentcenterhbutton.css";
+ checked: backendValues.horizontalAlignment.value == "AlignHCenter"
+
+ onClicked: {
+ backendValues.horizontalAlignment.value = "AlignHCenter";
+ checked = true;
+ leftButton.checked = false;
+ rightButton.checked = false;
+ }
+
+ }
+ QPushButton {
+ id: rightButton
+ x: 64
+ checkable: true
+ fixedWidth: 32
+ fixedHeight: 32
+
+ styleSheetFile: "alignmentrightbutton.css";
+ checked: backendValues.horizontalAlignment.value == "AlignRight"
+
+ onClicked: {
+ backendValues.horizontalAlignment.value = "AlignRight";
+ checked = true;
+ centerButton.checked = false;
+ leftButton.checked = false;
+ }
+ }
+ }
+ }
+}