Changeset View
Changeset View
Standalone View
Standalone View
org.kde.desktop/TextArea.qml
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Line(s) | 30 | T.TextArea { | |||
---|---|---|---|---|---|
50 | verticalAlignment: TextEdit.AlignTop | 50 | verticalAlignment: TextEdit.AlignTop | ||
51 | 51 | | |||
52 | // Work around Qt bug where NativeRendering breaks for non-integer scale factors | 52 | // Work around Qt bug where NativeRendering breaks for non-integer scale factors | ||
53 | // https://bugreports.qt.io/browse/QTBUG-67007 | 53 | // https://bugreports.qt.io/browse/QTBUG-67007 | ||
54 | renderType: Screen.devicePixelRatio % 1 !== 0 ? Text.QtRendering : Text.NativeRendering | 54 | renderType: Screen.devicePixelRatio % 1 !== 0 ? Text.QtRendering : Text.NativeRendering | ||
55 | 55 | | |||
56 | selectByMouse: !Kirigami.Settings.tabletMode | 56 | selectByMouse: !Kirigami.Settings.tabletMode | ||
57 | 57 | | |||
58 | cursorDelegate: Kirigami.Settings.tabletMode ? mobileCursor : undefined | 58 | cursorDelegate: Kirigami.Settings.tabletMode ? mobileCursor : null | ||
59 | Component { | 59 | Component { | ||
60 | id: mobileCursor | 60 | id: mobileCursor | ||
61 | Private.MobileCursor { | 61 | Private.MobileCursor { | ||
62 | target: controlRoot | 62 | target: controlRoot | ||
63 | } | 63 | } | ||
64 | } | 64 | } | ||
65 | 65 | | |||
66 | onPressAndHold: { | 66 | onPressAndHold: { | ||
▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines |