Bitcoin Core  0.21.0rc5
P2P Digital Currency
moc_qvalidatedlineedit.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'qvalidatedlineedit.h'
3 **
4 **
5 ** WARNING! All changes made in this file will be lost!
6 *****************************************************************************/
7 
8 #include <memory>
10 #include <QtCore/qbytearray.h>
11 #include <QtCore/qmetatype.h>
12 #if !defined(Q_MOC_OUTPUT_REVISION)
13 #error "The header file 'qvalidatedlineedit.h' doesn't include <QObject>."
14 #elif Q_MOC_OUTPUT_REVISION != 67
15 #error "This file was generated using the moc from 5.15.2. It"
16 #error "cannot be used with the include files from this version of Qt."
17 #error "(The moc has changed too much.)"
18 #endif
19 
20 QT_BEGIN_MOC_NAMESPACE
21 QT_WARNING_PUSH
22 QT_WARNING_DISABLE_DEPRECATED
24  QByteArrayData data[11];
25  char stringdata0[136];
26 };
27 #define QT_MOC_LITERAL(idx, ofs, len) \
28  Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
29  qptrdiff(offsetof(qt_meta_stringdata_QValidatedLineEdit_t, stringdata0) + ofs \
30  - idx * sizeof(QByteArrayData)) \
31  )
33  {
34 QT_MOC_LITERAL(0, 0, 18), // "QValidatedLineEdit"
35 QT_MOC_LITERAL(1, 19, 19), // "validationDidChange"
36 QT_MOC_LITERAL(2, 39, 0), // ""
37 QT_MOC_LITERAL(3, 40, 19), // "QValidatedLineEdit*"
38 QT_MOC_LITERAL(4, 60, 17), // "validatedLineEdit"
39 QT_MOC_LITERAL(5, 78, 8), // "setValid"
40 QT_MOC_LITERAL(6, 87, 5), // "valid"
41 QT_MOC_LITERAL(7, 93, 10), // "setEnabled"
42 QT_MOC_LITERAL(8, 104, 7), // "enabled"
43 QT_MOC_LITERAL(9, 112, 9), // "markValid"
44 QT_MOC_LITERAL(10, 122, 13) // "checkValidity"
45 
46  },
47  "QValidatedLineEdit\0validationDidChange\0"
48  "\0QValidatedLineEdit*\0validatedLineEdit\0"
49  "setValid\0valid\0setEnabled\0enabled\0"
50  "markValid\0checkValidity"
51 };
52 #undef QT_MOC_LITERAL
53 
54 static const uint qt_meta_data_QValidatedLineEdit[] = {
55 
56  // content:
57  8, // revision
58  0, // classname
59  0, 0, // classinfo
60  5, 14, // methods
61  0, 0, // properties
62  0, 0, // enums/sets
63  0, 0, // constructors
64  0, // flags
65  1, // signalCount
66 
67  // signals: name, argc, parameters, tag, flags
68  1, 1, 39, 2, 0x06 /* Public */,
69 
70  // slots: name, argc, parameters, tag, flags
71  5, 1, 42, 2, 0x0a /* Public */,
72  7, 1, 45, 2, 0x0a /* Public */,
73  9, 0, 48, 2, 0x08 /* Private */,
74  10, 0, 49, 2, 0x08 /* Private */,
75 
76  // signals: parameters
77  QMetaType::Void, 0x80000000 | 3, 4,
78 
79  // slots: parameters
80  QMetaType::Void, QMetaType::Bool, 6,
81  QMetaType::Void, QMetaType::Bool, 8,
82  QMetaType::Void,
83  QMetaType::Void,
84 
85  0 // eod
86 };
87 
88 void QValidatedLineEdit::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
89 {
90  if (_c == QMetaObject::InvokeMetaMethod) {
91  auto *_t = static_cast<QValidatedLineEdit *>(_o);
92  Q_UNUSED(_t)
93  switch (_id) {
94  case 0: _t->validationDidChange((*reinterpret_cast< QValidatedLineEdit*(*)>(_a[1]))); break;
95  case 1: _t->setValid((*reinterpret_cast< bool(*)>(_a[1]))); break;
96  case 2: _t->setEnabled((*reinterpret_cast< bool(*)>(_a[1]))); break;
97  case 3: _t->markValid(); break;
98  case 4: _t->checkValidity(); break;
99  default: ;
100  }
101  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
102  switch (_id) {
103  default: *reinterpret_cast<int*>(_a[0]) = -1; break;
104  case 0:
105  switch (*reinterpret_cast<int*>(_a[1])) {
106  default: *reinterpret_cast<int*>(_a[0]) = -1; break;
107  case 0:
108  *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QValidatedLineEdit* >(); break;
109  }
110  break;
111  }
112  } else if (_c == QMetaObject::IndexOfMethod) {
113  int *result = reinterpret_cast<int *>(_a[0]);
114  {
115  using _t = void (QValidatedLineEdit::*)(QValidatedLineEdit * );
116  if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QValidatedLineEdit::validationDidChange)) {
117  *result = 0;
118  return;
119  }
120  }
121  }
122 }
123 
124 QT_INIT_METAOBJECT const QMetaObject QValidatedLineEdit::staticMetaObject = { {
125  QMetaObject::SuperData::link<QLineEdit::staticMetaObject>(),
128  qt_static_metacall,
129  nullptr,
130  nullptr
131 } };
132 
133 
134 const QMetaObject *QValidatedLineEdit::metaObject() const
135 {
136  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
137 }
138 
139 void *QValidatedLineEdit::qt_metacast(const char *_clname)
140 {
141  if (!_clname) return nullptr;
143  return static_cast<void*>(this);
144  return QLineEdit::qt_metacast(_clname);
145 }
146 
147 int QValidatedLineEdit::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
148 {
149  _id = QLineEdit::qt_metacall(_c, _id, _a);
150  if (_id < 0)
151  return _id;
152  if (_c == QMetaObject::InvokeMetaMethod) {
153  if (_id < 5)
154  qt_static_metacall(this, _c, _id, _a);
155  _id -= 5;
156  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
157  if (_id < 5)
158  qt_static_metacall(this, _c, _id, _a);
159  _id -= 5;
160  }
161  return _id;
162 }
163 
164 // SIGNAL 0
166 {
167  void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
168  QMetaObject::activate(this, &staticMetaObject, 0, _a);
169 }
170 QT_WARNING_POP
171 QT_END_MOC_NAMESPACE
Line edit that can be marked as "invalid" to show input validation feedback.
void validationDidChange(QValidatedLineEdit *validatedLineEdit)
static const qt_meta_stringdata_QValidatedLineEdit_t qt_meta_stringdata_QValidatedLineEdit
#define QT_MOC_LITERAL(idx, ofs, len)
static const uint qt_meta_data_QValidatedLineEdit[]