diff options
author | Thomas Hartmann <Thomas.Hartmann@nokia.com> | 2010-10-01 13:17:59 +0200 |
---|---|---|
committer | Thomas Hartmann <Thomas.Hartmann@nokia.com> | 2010-10-01 13:21:09 +0200 |
commit | 9a49ad003a8d9f5d73646de306ab2b60ace8e0d7 (patch) | |
tree | a7b89218d6aeffde98f6ce32da5f836f50e68fc9 /share/qtcreator/qmldesigner/propertyeditor/Qt/AlignmentHorizontalButtons.qml | |
parent | b4af592dc03bcde882cb6065555d4c48ae9fc1a3 (diff) |
QmlDesigner: using QtQuick 1.0 instead of Qt 4.7
huge renaming from Qt to QtQuick
propertyeditor qml files moved from Qt to QtQuick
auotests fixed
files used in tests fixed
autotests pass
Task-number: QTCREATORBUG-2556
Reviewed-by: Kai Koehne
Diffstat (limited to 'share/qtcreator/qmldesigner/propertyeditor/Qt/AlignmentHorizontalButtons.qml')
-rw-r--r-- | share/qtcreator/qmldesigner/propertyeditor/Qt/AlignmentHorizontalButtons.qml | 139 |
1 files changed, 0 insertions, 139 deletions
diff --git a/share/qtcreator/qmldesigner/propertyeditor/Qt/AlignmentHorizontalButtons.qml b/share/qtcreator/qmldesigner/propertyeditor/Qt/AlignmentHorizontalButtons.qml deleted file mode 100644 index 849ab25517..0000000000 --- a/share/qtcreator/qmldesigner/propertyeditor/Qt/AlignmentHorizontalButtons.qml +++ /dev/null @@ -1,139 +0,0 @@ -import Qt 4.7 -import Bauhaus 1.0 - -QGroupBox { - id: aligmentHorizontalButtons - - property variant theValue: backendValues.horizontalAlignment.value; - - property bool blueHigh: false - - property bool baseStateFlag: isBaseState; - - property variant backendValue: backendValues.horizontalAlignment; - - - onBaseStateFlagChanged: { - evaluate(); - } - - property bool isInModel: backendValue.isInModel; - onIsInModelChanged: { - evaluate(); - } - property bool isInSubState: backendValue.isInSubState; - onIsInSubStateChanged: { - evaluate(); - } - - onTheValueChanged: { - if (theValue != undefined) { - leftButton.checked = theValue == "AlignLeft"; - centerButton.checked = theValue == "AlignHCenter"; - rightButton.checked = theValue == "AlignRight"; - } - evaluate(); - } - - function evaluate() { - if (!enabled) { - fontSelector.setStyleSheet("color: "+scheme.disabledColor); - } else { - if (baseStateFlag) { - if (backendValue != null && backendValue.isInModel) - blueHigh = true; - else - blueHigh = false; - } else { - if (backendValue != null && backendValue.isInSubState) - blueHigh = true; - else - blueHigh = false; - } - } - } - - layout: HorizontalLayout { - QWidget { - fixedHeight: 32 - - QPushButton { - id: leftButton - - checkable: true - iconSize.width: 24; - iconSize.height: 24; - fixedWidth: 52 - width: fixedWidth - fixedHeight: 28 - height: fixedHeight - styleSheetFile: "styledbuttonleft.css"; - - iconFromFile: blueHigh ? "images/alignmentleft-h-icon.png" : "images/alignmentleft-icon.png" - - checked: backendValues.horizontalAlignment.value == "AlignLeft" - - onClicked: { - backendValues.horizontalAlignment.value = "AlignLeft"; - checked = true; - centerButton.checked = false; - rightButton.checked = false; - } - - ExtendedFunctionButton { - backendValue: backendValues.horizontalAlignment; - y: 7 - x: 2 - } - - } - QPushButton { - id: centerButton - x: 52 - checkable: true - iconSize.width: 24; - iconSize.height: 24; - fixedWidth: 31 - width: fixedWidth - fixedHeight: 28 - height: fixedHeight - styleSheetFile: "styledbuttonmiddle.css"; - - iconFromFile: blueHigh ? "images/alignmentcenterh-h-icon.png" : "images/alignmentcenterh-icon.png" - - checked: backendValues.horizontalAlignment.value == "AlignHCenter" - - onClicked: { - backendValues.horizontalAlignment.value = "AlignHCenter"; - checked = true; - leftButton.checked = false; - rightButton.checked = false; - } - - } - QPushButton { - id: rightButton - x: 83 - checkable: true - iconSize.width: 24; - iconSize.height: 24; - fixedWidth: 31 - width: fixedWidth - fixedHeight: 28 - height: fixedHeight - styleSheetFile: "styledbuttonright.css"; - - iconFromFile: blueHigh ? "images/alignmentright-h-icon.png" : "images/alignmentright-icon.png" - - checked: backendValues.horizontalAlignment.value == "AlignRight" - - onClicked: { - backendValues.horizontalAlignment.value = "AlignRight"; - checked = true; - centerButton.checked = false; - leftButton.checked = false; - } - } - } - } -} |