00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #include "searchtab.h"
00011 #if !defined(Q_MOC_OUTPUT_REVISION)
00012 #error "The header file 'searchtab.h' doesn't include <QObject>."
00013 #elif Q_MOC_OUTPUT_REVISION != 59
00014 #error "This file was generated using the moc from 4.2.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 static const uint qt_meta_data_SearchTab[] = {
00020
00021
00022 1,
00023 0,
00024 0, 0,
00025 6, 10,
00026 0, 0,
00027 0, 0,
00028
00029
00030 14, 11, 10, 10, 0x05,
00031
00032
00033 81, 10, 10, 10, 0x08,
00034 90, 10, 10, 10, 0x08,
00035 125, 10, 10, 10, 0x08,
00036 139, 10, 10, 10, 0x0a,
00037 160, 10, 10, 10, 0x0a,
00038
00039 0
00040 };
00041
00042 static const char qt_meta_stringdata_SearchTab[] = {
00043 "SearchTab\0\0,,\0"
00044 "documentRequested(PhraseHunter::DocID,PhraseHunter::IdxPos,size_t)\0"
00045 "search()\0emitDocumentRequested(QModelIndex)\0hideWidgets()\0"
00046 "setContextWidth(int)\0setQueryType(QString)\0"
00047 };
00048
00049 const QMetaObject SearchTab::staticMetaObject = {
00050 { &QWidget::staticMetaObject, qt_meta_stringdata_SearchTab,
00051 qt_meta_data_SearchTab, 0 }
00052 };
00053
00054 const QMetaObject *SearchTab::metaObject() const
00055 {
00056 return &staticMetaObject;
00057 }
00058
00059 void *SearchTab::qt_metacast(const char *_clname)
00060 {
00061 if (!_clname) return 0;
00062 if (!strcmp(_clname, qt_meta_stringdata_SearchTab))
00063 return static_cast<void*>(const_cast<SearchTab*>(this));
00064 if (!strcmp(_clname, "Ui::SearchTab"))
00065 return static_cast<Ui::SearchTab*>(const_cast<SearchTab*>(this));
00066 return QWidget::qt_metacast(_clname);
00067 }
00068
00069 int SearchTab::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
00070 {
00071 _id = QWidget::qt_metacall(_c, _id, _a);
00072 if (_id < 0)
00073 return _id;
00074 if (_c == QMetaObject::InvokeMetaMethod) {
00075 switch (_id) {
00076 case 0: documentRequested((*reinterpret_cast< PhraseHunter::DocID(*)>(_a[1])),(*reinterpret_cast< PhraseHunter::IdxPos(*)>(_a[2])),(*reinterpret_cast< size_t(*)>(_a[3]))); break;
00077 case 1: search(); break;
00078 case 2: emitDocumentRequested((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
00079 case 3: hideWidgets(); break;
00080 case 4: setContextWidth((*reinterpret_cast< int(*)>(_a[1]))); break;
00081 case 5: setQueryType((*reinterpret_cast< const QString(*)>(_a[1]))); break;
00082 }
00083 _id -= 6;
00084 }
00085 return _id;
00086 }
00087
00088
00089 void SearchTab::documentRequested(PhraseHunter::DocID _t1, PhraseHunter::IdxPos _t2, size_t _t3)
00090 {
00091 void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
00092 QMetaObject::activate(this, &staticMetaObject, 0, _a);
00093 }