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

115 lines
2.9 KiB
QML
Raw Normal View History

import Qt 4.7
import Bauhaus 1.0
GroupBox {
id: textInputGroupBox
caption: qsTr("Text Input")
property bool isTextInput: false
layout: VerticalLayout {
QWidget {
visible: isTextInput
layout: HorizontalLayout {
Label {text: qsTr("Input Mask") }
LineEdit {
backendValue: backendValues.inputMask
baseStateFlag: isBaseState
}
}
}
QWidget {
visible: isTextInput
layout: HorizontalLayout {
Label {text: qsTr("Echo Mode") }
ComboBox {
baseStateFlag: isBaseState
items : { ["Normal", "Password", "PasswordEchoOnEdit", "NoEcho"] }
currentText: backendValues.echoMode.value;
onItemsChanged: {
currentText = backendValues.echoMode.value;
}
backendValue: backendValues.echoMode
}
}
}
QWidget {
visible: isTextInput
layout: HorizontalLayout {
Label {
text: qsTr("Pass. Char")
toolTip: qsTr("Password Character")
}
LineEdit {
backendValue: backendValues.passwordCharacter
baseStateFlag: isBaseState
}
}
}
QWidget {
layout: HorizontalLayout {
Label {text: qsTr("Flags") }
CheckBox {
text: qsTr("Read Only")
baseStateFlag: isBaseState;
checkable: true;
backendValue: backendValues.readOnly;
}
}
}
QWidget {
layout: HorizontalLayout {
Label {text: ""}
CheckBox {
text: qsTr("Cursor Visible")
baseStateFlag: isBaseState;
checkable: true;
backendValue: backendValues.cursorVisible;
}
}
}
QWidget {
layout: HorizontalLayout {
Label {text: ""}
CheckBox {
text: qsTr("Focus On Press")
baseStateFlag: isBaseState;
checkable: true;
backendValue: backendValues.focusOnPress;
}
}
}
QWidget {
visible: isTextInput
layout: HorizontalLayout {
Label {text: ""}
CheckBox {
text: qsTr("Auto Scroll")
baseStateFlag: isBaseState;
checkable: true;
backendValue: backendValues.autoScroll;
}
}
}
}
}