custom cursor delegate only if mobile

This commit is contained in:
Marco Martin 2015-08-05 13:55:26 +02:00
parent 669f807fa8
commit ba69d19c63
2 changed files with 10 additions and 2 deletions

View File

@ -72,9 +72,13 @@ QtQuickControlStyle.TextAreaStyle {
id: editMenuTouch
EditMenuTouch {}
}
Component {
id: cursorTouch
CursorDelegate {}
}
__cursorHandle: CursorHandleStyle {}
__cursorDelegate: CursorDelegate{}
__cursorDelegate: QtQuickControlsPrivate.Settings.isMobile ? cursorTouch : null
__selectionHandle: SelectionHandleStyle {}
property Component __editMenu: QtQuickControlsPrivate.Settings.isMobile ? editMenuTouch : null
}

View File

@ -71,9 +71,13 @@ QtQuickControlStyle.TextFieldStyle {
id: editMenuTouch
EditMenuTouch {}
}
Component {
id: cursorTouch
CursorDelegate {}
}
__cursorHandle: CursorHandleStyle {}
__cursorDelegate: CursorDelegate{}
__cursorDelegate: QtQuickControlsPrivate.Settings.isMobile ? cursorTouch : null
__selectionHandle: SelectionHandleStyle {}
property Component __editMenu: QtQuickControlsPrivate.Settings.isMobile ? editMenuTouch : null
}