Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qquickmacfocusframe.mm
Go to the documentation of this file.
1
// Copyright (C) 2023 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
#
include
"qquickmacfocusframe_p.h"
6
7
#
include
<
private
/
qcoregraphics_p
.
h
>
8
9
#
include
<
QtGui
/
qguiapplication
.
h
>
10
11
#
include
<
QtQml
/
qqmlcomponent
.
h
>
12
13
#
include
<
AppKit
/
AppKit
.
h
>
14
15
QT_BEGIN_NAMESPACE
16
17
QQuickItem *QQuickMacFocusFrame::createFocusFrame(QQmlContext *context)
18
{
19
QQmlComponent component(
20
context->engine(),
21
QUrl(QStringLiteral(
22
"qrc:/qt-project.org/imports/QtQuick/NativeStyle/util/MacFocusFrame.qml"
)));
23
auto
frame = qobject_cast<QQuickItem *>(component.create());
24
if
(!frame)
25
return
nullptr
;
26
27
auto
indicatorColor = qt_mac_toQColor(NSColor.keyboardFocusIndicatorColor.CGColor);
28
indicatorColor.setAlpha(255);
29
frame->setProperty(
"systemFrameColor"
, indicatorColor);
30
return
frame;
31
}
32
33
QT_END_NAMESPACE
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtdeclarative
src
quickcontrols
quicknativestyle
util
qquickmacfocusframe.mm
Generated on
for Qt by
1.18.0