/****************************************************************************
** TQPushButton meta object code from reading C++ file 'ntqpushbutton.h'
**
** Created by: The TQt Meta Object Compiler version 26 (TQt 3.5.0)
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#undef TQT_NO_COMPAT
#include "../../widgets/ntqpushbutton.h"
#include <ntqmetaobject.h>
#include <ntqapplication.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.5.0. It"
#error "cannot be used with the include files from this version of TQt."
#error "(The moc has changed too much.)"
#endif

#include <ntqvariant.h>
const char *TQPushButton::className() const
{
    return "TQPushButton";
}

TQMetaObject *TQPushButton::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQPushButton( "TQPushButton", &TQPushButton::staticMetaObject );

#ifndef TQT_NO_TRANSLATION
TQString TQPushButton::tr( const char *s, const char *c )
{
    if ( tqApp )
	return tqApp->translate( "TQPushButton", s, c, TQApplication::DefaultCodec );
    else
	return TQString::fromLatin1( s );
}
#ifndef TQT_NO_TRANSLATION_UTF8
TQString TQPushButton::trUtf8( const char *s, const char *c )
{
    if ( tqApp )
	return tqApp->translate( "TQPushButton", s, c, TQApplication::UnicodeUTF8 );
    else
	return TQString::fromUtf8( s );
}
#endif // TQT_NO_TRANSLATION_UTF8

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQPushButton::staticMetaObject()
{
    if ( metaObj ) {
	return metaObj;
}
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->lock();
    if ( metaObj ) {
	if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
	return metaObj;
    }
#endif // TQT_THREAD_SUPPORT
    TQMetaObject* parentObject = TQButton::staticMetaObject();
    static const TQUParameter param_slot_0[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_0 = {"setOn", 1, param_slot_0 };
    static const TQUMethod slot_1 = {"popupPressed", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "setOn(bool)", &slot_0, TQMetaData::Public },
	{ "popupPressed()", &slot_1, TQMetaData::Private }
    };
#ifndef TQT_NO_PROPERTIES
    static const TQMetaProperty props_tbl[8] = {
 	{ "bool","autoDefault", 0x12000103, &TQPushButton::metaObj, 0, -1 },
	{ "bool","default", 0x12000103, &TQPushButton::metaObj, 0, -1 },
	{ "bool","menuButton", 0x12001001, &TQPushButton::metaObj, 0, -1 },
	{ "TQIconSet","iconSet", 0xd000103, &TQPushButton::metaObj, 0, -1 },
	{ "bool","toggleButton", 0x1202a302, &TQPushButton::metaObj, 0, -1 },
	{ "bool","on", 0x1202a302, &TQPushButton::metaObj, 0, -1 },
	{ "bool","flat", 0x12000103, &TQPushButton::metaObj, 0, -1 },
	{ "bool","autoMask", 0x12020200, &TQPushButton::metaObj, 0, -1 }
    };
#endif // TQT_NO_PROPERTIES
    metaObj = TQMetaObject::new_metaobject(
	"TQPushButton", parentObject,
	slot_tbl, 2,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	props_tbl, 8,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQPushButton.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

void* TQPushButton::tqt_cast( const char* clname )
{
    if ( !qstrcmp( clname, "TQPushButton" ) )
	return this;
    return TQButton::tqt_cast( clname );
}

bool TQPushButton::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: setOn((bool)static_QUType_bool.get(_o+1)); break;
    case 1: popupPressed(); break;
    default:
	return TQButton::tqt_invoke( _id, _o );
    }
    return true;
}

bool TQPushButton::tqt_emit( int _id, TQUObject* _o )
{
    return TQButton::tqt_emit(_id,_o);
}
#ifndef TQT_NO_PROPERTIES

bool TQPushButton::tqt_property( int id, int f, TQVariant* v)
{
    switch ( id - staticMetaObject()->propertyOffset() ) {
    case 0: switch( f ) {
	case 0: setAutoDefault(v->asBool()); break;
	case 1: *v = TQVariant( this->autoDefault() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 1: switch( f ) {
	case 0: setDefault(v->asBool()); break;
	case 1: *v = TQVariant( this->isDefault() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 2: switch( f ) {
	case 1: *v = TQVariant( this->isMenuButton() ); break;
	case 4: case 5: break;
	default: return false;
    } break;
    case 3: switch( f ) {
	case 0: setIconSet(v->asIconSet()); break;
	case 1: if ( this->iconSet() ) *v = TQVariant( *iconSet() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 4: switch( f ) {
	case 0: setToggleButton(v->asBool()); break;
	case 1: case 3: case 4: case 5: goto resolve;
	default: return false;
    } break;
    case 5: switch( f ) {
	case 0: setOn(v->asBool()); break;
	case 1: case 3: case 4: case 5: goto resolve;
	default: return false;
    } break;
    case 6: switch( f ) {
	case 0: setFlat(v->asBool()); break;
	case 1: *v = TQVariant( this->isFlat() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 7: switch( f ) {
	case 0: case 1: case 5: goto resolve;
	case 3: case 4: break;
	default: return false;
    } break;
    default:
	return TQButton::tqt_property( id, f, v );
    }
    return true;
resolve:
    return TQButton::tqt_property( staticMetaObject()->resolveProperty(id), f, v );
}

bool TQPushButton::tqt_static_property( TQObject* , int , int , TQVariant* ){ return false; }
#endif // TQT_NO_PROPERTIES
