8#include <QtCore/private/qfileselector_p.h>
9#include <QtCore/qloggingcategory.h>
10#include <QtGui/qstylehints.h>
11#include <QtGui/qguiapplication.h>
12#include <QtQml/qqmlengine.h>
13#include <QtQml/qqmlfile.h>
14#include <QtQml/private/qqmlmetatype_p.h>
15#include <QtQuickTemplates2/private/qquicktheme_p_p.h>
32 qCDebug(lcStylePlugin).nospace() <<
"registerTypes called with uri " << uri <<
"; plugin name is " <<
name();
40 qCDebug(lcStylePlugin).nospace() << uri <<
" imported before QtQuick.Controls; using compile-time style selection";
53 qCDebug(lcStylePlugin) <<
"creating theme";
54 theme = createTheme(effectiveCurrentStyleName);
57 if (
name() != effectiveCurrentStyleName) {
58 qCDebug(lcStylePlugin).nospace() <<
"theme does not belong to current style ("
59 << effectiveCurrentStyleName <<
"); not calling initializeTheme()";
63 qCDebug(lcStylePlugin) <<
"theme has not yet been initialized; calling initializeTheme()";
74 qCDebug(lcStylePlugin) <<
"unregisterTypes called; plugin name is" <<
name();
102 qCDebug(lcStylePlugin) <<
"creating QQuickTheme instance to be initialized by style-specific theme of" <<
name;
105#if QT_CONFIG(settings)
127#include "moc_qquickstyleplugin_p.cpp"
static void addStatics(const QStringList &)
static QStyleHints * styleHints()
Returns the application's style hints.
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
The QQmlExtensionPlugin class provides an abstract base for custom QML extension plugins with custom ...
void registerTypes(const char *uri) override
Registers the QML types in the given uri.
virtual void updateTheme()
void unregisterTypes() override
virtual QString name() const =0
virtual void initializeTheme(QQuickTheme *theme)=0
static QString effectiveStyleName(const QString &styleName)
static const QFont * readFont(const QSharedPointer< QSettings > &settings)
static QSharedPointer< QSettings > settings(const QString &group=QString())
static const QPalette * readPalette(const QSharedPointer< QSettings > &settings)
static void setStyle(const QString &style)
Sets the application style to style.
static QQuickThemePrivate * get(QQuickTheme *theme)
static std::unique_ptr< QQuickTheme > instance
static QQuickTheme * instance()
void setFont(Scope scope, const QFont &font)
void setPalette(Scope scope, const QPalette &palette)
\macro QT_RESTRICTED_CAST_FROM_ASCII
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
void colorSchemeChanged(Qt::ColorScheme colorScheme)
constexpr bool isValid() const
Returns true if the major version or the minor version is known, otherwise false.
Combined button and popup list for selecting options.
#define Q_LOGGING_CATEGORY(name,...)
#define qCDebug(category,...)
QLatin1StringView QLatin1String
QSettings settings("MySoft", "Star Runner")
[0]
myObject disconnect()
[26]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent