Typica is a free program for professional coffee roasters. https://typica.us
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

moc_daterangeselector.cpp 7.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. /****************************************************************************
  2. ** Meta object code from reading C++ file 'daterangeselector.h'
  3. **
  4. ** Created by: The Qt Meta Object Compiler version 63 (Qt 4.8.6)
  5. **
  6. ** WARNING! All changes made in this file will be lost!
  7. *****************************************************************************/
  8. #include "daterangeselector.h"
  9. #if !defined(Q_MOC_OUTPUT_REVISION)
  10. #error "The header file 'daterangeselector.h' doesn't include <QObject>."
  11. #elif Q_MOC_OUTPUT_REVISION != 63
  12. #error "This file was generated using the moc from 4.8.6. It"
  13. #error "cannot be used with the include files from this version of Qt."
  14. #error "(The moc has changed too much.)"
  15. #endif
  16. QT_BEGIN_MOC_NAMESPACE
  17. static const uint qt_meta_data_CustomDateRangePopup[] = {
  18. // content:
  19. 6, // revision
  20. 0, // classname
  21. 0, 0, // classinfo
  22. 3, 14, // methods
  23. 0, 0, // properties
  24. 0, 0, // enums/sets
  25. 0, 0, // constructors
  26. 0, // flags
  27. 1, // signalCount
  28. // signals: signature, parameters, type, tag, flags
  29. 22, 21, 21, 21, 0x05,
  30. // slots: signature, parameters, type, tag, flags
  31. 36, 21, 21, 21, 0x0a,
  32. 49, 21, 21, 21, 0x08,
  33. 0 // eod
  34. };
  35. static const char qt_meta_stringdata_CustomDateRangePopup[] = {
  36. "CustomDateRangePopup\0\0hidingPopup()\0"
  37. "applyRange()\0validateRange()\0"
  38. };
  39. void CustomDateRangePopup::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
  40. {
  41. if (_c == QMetaObject::InvokeMetaMethod) {
  42. Q_ASSERT(staticMetaObject.cast(_o));
  43. CustomDateRangePopup *_t = static_cast<CustomDateRangePopup *>(_o);
  44. switch (_id) {
  45. case 0: _t->hidingPopup(); break;
  46. case 1: _t->applyRange(); break;
  47. case 2: _t->validateRange(); break;
  48. default: ;
  49. }
  50. }
  51. Q_UNUSED(_a);
  52. }
  53. const QMetaObjectExtraData CustomDateRangePopup::staticMetaObjectExtraData = {
  54. 0, qt_static_metacall
  55. };
  56. const QMetaObject CustomDateRangePopup::staticMetaObject = {
  57. { &QWidget::staticMetaObject, qt_meta_stringdata_CustomDateRangePopup,
  58. qt_meta_data_CustomDateRangePopup, &staticMetaObjectExtraData }
  59. };
  60. #ifdef Q_NO_DATA_RELOCATION
  61. const QMetaObject &CustomDateRangePopup::getStaticMetaObject() { return staticMetaObject; }
  62. #endif //Q_NO_DATA_RELOCATION
  63. const QMetaObject *CustomDateRangePopup::metaObject() const
  64. {
  65. return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
  66. }
  67. void *CustomDateRangePopup::qt_metacast(const char *_clname)
  68. {
  69. if (!_clname) return 0;
  70. if (!strcmp(_clname, qt_meta_stringdata_CustomDateRangePopup))
  71. return static_cast<void*>(const_cast< CustomDateRangePopup*>(this));
  72. return QWidget::qt_metacast(_clname);
  73. }
  74. int CustomDateRangePopup::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
  75. {
  76. _id = QWidget::qt_metacall(_c, _id, _a);
  77. if (_id < 0)
  78. return _id;
  79. if (_c == QMetaObject::InvokeMetaMethod) {
  80. if (_id < 3)
  81. qt_static_metacall(this, _c, _id, _a);
  82. _id -= 3;
  83. }
  84. return _id;
  85. }
  86. // SIGNAL 0
  87. void CustomDateRangePopup::hidingPopup()
  88. {
  89. QMetaObject::activate(this, &staticMetaObject, 0, 0);
  90. }
  91. static const uint qt_meta_data_DateRangeSelector[] = {
  92. // content:
  93. 6, // revision
  94. 0, // classname
  95. 0, 0, // classinfo
  96. 8, 14, // methods
  97. 1, 54, // properties
  98. 0, 0, // enums/sets
  99. 0, 0, // constructors
  100. 0, // flags
  101. 1, // signalCount
  102. // signals: signature, parameters, type, tag, flags
  103. 19, 18, 18, 18, 0x05,
  104. // slots: signature, parameters, type, tag, flags
  105. 48, 42, 18, 18, 0x0a,
  106. 87, 69, 18, 18, 0x0a,
  107. 121, 42, 18, 18, 0x0a,
  108. 138, 18, 18, 18, 0x08,
  109. 153, 18, 18, 18, 0x08,
  110. 167, 42, 18, 18, 0x08,
  111. // methods: signature, parameters, type, tag, flags
  112. 193, 18, 184, 18, 0x02,
  113. // properties: name, type, flags
  114. 212, 208, 0x02095103,
  115. 0 // eod
  116. };
  117. static const char qt_meta_stringdata_DateRangeSelector[] = {
  118. "DateRangeSelector\0\0rangeUpdated(QVariant)\0"
  119. "index\0setCurrentIndex(int)\0startDate,endDate\0"
  120. "setLifetimeRange(QString,QString)\0"
  121. "removeIndex(int)\0toggleCustom()\0"
  122. "popupHidden()\0updateRange(int)\0QVariant\0"
  123. "currentRange()\0int\0currentIndex\0"
  124. };
  125. void DateRangeSelector::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
  126. {
  127. if (_c == QMetaObject::InvokeMetaMethod) {
  128. Q_ASSERT(staticMetaObject.cast(_o));
  129. DateRangeSelector *_t = static_cast<DateRangeSelector *>(_o);
  130. switch (_id) {
  131. case 0: _t->rangeUpdated((*reinterpret_cast< QVariant(*)>(_a[1]))); break;
  132. case 1: _t->setCurrentIndex((*reinterpret_cast< int(*)>(_a[1]))); break;
  133. case 2: _t->setLifetimeRange((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< QString(*)>(_a[2]))); break;
  134. case 3: _t->removeIndex((*reinterpret_cast< int(*)>(_a[1]))); break;
  135. case 4: _t->toggleCustom(); break;
  136. case 5: _t->popupHidden(); break;
  137. case 6: _t->updateRange((*reinterpret_cast< int(*)>(_a[1]))); break;
  138. case 7: { QVariant _r = _t->currentRange();
  139. if (_a[0]) *reinterpret_cast< QVariant*>(_a[0]) = _r; } break;
  140. default: ;
  141. }
  142. }
  143. }
  144. const QMetaObjectExtraData DateRangeSelector::staticMetaObjectExtraData = {
  145. 0, qt_static_metacall
  146. };
  147. const QMetaObject DateRangeSelector::staticMetaObject = {
  148. { &QWidget::staticMetaObject, qt_meta_stringdata_DateRangeSelector,
  149. qt_meta_data_DateRangeSelector, &staticMetaObjectExtraData }
  150. };
  151. #ifdef Q_NO_DATA_RELOCATION
  152. const QMetaObject &DateRangeSelector::getStaticMetaObject() { return staticMetaObject; }
  153. #endif //Q_NO_DATA_RELOCATION
  154. const QMetaObject *DateRangeSelector::metaObject() const
  155. {
  156. return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
  157. }
  158. void *DateRangeSelector::qt_metacast(const char *_clname)
  159. {
  160. if (!_clname) return 0;
  161. if (!strcmp(_clname, qt_meta_stringdata_DateRangeSelector))
  162. return static_cast<void*>(const_cast< DateRangeSelector*>(this));
  163. return QWidget::qt_metacast(_clname);
  164. }
  165. int DateRangeSelector::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
  166. {
  167. _id = QWidget::qt_metacall(_c, _id, _a);
  168. if (_id < 0)
  169. return _id;
  170. if (_c == QMetaObject::InvokeMetaMethod) {
  171. if (_id < 8)
  172. qt_static_metacall(this, _c, _id, _a);
  173. _id -= 8;
  174. }
  175. #ifndef QT_NO_PROPERTIES
  176. else if (_c == QMetaObject::ReadProperty) {
  177. void *_v = _a[0];
  178. switch (_id) {
  179. case 0: *reinterpret_cast< int*>(_v) = currentIndex(); break;
  180. }
  181. _id -= 1;
  182. } else if (_c == QMetaObject::WriteProperty) {
  183. void *_v = _a[0];
  184. switch (_id) {
  185. case 0: setCurrentIndex(*reinterpret_cast< int*>(_v)); break;
  186. }
  187. _id -= 1;
  188. } else if (_c == QMetaObject::ResetProperty) {
  189. _id -= 1;
  190. } else if (_c == QMetaObject::QueryPropertyDesignable) {
  191. _id -= 1;
  192. } else if (_c == QMetaObject::QueryPropertyScriptable) {
  193. _id -= 1;
  194. } else if (_c == QMetaObject::QueryPropertyStored) {
  195. _id -= 1;
  196. } else if (_c == QMetaObject::QueryPropertyEditable) {
  197. _id -= 1;
  198. } else if (_c == QMetaObject::QueryPropertyUser) {
  199. _id -= 1;
  200. }
  201. #endif // QT_NO_PROPERTIES
  202. return _id;
  203. }
  204. // SIGNAL 0
  205. void DateRangeSelector::rangeUpdated(QVariant _t1)
  206. {
  207. void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
  208. QMetaObject::activate(this, &staticMetaObject, 0, _a);
  209. }
  210. QT_END_MOC_NAMESPACE