/****************************************************************************
** FLDataTable meta object code from reading C++ file 'FLDataTable.h'
**
** Created: do. 6. sep. 20:19:00 2020
**      by: The Qt MOC ($Id: moc_yacc.cpp 2051 2007-02-21 10:04:20Z chehrlic $)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#undef QT_NO_COMPAT
#include "../../../FLDataTable.h"
#include <qmetaobject.h>
#include <qapplication.h>

#include <private/qucomextra_p.h>
#if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
#error "This file was generated using the moc from 3.3.8. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

const char *FLDataTable::className() const
{
    return "FLDataTable";
}

QMetaObject *FLDataTable::metaObj = 0;
static QMetaObjectCleanUp cleanUp_FLDataTable( "FLDataTable", &FLDataTable::staticMetaObject );

#ifndef QT_NO_TRANSLATION
QString FLDataTable::tr( const char *s, const char *c )
{
    if ( qApp )
	return qApp->translate( "FLDataTable", s, c, QApplication::DefaultCodec );
    else
	return QString::fromLatin1( s );
}
#ifndef QT_NO_TRANSLATION_UTF8
QString FLDataTable::trUtf8( const char *s, const char *c )
{
    if ( qApp )
	return qApp->translate( "FLDataTable", s, c, QApplication::UnicodeUTF8 );
    else
	return QString::fromUtf8( s );
}
#endif // QT_NO_TRANSLATION_UTF8

#endif // QT_NO_TRANSLATION

QMetaObject* FLDataTable::staticMetaObject()
{
    if ( metaObj )
	return metaObj;
    QMetaObject* parentObject = QDataTable::staticMetaObject();
    static const QUMethod slot_0 = {"selectRow", 0, 0 };
    static const QUParameter param_slot_1[] = {
	{ "r", &static_QUType_int, 0, QUParameter::In }
    };
    static const QUMethod slot_1 = {"selectRow", 1, param_slot_1 };
    static const QUParameter param_slot_2[] = {
	{ "r", &static_QUType_int, 0, QUParameter::In },
	{ "c", &static_QUType_int, 0, QUParameter::In }
    };
    static const QUMethod slot_2 = {"selectRow", 2, param_slot_2 };
    static const QUMethod slot_3 = {"setFocus", 0, 0 };
    static const QUMethod slot_4 = {"refresh", 0, 0 };
    static const QUMethod slot_5 = {"ensureRowSelectedVisible", 0, 0 };
    static const QUMethod slot_6 = {"setQuickFocus", 0, 0 };
    static const QUParameter param_slot_7[] = {
	{ "field", &static_QUType_QString, 0, QUParameter::In },
	{ "w", &static_QUType_int, 0, QUParameter::In }
    };
    static const QUMethod slot_7 = {"setColumnWidth", 2, param_slot_7 };
    static const QUParameter param_slot_8[] = {
	{ "on", &static_QUType_bool, 0, QUParameter::In }
    };
    static const QUMethod slot_8 = {"setChecked", 1, param_slot_8 };
    static const QMetaData slot_tbl[] = {
	{ "selectRow()", &slot_0, QMetaData::Public },
	{ "selectRow(int)", &slot_1, QMetaData::Public },
	{ "selectRow(int,int)", &slot_2, QMetaData::Public },
	{ "setFocus()", &slot_3, QMetaData::Public },
	{ "refresh()", &slot_4, QMetaData::Public },
	{ "ensureRowSelectedVisible()", &slot_5, QMetaData::Public },
	{ "setQuickFocus()", &slot_6, QMetaData::Public },
	{ "setColumnWidth(const QString&,int)", &slot_7, QMetaData::Public },
	{ "setChecked(bool)", &slot_8, QMetaData::Protected }
    };
    static const QUMethod signal_0 = {"recordChoosed", 0, 0 };
    static const QUParameter param_signal_1[] = {
	{ "primaryKeyValue", &static_QUType_QVariant, 0, QUParameter::In },
	{ "on", &static_QUType_bool, 0, QUParameter::In }
    };
    static const QUMethod signal_1 = {"primaryKeyToggled", 2, param_signal_1 };
    static const QMetaData signal_tbl[] = {
	{ "recordChoosed()", &signal_0, QMetaData::Protected },
	{ "primaryKeyToggled(const QVariant&,bool)", &signal_1, QMetaData::Protected }
    };
    metaObj = QMetaObject::new_metaobject(
	"FLDataTable", parentObject,
	slot_tbl, 9,
	signal_tbl, 2,
#ifndef QT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // QT_NO_PROPERTIES
	0, 0 );
    cleanUp_FLDataTable.setMetaObject( metaObj );
    return metaObj;
}

void* FLDataTable::qt_cast( const char* clname )
{
    if ( !qstrcmp( clname, "FLDataTable" ) )
	return this;
    return QDataTable::qt_cast( clname );
}

// SIGNAL recordChoosed
void FLDataTable::recordChoosed()
{
    activate_signal( staticMetaObject()->signalOffset() + 0 );
}

#include <qobjectdefs.h>
#include <qsignalslotimp.h>

// SIGNAL primaryKeyToggled
void FLDataTable::primaryKeyToggled( const QVariant& t0, bool t1 )
{
    if ( signalsBlocked() )
	return;
    QConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 1 );
    if ( !clist )
	return;
    QUObject o[3];
    static_QUType_QVariant.set(o+1,t0);
    static_QUType_bool.set(o+2,t1);
    activate_signal( clist, o );
}

bool FLDataTable::qt_invoke( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: selectRow(); break;
    case 1: selectRow((int)static_QUType_int.get(_o+1)); break;
    case 2: selectRow((int)static_QUType_int.get(_o+1),(int)static_QUType_int.get(_o+2)); break;
    case 3: setFocus(); break;
    case 4: refresh(); break;
    case 5: ensureRowSelectedVisible(); break;
    case 6: setQuickFocus(); break;
    case 7: setColumnWidth((const QString&)static_QUType_QString.get(_o+1),(int)static_QUType_int.get(_o+2)); break;
    case 8: setChecked((bool)static_QUType_bool.get(_o+1)); break;
    default:
	return QDataTable::qt_invoke( _id, _o );
    }
    return TRUE;
}

bool FLDataTable::qt_emit( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: recordChoosed(); break;
    case 1: primaryKeyToggled((const QVariant&)static_QUType_QVariant.get(_o+1),(bool)static_QUType_bool.get(_o+2)); break;
    default:
	return QDataTable::qt_emit(_id,_o);
    }
    return TRUE;
}
#ifndef QT_NO_PROPERTIES

bool FLDataTable::qt_property( int id, int f, QVariant* v)
{
    return QDataTable::qt_property( id, f, v);
}

bool FLDataTable::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
#endif // QT_NO_PROPERTIES
