1// Copyright (C) 2016 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
4#include "qquickfocusscope_p.h"
5
6QT_BEGIN_NAMESPACE
7
8/*!
9 \qmltype FocusScope
10 \instantiates QQuickFocusScope
11 \inqmlmodule QtQuick
12 \ingroup qtquick-input
13
14 \brief Explicitly creates a focus scope.
15 \inherits Item
16
17 Focus scopes assist in keyboard focus handling when building reusable QML
18 components. All the details are covered in the
19 \l {Keyboard Focus in Qt Quick}{keyboard focus documentation}.
20
21 \sa {Qt Quick Examples - Key Interaction}
22*/
23QQuickFocusScope::QQuickFocusScope(QQuickItem *parent)
24: QQuickItem(parent)
25{
26 setFlag(flag: ItemIsFocusScope);
27}
28
29QT_END_NAMESPACE
30
31#include "moc_qquickfocusscope_p.cpp"
32

source code of qtdeclarative/src/quick/items/qquickfocusscope.cpp