aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@qt.io>2020-11-16 15:06:21 +0100
committerRichard Moe Gustavsen <richard.gustavsen@qt.io>2020-11-17 15:10:59 +0100
commit84d8bcd11756a0a076262295544c08765e267a51 (patch)
tree29e589345968c5c71d2d9262e067fcc0a61f7f81 /src/imports/controls
parentbea92e4e0b2d58cfe88f247e9195dcb00e44e290 (diff)
macOS: don't use a focus frame around TextArea
As it turns out, text areas in general should not show a focus frame. We don't do that for widgets, and AppKit doesn't do that for NSTextView. And for good reason, we don't want to show a big focus ring around the whole text edit in e.g a text editor application. Change-Id: Idc344c9f8d9f4a11dce22b2d2284800f05cd551a Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'src/imports/controls')
-rw-r--r--src/imports/controls/macos/TextArea.qml11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/imports/controls/macos/TextArea.qml b/src/imports/controls/macos/TextArea.qml
index 38c8a7b7..f6b88303 100644
--- a/src/imports/controls/macos/TextArea.qml
+++ b/src/imports/controls/macos/TextArea.qml
@@ -38,15 +38,4 @@ import QtQuick
import QtQuick.NativeStyle as NativeStyle
NativeStyle.DefaultTextArea {
- id: control
-
- readonly property Item __focusFrameTarget: control
-
- background: Rectangle {
- color: control.palette.light
- // Since this delegate is a plain Rectangle, we need to tag it to know
- // that it's still the default one, and not some custom item set by the
- // application. Only in the former case do we wan't to show a focus frame.
- readonly property bool __isDefaultDelegate: true
- }
}