Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquickfocusframe_p.h
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
#
ifndef
QQUICKFOCUSFRAME_P_H
6
#
define
QQUICKFOCUSFRAME_P_H
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is not part of the Qt API. It exists purely as an
13
// implementation detail. This header file may change from version to
14
// version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#
include
<
private
/
qquickstyleitem_p
.
h
>
20
21
#
include
<
QtQuickNativeStyle
/
qtquicknativestyleexports
.
h
>
22
23
#
include
<
QtQuick
/
qquickitem
.
h
>
24
25
QT_BEGIN_NAMESPACE
26
27
Q_DECLARE_LOGGING_CATEGORY
(
lcFocusFrame
)
28
29
struct
QQuickFocusFrameDescription
{
30
QQuickItem
*
target
;
31
QQuickStyleMargins
margins
;
32
const
qreal
radius
= 3;
33
bool
isValid
()
const
{
return
target !=
nullptr
; }
34
static
QQuickFocusFrameDescription
Invalid
;
35
};
36
37
class
Q_QUICKNATIVESTYLE_EXPORT
QQuickFocusFrame
:
public
QObject
38
{
39
Q_OBJECT
40
41
public
:
42
QQuickFocusFrame();
43
44
private
:
45
static
QScopedPointer<QQuickItem> m_focusFrame;
46
47
virtual
QQuickItem *createFocusFrame(QQmlContext *context) = 0;
48
void
moveToItem(QQuickItem *item);
49
QQuickFocusFrameDescription getDescriptionForItem(QQuickItem *focusItem)
const
;
50
};
51
52
QT_END_NAMESPACE
53
54
#
endif
// QQUICKFOCUSFRAME_P_H
QQuickFocusFrame
Definition
qquickfocusframe_p.h:38
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
Q_DECLARE_LOGGING_CATEGORY
QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY(lcQIORing)
QQuickFocusFrameDescription
Definition
qquickfocusframe_p.h:29
QQuickFocusFrameDescription::target
QQuickItem * target
Definition
qquickfocusframe_p.h:30
QQuickFocusFrameDescription::margins
QQuickStyleMargins margins
Definition
qquickfocusframe_p.h:31
QQuickFocusFrameDescription::radius
const qreal radius
Definition
qquickfocusframe_p.h:32
QQuickFocusFrameDescription::Invalid
static QQuickFocusFrameDescription Invalid
Definition
qquickfocusframe_p.h:25
QQuickFocusFrameDescription::isValid
bool isValid() const
Definition
qquickfocusframe_p.h:33
qtdeclarative
src
quickcontrols
quicknativestyle
util
qquickfocusframe_p.h
Generated on
for Qt by
1.16.1