00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #include "ZoomableImage.h"
00011 #if !defined(Q_MOC_OUTPUT_REVISION)
00012 #error "The header file 'ZoomableImage.h' doesn't include <QObject>."
00013 #elif Q_MOC_OUTPUT_REVISION != 62
00014 #error "This file was generated using the moc from 4.6.1. It"
00015 #error "cannot be used with the include files from this version of Qt."
00016 #error "(The moc has changed too much.)"
00017 #endif
00018
00019 QT_BEGIN_MOC_NAMESPACE
00020 static const uint qt_meta_data_ZoomableImage[] = {
00021
00022
00023 4,
00024 0,
00025 0, 0,
00026 3, 14,
00027 0, 0,
00028 0, 0,
00029 0, 0,
00030 0,
00031 3,
00032
00033
00034 19, 15, 14, 14, 0x05,
00035 33, 15, 14, 14, 0x05,
00036 49, 15, 14, 14, 0x05,
00037
00038 0
00039 };
00040
00041 static const char qt_meta_stringdata_ZoomableImage[] = {
00042 "ZoomableImage\0\0x,y\0zoom(int,int)\0"
00043 "unzoom(int,int)\0move(int,int)\0"
00044 };
00045
00046 const QMetaObject ZoomableImage::staticMetaObject = {
00047 { &QLabel::staticMetaObject, qt_meta_stringdata_ZoomableImage,
00048 qt_meta_data_ZoomableImage, 0 }
00049 };
00050
00051 #ifdef Q_NO_DATA_RELOCATION
00052 const QMetaObject &ZoomableImage::getStaticMetaObject() { return staticMetaObject; }
00053 #endif //Q_NO_DATA_RELOCATION
00054
00055 const QMetaObject *ZoomableImage::metaObject() const
00056 {
00057 return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
00058 }
00059
00060 void *ZoomableImage::qt_metacast(const char *_clname)
00061 {
00062 if (!_clname) return 0;
00063 if (!strcmp(_clname, qt_meta_stringdata_ZoomableImage))
00064 return static_cast<void*>(const_cast< ZoomableImage*>(this));
00065 return QLabel::qt_metacast(_clname);
00066 }
00067
00068 int ZoomableImage::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
00069 {
00070 _id = QLabel::qt_metacall(_c, _id, _a);
00071 if (_id < 0)
00072 return _id;
00073 if (_c == QMetaObject::InvokeMetaMethod) {
00074 switch (_id) {
00075 case 0: zoom((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
00076 case 1: unzoom((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
00077 case 2: move((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
00078 default: ;
00079 }
00080 _id -= 3;
00081 }
00082 return _id;
00083 }
00084
00085
00086 void ZoomableImage::zoom(int _t1, int _t2)
00087 {
00088 void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
00089 QMetaObject::activate(this, &staticMetaObject, 0, _a);
00090 }
00091
00092
00093 void ZoomableImage::unzoom(int _t1, int _t2)
00094 {
00095 void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
00096 QMetaObject::activate(this, &staticMetaObject, 1, _a);
00097 }
00098
00099
00100 void ZoomableImage::move(int _t1, int _t2)
00101 {
00102 void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
00103 QMetaObject::activate(this, &staticMetaObject, 2, _a);
00104 }
00105 QT_END_MOC_NAMESPACE