diff options
Diffstat (limited to 'src/imports/dialogs/qml/TextField.qml')
-rw-r--r-- | src/imports/dialogs/qml/TextField.qml | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/imports/dialogs/qml/TextField.qml b/src/imports/dialogs/qml/TextField.qml index 89487e82ca..baa469caa9 100644 --- a/src/imports/dialogs/qml/TextField.qml +++ b/src/imports/dialogs/qml/TextField.qml @@ -45,11 +45,20 @@ Item { property alias textInput: textInput property alias text: textInput.text + property real implicitWidth: textInput.implicitWidth + rect.radius * 2 + property real implicitHeight: textInput.implicitHeight + rect.radius * 2 signal accepted signal downPressed + function copyAll() { + textInput.selectAll() + textInput.copy() + } + SystemPalette { id: palette } - height: textInput.implicitHeight + 4 + height: textInput.implicitHeight + 8 + clip: true + Rectangle { id: rect anchors.fill: parent @@ -62,6 +71,8 @@ Item { id: textInput color: palette.text anchors.fill: parent + anchors.leftMargin: rect.radius + anchors.rightMargin: rect.radius verticalAlignment: Text.AlignVCenter onAccepted: root.accepted() Keys.onDownPressed: root.downPressed() |