From 20d21db2d0604bd8198b338edf68789c9599e59c Mon Sep 17 00:00:00 2001
From: Thomas Hartmann <Thomas.Hartmann@nokia.com>
Date: Mon, 1 Mar 2010 08:19:21 +0100
Subject: [PATCH] QmlDesigner.propertyEditor: add buttons for alignment

---
 .../Qt/StandardTextGroupBox.qml               | 22 +++----------------
 1 file changed, 3 insertions(+), 19 deletions(-)

diff --git a/share/qtcreator/qmldesigner/propertyeditor/Qt/StandardTextGroupBox.qml b/share/qtcreator/qmldesigner/propertyeditor/Qt/StandardTextGroupBox.qml
index a6cdc5df4c4..0abb6e4b5b9 100644
--- a/share/qtcreator/qmldesigner/propertyeditor/Qt/StandardTextGroupBox.qml
+++ b/share/qtcreator/qmldesigner/propertyeditor/Qt/StandardTextGroupBox.qml
@@ -35,31 +35,15 @@ GroupBox {
                 }
             }
         }
+
         QWidget {
             layout: HorizontalLayout {
 
                 Label {
                     text: "Alignment"
                 }
-                ComboBox {
-                    baseStateFlag: isBaseState;
-                    items : { ["AlignLeft", "AlignRight", "AlignHCenter"] }
-                    backendValue: backendValues.horizontalAlignment;
-                    currentText: backendValues.horizontalAlignment.value;
-                    onItemsChanged: {
-                        currentText =  backendValues.horizontalAlignment.value;
-                    }
-
-                }
-                ComboBox {
-                    baseStateFlag: isBaseState;
-                    items : { ["AlignTop", "AlignBottom", "AlignVCenter"] }
-                    backendValue: backendValues.verticalAlignment;
-                    currentText: backendValues.verticalAlignment.value;
-                    onItemsChanged: {
-                        currentText =  backendValues.verticalAlignment.value;
-                    }
-                }
+                AlignmentHorizontalButtons {}
+                AlignmentVerticalButtons {}
             }
         }
 
-- 
GitLab