custom cursor delegate only if mobile
This commit is contained in:
parent
669f807fa8
commit
ba69d19c63
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user