5#include <private/qquickstyleplugin_p.h>
8#include <QtQml/qqmlextensionplugin.h>
10#if defined(Q_OS_MACOS)
11# include <private/qquickmacfocusframe_p.h>
12#elif defined(Q_OS_WINDOWS)
13# include <private/qquickwindowsfocusframe_p.h>
26 Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)
35 QString name()
const override {
return QStringLiteral(
"NativeStyle"); }
39 QQuickStylePlugin(parent)
41 volatile auto registration = &qml_register_types_QtQuick_NativeStyle;
42 Q_UNUSED(registration);
52#if defined(Q_OS_MACOS)
53 g_focusFrame = std::make_unique<QQuickMacFocusFrame>();
54#elif defined(Q_OS_WIN)
55 g_focusFrame = std::make_unique<QQuickWindowsFocusFrame>();
69#include "qtquickcontrols2nativestyleplugin.moc"
void initializeEngine(QQmlEngine *, const char *) override
Initializes the extension from the uri using the engine.
~QtQuickControls2NativeStylePlugin() override=default
void initializeTheme(QQuickTheme *) override
QString name() const override
static std::unique_ptr< QQuickFocusFrame > g_focusFrame
QT_BEGIN_NAMESPACE void qml_register_types_QtQuick_NativeStyle()
Q_GHS_KEEP_REFERENCE(qml_register_types_QtQuick_NativeStyle)