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.2.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 offsetof(qt_meta_stringdata_QValidatedLineEdit_t, stringdata) + ofs \
27 - idx * sizeof(QByteArrayData) \
40 "QValidatedLineEdit\0setValid\0\0valid\0"
41 "setEnabled\0enabled\0markValid\0checkValidity\0"
45 static const uint qt_meta_data_QValidatedLineEdit[] = {
65 QMetaType::Void, QMetaType::Bool, 3,
66 QMetaType::Void, QMetaType::Bool, 5,
73 void QValidatedLineEdit::qt_static_metacall(QObject *_o, QMetaObject::Call _c,
int _id,
void **_a)
75 if (_c == QMetaObject::InvokeMetaMethod) {
78 case 0: _t->
setValid((*
reinterpret_cast< bool(*)
>(_a[1])));
break;
79 case 1: _t->
setEnabled((*
reinterpret_cast< bool(*)
>(_a[1])));
break;
87 const QMetaObject QValidatedLineEdit::staticMetaObject = {
88 { &QLineEdit::staticMetaObject, qt_meta_stringdata_QValidatedLineEdit.
data,
89 qt_meta_data_QValidatedLineEdit, qt_static_metacall, 0, 0}
93 const QMetaObject *QValidatedLineEdit::metaObject()
const
95 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
98 void *QValidatedLineEdit::qt_metacast(
const char *_clname)
100 if (!_clname)
return 0;
101 if (!strcmp(_clname, qt_meta_stringdata_QValidatedLineEdit.
stringdata))
103 return QLineEdit::qt_metacast(_clname);
106 int QValidatedLineEdit::qt_metacall(QMetaObject::Call _c,
int _id,
void **_a)
108 _id = QLineEdit::qt_metacall(_c, _id, _a);
111 if (_c == QMetaObject::InvokeMetaMethod) {
113 qt_static_metacall(
this, _c, _id, _a);
115 }
else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
117 *
reinterpret_cast<int*
>(_a[0]) = -1;
#define QT_MOC_LITERAL(idx, ofs, len)
Line edit that can be marked as "invalid" to show input validation feedback.
void setEnabled(bool enabled)
void setValid(bool valid)