Anoncoin  0.9.4
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 
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.)"
17 #endif
18 
19 QT_BEGIN_MOC_NAMESPACE
21  QByteArrayData data[8];
22  char stringdata[79];
23 };
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) \
28  )
29 static const qt_meta_stringdata_QValidatedLineEdit_t qt_meta_stringdata_QValidatedLineEdit = {
30  {
31 QT_MOC_LITERAL(0, 0, 18),
32 QT_MOC_LITERAL(1, 19, 8),
33 QT_MOC_LITERAL(2, 28, 0),
34 QT_MOC_LITERAL(3, 29, 5),
35 QT_MOC_LITERAL(4, 35, 10),
36 QT_MOC_LITERAL(5, 46, 7),
37 QT_MOC_LITERAL(6, 54, 9),
38 QT_MOC_LITERAL(7, 64, 13)
39  },
40  "QValidatedLineEdit\0setValid\0\0valid\0"
41  "setEnabled\0enabled\0markValid\0checkValidity\0"
42 };
43 #undef QT_MOC_LITERAL
44 
45 static const uint qt_meta_data_QValidatedLineEdit[] = {
46 
47  // content:
48  7, // revision
49  0, // classname
50  0, 0, // classinfo
51  4, 14, // methods
52  0, 0, // properties
53  0, 0, // enums/sets
54  0, 0, // constructors
55  0, // flags
56  0, // signalCount
57 
58  // slots: name, argc, parameters, tag, flags
59  1, 1, 34, 2, 0x0a,
60  4, 1, 37, 2, 0x0a,
61  6, 0, 40, 2, 0x08,
62  7, 0, 41, 2, 0x08,
63 
64  // slots: parameters
65  QMetaType::Void, QMetaType::Bool, 3,
66  QMetaType::Void, QMetaType::Bool, 5,
67  QMetaType::Void,
68  QMetaType::Void,
69 
70  0 // eod
71 };
72 
73 void QValidatedLineEdit::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
74 {
75  if (_c == QMetaObject::InvokeMetaMethod) {
76  QValidatedLineEdit *_t = static_cast<QValidatedLineEdit *>(_o);
77  switch (_id) {
78  case 0: _t->setValid((*reinterpret_cast< bool(*)>(_a[1]))); break;
79  case 1: _t->setEnabled((*reinterpret_cast< bool(*)>(_a[1]))); break;
80  case 2: _t->markValid(); break;
81  case 3: _t->checkValidity(); break;
82  default: ;
83  }
84  }
85 }
86 
87 const QMetaObject QValidatedLineEdit::staticMetaObject = {
88  { &QLineEdit::staticMetaObject, qt_meta_stringdata_QValidatedLineEdit.data,
89  qt_meta_data_QValidatedLineEdit, qt_static_metacall, 0, 0}
90 };
91 
92 
93 const QMetaObject *QValidatedLineEdit::metaObject() const
94 {
95  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
96 }
97 
98 void *QValidatedLineEdit::qt_metacast(const char *_clname)
99 {
100  if (!_clname) return 0;
101  if (!strcmp(_clname, qt_meta_stringdata_QValidatedLineEdit.stringdata))
102  return static_cast<void*>(const_cast< QValidatedLineEdit*>(this));
103  return QLineEdit::qt_metacast(_clname);
104 }
105 
106 int QValidatedLineEdit::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
107 {
108  _id = QLineEdit::qt_metacall(_c, _id, _a);
109  if (_id < 0)
110  return _id;
111  if (_c == QMetaObject::InvokeMetaMethod) {
112  if (_id < 4)
113  qt_static_metacall(this, _c, _id, _a);
114  _id -= 4;
115  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
116  if (_id < 4)
117  *reinterpret_cast<int*>(_a[0]) = -1;
118  _id -= 4;
119  }
120  return _id;
121 }
122 QT_END_MOC_NAMESPACE
#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)