moc_colortools.cpp 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /****************************************************************************
  2. ** Meta object code from reading C++ file 'colortools.h'
  3. **
  4. ** Created: Sun 3. Jun 16:48:55 2012
  5. ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.4)
  6. **
  7. ** WARNING! All changes made in this file will be lost!
  8. *****************************************************************************/
  9. #include "../colortools.h"
  10. #if !defined(Q_MOC_OUTPUT_REVISION)
  11. #error "The header file 'colortools.h' doesn't include <QObject>."
  12. #elif Q_MOC_OUTPUT_REVISION != 62
  13. #error "This file was generated using the moc from 4.7.4. It"
  14. #error "cannot be used with the include files from this version of Qt."
  15. #error "(The moc has changed too much.)"
  16. #endif
  17. QT_BEGIN_MOC_NAMESPACE
  18. static const uint qt_meta_data_ColorTools[] = {
  19. // content:
  20. 5, // revision
  21. 0, // classname
  22. 0, 0, // classinfo
  23. 4, 14, // methods
  24. 0, 0, // properties
  25. 0, 0, // enums/sets
  26. 0, 0, // constructors
  27. 0, // flags
  28. 0, // signalCount
  29. // methods: signature, parameters, type, tag, flags
  30. 24, 18, 12, 11, 0x02,
  31. 36, 18, 12, 11, 0x02,
  32. 55, 18, 12, 11, 0x02,
  33. 79, 73, 12, 11, 0x02,
  34. 0 // eod
  35. };
  36. static const char qt_meta_stringdata_ColorTools[] = {
  37. "ColorTools\0\0qreal\0color\0hue(QColor)\0"
  38. "saturation(QColor)\0lightness(QColor)\0"
  39. "r,g,b\0hue(qreal,qreal,qreal)\0"
  40. };
  41. const QMetaObject ColorTools::staticMetaObject = {
  42. { &QDeclarativeItem::staticMetaObject, qt_meta_stringdata_ColorTools,
  43. qt_meta_data_ColorTools, 0 }
  44. };
  45. #ifdef Q_NO_DATA_RELOCATION
  46. const QMetaObject &ColorTools::getStaticMetaObject() { return staticMetaObject; }
  47. #endif //Q_NO_DATA_RELOCATION
  48. const QMetaObject *ColorTools::metaObject() const
  49. {
  50. return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
  51. }
  52. void *ColorTools::qt_metacast(const char *_clname)
  53. {
  54. if (!_clname) return 0;
  55. if (!strcmp(_clname, qt_meta_stringdata_ColorTools))
  56. return static_cast<void*>(const_cast< ColorTools*>(this));
  57. return QDeclarativeItem::qt_metacast(_clname);
  58. }
  59. int ColorTools::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
  60. {
  61. _id = QDeclarativeItem::qt_metacall(_c, _id, _a);
  62. if (_id < 0)
  63. return _id;
  64. if (_c == QMetaObject::InvokeMetaMethod) {
  65. switch (_id) {
  66. case 0: { qreal _r = hue((*reinterpret_cast< QColor(*)>(_a[1])));
  67. if (_a[0]) *reinterpret_cast< qreal*>(_a[0]) = _r; } break;
  68. case 1: { qreal _r = saturation((*reinterpret_cast< QColor(*)>(_a[1])));
  69. if (_a[0]) *reinterpret_cast< qreal*>(_a[0]) = _r; } break;
  70. case 2: { qreal _r = lightness((*reinterpret_cast< QColor(*)>(_a[1])));
  71. if (_a[0]) *reinterpret_cast< qreal*>(_a[0]) = _r; } break;
  72. case 3: { qreal _r = hue((*reinterpret_cast< qreal(*)>(_a[1])),(*reinterpret_cast< qreal(*)>(_a[2])),(*reinterpret_cast< qreal(*)>(_a[3])));
  73. if (_a[0]) *reinterpret_cast< qreal*>(_a[0]) = _r; } break;
  74. default: ;
  75. }
  76. _id -= 4;
  77. }
  78. return _id;
  79. }
  80. QT_END_MOC_NAMESPACE