Files
qt-creator/share/qtcreator/qmldesigner/propertyeditor/Qt/LineEdit.qml
2010-02-05 15:42:31 +10:00

33 lines
561 B
QML

import Qt 4.6
import Bauhaus 1.0
QWidget {
id: lineEdit
property var backendValue
property alias enabled: lineEdit.enabled
minimumHeight: 24;
QLineEdit {
id: lineEditWidget
styleSheet: "padding-left: 16;"
width: lineEdit.width
height: lineEdit.height
text: backendValue.value
onTextEdited: {
backendValue.value = text
}
}
ExtendedFunctionButton {
backendValue: lineEdit.backendValue
y: 4
x: 3
visible: lineEdit.enabled
}
}