diff options
| author | Thiago Macieira <thiago.macieira@intel.com> | 2024-10-07 21:27:42 -0700 |
|---|---|---|
| committer | Thiago Macieira <thiago.macieira@intel.com> | 2024-11-20 21:42:55 -0800 |
| commit | ea3288c9b6687d6ace5fa0fc7fd525f2387b68b5 (patch) | |
| tree | d3d27df5f847e78e701285dd0eadd4f7b381eab0 /src/opengl/qopenglcompositor.cpp | |
| parent | 8fabcb642f3a156ac5f97aa82ac722df3472dbfb (diff) | |
moc: keep the enum/class/struct C++ type tag in properties
ActiveQt dumpcpp could use this so
Q_PROPERTY(class Accounts *Accounts READ Accounts)
can compile. moc will now generate:
QtMocHelpers::UintData qt_properties {
// property 'Accounts'
QtMocHelpers::PropertyData<class Accounts*>(1, 0x80000000 | 2, QMC::DefaultPropertyFlags | QMC::EnumOrFlag),
};
if (_c == QMetaObject::RegisterPropertyMetaType) {
switch (_id) {
default: *reinterpret_cast<int*>(_a[0]) = -1; break;
case 0:
*reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< class Accounts* >(); break;
}
}
if (_c == QMetaObject::ReadProperty) {
void *_v = _a[0];
switch (_id) {
case 0: *reinterpret_cast<class Accounts**>(_v) = _t->Accounts(); break;
default: break;
}
}
Change-Id: Ibb85c3a067054d017b05fffdbd500f302f655bd9
Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/opengl/qopenglcompositor.cpp')
0 files changed, 0 insertions, 0 deletions
