Files
qt-creator/share/qtcreator/qmldesigner/propertyeditor/Qt/StandardTextGroupBox.qml

91 lines
2.3 KiB
QML
Raw Normal View History

import Qt 4.6
import Bauhaus 1.0
GroupBox {
id: standardTextGroupBox
caption: "Text";
property bool showStyleColor: false;
layout: VerticalLayout {
QWidget {
layout: HorizontalLayout {
Label {
text: "Text"
}
LineEdit {
backendValue: backendValues.text
baseStateFlag: isBaseState;
}
}
}
QWidget {
layout: HorizontalLayout {
Label {
text: ""
}
CheckBox {
baseStateFlag: isBaseState;
text: "Is Wrapping";
checkable: true;
backendValue: backendValues.wrap;
}
}
}
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;
}
}
}
}
ColorLabel {
text: " Color"
}
ColorGroupBox {
finished: finishedNotify
backendColor: backendValues.color
}
ColorLabel {
visible: showStyleColor
text: " Style Color"
}
ColorGroupBox {
visible: showStyleColor
finished: finishedNotify
backendColor: backendValues.styleColor || null
}
}
}