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
qqstylekitpalette.cpp File Reference

(ca3912d549c7d121745476b8cb096b51a4defeb4)

#include "qqstylekitpalette_p.h"
#include "moc_qqstylekitpalette_p.cpp"
Include dependency graph for qqstylekitpalette.cpp:

Go to the source code of this file.

Macros

#define STYLEKIT_PALETTE_GETTER(PROP, SCOPE)

Macro Definition Documentation

◆ STYLEKIT_PALETTE_GETTER

#define STYLEKIT_PALETTE_GETTER ( PROP,
SCOPE )
Value:
QQuickPalette *QQStyleKitPalette::PROP() const { \
if (!m_##PROP) { \
m_##PROP.reset(new QQuickPalette()); \
QObject::connect(m_##PROP.get(), &QQuickPalette::changed, \
const_cast<QQStyleKitPalette*>(this), \
[this]() { \
auto *self = const_cast<QQStyleKitPalette*>(this);\
self->markSet(SCOPE); \
emit self->PROP##Changed(); \
}); \
} \
return m_##PROP.get(); \
}
Contains color groups for each QML item state. \inmodule QtQuick.

Definition at line 13 of file qqstylekitpalette.cpp.