From fbc629892461662a20e12c38f182fddb1fcc3a81 Mon Sep 17 00:00:00 2001 From: Richard Moe Gustavsen Date: Thu, 24 Sep 2020 14:22:57 +0200 Subject: NativeStyle: add focus frame to the macOS style This patch will add a focus frame to the macOS style. We use one focus frame item that we move around according to changes to the focus object. It's normally the background delegate's responsibility to draw a focus frame, so we take care to only draw the native focus frame for controls with default delegates. (to be consistent with the other styles) Change-Id: Iaa7202675c1aad2fc19682563ac1afb6e686c105 Reviewed-by: Mitch Curtis --- src/imports/nativestyle/util/util.pri | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/imports/nativestyle/util/util.pri (limited to 'src/imports/nativestyle/util/util.pri') diff --git a/src/imports/nativestyle/util/util.pri b/src/imports/nativestyle/util/util.pri new file mode 100644 index 00000000..96786eac --- /dev/null +++ b/src/imports/nativestyle/util/util.pri @@ -0,0 +1,11 @@ +INCLUDEPATH += $$PWD + +macos { + HEADERS += \ + $$PWD/qquickmacfocusframe.h \ + + SOURCES += \ + $$PWD/qquickmacfocusframe.mm \ + + RESOURCES += $$PWD/FocusFrame.qml +} -- cgit v1.2.3