Files
cavity_LIBS/msvc-deps/qwt-6.2.0/build-debug/moc/moc_qwt_text_label.cpp
T
2026-11-06 14:45:09 +08:00

194 lines
6.5 KiB
C++

/****************************************************************************
** Meta object code from reading C++ file 'qwt_text_label.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.15.2)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
#include <memory>
#include "../../src/qwt_text_label.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'qwt_text_label.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.2. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_QwtTextLabel_t {
QByteArrayData data[10];
char stringdata0[91];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
qptrdiff(offsetof(qt_meta_stringdata_QwtTextLabel_t, stringdata0) + ofs \
- idx * sizeof(QByteArrayData)) \
)
static const qt_meta_stringdata_QwtTextLabel_t qt_meta_stringdata_QwtTextLabel = {
{
QT_MOC_LITERAL(0, 0, 12), // "QwtTextLabel"
QT_MOC_LITERAL(1, 13, 7), // "setText"
QT_MOC_LITERAL(2, 21, 0), // ""
QT_MOC_LITERAL(3, 22, 19), // "QwtText::TextFormat"
QT_MOC_LITERAL(4, 42, 10), // "textFormat"
QT_MOC_LITERAL(5, 53, 7), // "QwtText"
QT_MOC_LITERAL(6, 61, 5), // "clear"
QT_MOC_LITERAL(7, 67, 6), // "indent"
QT_MOC_LITERAL(8, 74, 6), // "margin"
QT_MOC_LITERAL(9, 81, 9) // "plainText"
},
"QwtTextLabel\0setText\0\0QwtText::TextFormat\0"
"textFormat\0QwtText\0clear\0indent\0margin\0"
"plainText"
};
#undef QT_MOC_LITERAL
static const uint qt_meta_data_QwtTextLabel[] = {
// content:
8, // revision
0, // classname
0, 0, // classinfo
4, 14, // methods
3, 46, // properties
0, 0, // enums/sets
0, 0, // constructors
0, // flags
0, // signalCount
// slots: name, argc, parameters, tag, flags
1, 2, 34, 2, 0x0a /* Public */,
1, 1, 39, 2, 0x2a /* Public | MethodCloned */,
1, 1, 42, 2, 0x0a /* Public */,
6, 0, 45, 2, 0x0a /* Public */,
// slots: parameters
QMetaType::Void, QMetaType::QString, 0x80000000 | 3, 2, 4,
QMetaType::Void, QMetaType::QString, 2,
QMetaType::Void, 0x80000000 | 5, 2,
QMetaType::Void,
// properties: name, type, flags
7, QMetaType::Int, 0x00095103,
8, QMetaType::Int, 0x00095103,
9, QMetaType::QString, 0x00095103,
0 // eod
};
void QwtTextLabel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
if (_c == QMetaObject::InvokeMetaMethod) {
auto *_t = static_cast<QwtTextLabel *>(_o);
Q_UNUSED(_t)
switch (_id) {
case 0: _t->setText((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< QwtText::TextFormat(*)>(_a[2]))); break;
case 1: _t->setText((*reinterpret_cast< const QString(*)>(_a[1]))); break;
case 2: _t->setText((*reinterpret_cast< const QwtText(*)>(_a[1]))); break;
case 3: _t->clear(); break;
default: ;
}
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
switch (_id) {
default: *reinterpret_cast<int*>(_a[0]) = -1; break;
case 2:
switch (*reinterpret_cast<int*>(_a[1])) {
default: *reinterpret_cast<int*>(_a[0]) = -1; break;
case 0:
*reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QwtText >(); break;
}
break;
}
}
#ifndef QT_NO_PROPERTIES
else if (_c == QMetaObject::ReadProperty) {
auto *_t = static_cast<QwtTextLabel *>(_o);
Q_UNUSED(_t)
void *_v = _a[0];
switch (_id) {
case 0: *reinterpret_cast< int*>(_v) = _t->indent(); break;
case 1: *reinterpret_cast< int*>(_v) = _t->margin(); break;
case 2: *reinterpret_cast< QString*>(_v) = _t->plainText(); break;
default: break;
}
} else if (_c == QMetaObject::WriteProperty) {
auto *_t = static_cast<QwtTextLabel *>(_o);
Q_UNUSED(_t)
void *_v = _a[0];
switch (_id) {
case 0: _t->setIndent(*reinterpret_cast< int*>(_v)); break;
case 1: _t->setMargin(*reinterpret_cast< int*>(_v)); break;
case 2: _t->setPlainText(*reinterpret_cast< QString*>(_v)); break;
default: break;
}
} else if (_c == QMetaObject::ResetProperty) {
}
#endif // QT_NO_PROPERTIES
}
QT_INIT_METAOBJECT const QMetaObject QwtTextLabel::staticMetaObject = { {
QMetaObject::SuperData::link<QFrame::staticMetaObject>(),
qt_meta_stringdata_QwtTextLabel.data,
qt_meta_data_QwtTextLabel,
qt_static_metacall,
nullptr,
nullptr
} };
const QMetaObject *QwtTextLabel::metaObject() const
{
return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}
void *QwtTextLabel::qt_metacast(const char *_clname)
{
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_QwtTextLabel.stringdata0))
return static_cast<void*>(this);
return QFrame::qt_metacast(_clname);
}
int QwtTextLabel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QFrame::qt_metacall(_c, _id, _a);
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
if (_id < 4)
qt_static_metacall(this, _c, _id, _a);
_id -= 4;
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
if (_id < 4)
qt_static_metacall(this, _c, _id, _a);
_id -= 4;
}
#ifndef QT_NO_PROPERTIES
else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
|| _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
qt_static_metacall(this, _c, _id, _a);
_id -= 3;
} else if (_c == QMetaObject::QueryPropertyDesignable) {
_id -= 3;
} else if (_c == QMetaObject::QueryPropertyScriptable) {
_id -= 3;
} else if (_c == QMetaObject::QueryPropertyStored) {
_id -= 3;
} else if (_c == QMetaObject::QueryPropertyEditable) {
_id -= 3;
} else if (_c == QMetaObject::QueryPropertyUser) {
_id -= 3;
}
#endif // QT_NO_PROPERTIES
return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE