9 #include <QtCore/qbytearray.h> 10 #include <QtCore/qmetatype.h> 11 #if !defined(Q_MOC_OUTPUT_REVISION) 12 #error "The header file 'qvalidatedlineedit.h' doesn't include <QObject>." 13 #elif Q_MOC_OUTPUT_REVISION != 67 14 #error "This file was generated using the moc from 5.5.1. It" 15 #error "cannot be used with the include files from this version of Qt." 16 #error "(The moc has changed too much.)" 19 QT_BEGIN_MOC_NAMESPACE
24 #define QT_MOC_LITERAL(idx, ofs, len) \ 25 Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ 26 qptrdiff(offsetof(qt_meta_stringdata_QValidatedLineEdit_t, stringdata0) + ofs \ 27 - idx * sizeof(QByteArrayData)) \ 44 "QValidatedLineEdit\0validationDidChange\0" 45 "\0QValidatedLineEdit*\0validatedLineEdit\0" 46 "setValid\0valid\0setEnabled\0enabled\0" 47 "checkValidity\0markValid" 51 static const uint qt_meta_data_QValidatedLineEdit[] = {
74 QMetaType::Void, 0x80000000 | 3, 4,
77 QMetaType::Void, QMetaType::Bool, 6,
78 QMetaType::Void, QMetaType::Bool, 8,
85 void QValidatedLineEdit::qt_static_metacall(QObject *_o, QMetaObject::Call _c,
int _id,
void **_a)
87 if (_c == QMetaObject::InvokeMetaMethod) {
92 case 1: _t->
setValid((*
reinterpret_cast< bool(*)
>(_a[1])));
break;
93 case 2: _t->
setEnabled((*
reinterpret_cast< bool(*)
>(_a[1])));
break;
98 }
else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
100 default: *
reinterpret_cast<int*
>(_a[0]) = -1;
break;
102 switch (*reinterpret_cast<int*>(_a[1])) {
103 default: *
reinterpret_cast<int*
>(_a[0]) = -1;
break;
105 *
reinterpret_cast<int*
>(_a[0]) = qRegisterMetaType< QValidatedLineEdit* >();
break;
109 }
else if (_c == QMetaObject::IndexOfMethod) {
110 int *result =
reinterpret_cast<int *
>(_a[0]);
111 void **func =
reinterpret_cast<void **
>(_a[1]);
121 const QMetaObject QValidatedLineEdit::staticMetaObject = {
122 { &QLineEdit::staticMetaObject, qt_meta_stringdata_QValidatedLineEdit.
data,
123 qt_meta_data_QValidatedLineEdit, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
127 const QMetaObject *QValidatedLineEdit::metaObject()
const 129 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
132 void *QValidatedLineEdit::qt_metacast(
const char *_clname)
134 if (!_clname)
return Q_NULLPTR;
135 if (!strcmp(_clname, qt_meta_stringdata_QValidatedLineEdit.
stringdata0))
137 return QLineEdit::qt_metacast(_clname);
140 int QValidatedLineEdit::qt_metacall(QMetaObject::Call _c,
int _id,
void **_a)
142 _id = QLineEdit::qt_metacall(_c, _id, _a);
145 if (_c == QMetaObject::InvokeMetaMethod) {
147 qt_static_metacall(
this, _c, _id, _a);
149 }
else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
151 qt_static_metacall(
this, _c, _id, _a);
160 void *_a[] = { Q_NULLPTR,
const_cast<void*
>(
reinterpret_cast<const void*
>(&_t1)) };
161 QMetaObject::activate(
this, &staticMetaObject, 0, _a);
#define QT_MOC_LITERAL(idx, ofs, len)
Line edit that can be marked as "invalid" to show input validation feedback.
void validationDidChange(QValidatedLineEdit *validatedLineEdit)
void setEnabled(bool enabled)
void setValid(bool valid)