| 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 | |
| 6 | QT_BEGIN_NAMESPACE |
| 7 | |
| 8 | /*! |
| 9 | \qmltype FocusScope |
| 10 | \nativetype 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 | */ |
| 23 | QQuickFocusScope::QQuickFocusScope(QQuickItem *parent) |
| 24 | : QQuickItem(parent) |
| 25 | { |
| 26 | setFlag(flag: ItemIsFocusScope); |
| 27 | } |
| 28 | |
| 29 | QT_END_NAMESPACE |
| 30 | |
| 31 | #include "moc_qquickfocusscope_p.cpp" |
| 32 | |