diff options
author | Richard Moe Gustavsen <richard.gustavsen@digia.com> | 2014-07-23 11:33:48 +0200 |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@digia.com> | 2014-09-23 17:46:07 +0200 |
commit | 229c4b0a71c888c37fad054c2fabaecfa3ba73fc (patch) | |
tree | dce058ff2feab69504056150848783ad785afbbc /src/controls/Private | |
parent | 26db5c724540449ef1e19178427081bff084e4ad (diff) | |
download | qtquickcontrols-229c4b0a71c888c37fad054c2fabaecfa3ba73fc.tar.gz |
Add EditMenu to input controls
Add EditMenu to TextArea, TextField, ComboBox and
SpinBox.
Change-Id: Ic2fed55c467dde65334006d252f4052430f3f40c
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Diffstat (limited to 'src/controls/Private')
-rw-r--r-- | src/controls/Private/TextInputWithHandles.qml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/controls/Private/TextInputWithHandles.qml b/src/controls/Private/TextInputWithHandles.qml index 59ba971e..e5d72f96 100644 --- a/src/controls/Private/TextInputWithHandles.qml +++ b/src/controls/Private/TextInputWithHandles.qml @@ -51,6 +51,7 @@ TextInput { property bool hasSelection: selectionStart !== selectionEnd readonly property int selectionPosition: selectionStart !== cursorPosition ? selectionStart : selectionEnd readonly property alias containsMouse: mouseArea.containsMouse + property alias editMenu: editMenu selectByMouse: control.selectByMouse && (!cursorHandle.delegate || !selectionHandle.delegate) @@ -115,6 +116,15 @@ TextInput { } } + EditMenu { + id: editMenu + input: parent + control: parent.control + cursorHandle: cursorHandle + selectionHandle: selectionHandle + anchors.fill: parent + } + TextHandle { id: selectionHandle |