/****************************************************************************
** TQValidator meta object code from reading C++ file 'ntqvalidator.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/ntqvalidator.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

const char *TQValidator::className() const
{
    return "TQValidator";
}

TQMetaObject *TQValidator::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQValidator( "TQValidator", &TQValidator::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQValidator::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 = TQObject::staticMetaObject();
    metaObj = TQMetaObject::new_metaobject(
	"TQValidator", parentObject,
	0, 0,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQValidator.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool TQValidator::tqt_invoke( int _id, TQUObject* _o )
{
    return TQObject::tqt_invoke(_id,_o);
}

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

bool TQValidator::tqt_property( int id, int f, TQVariant* v)
{
    return TQObject::tqt_property( id, f, v);
}

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


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

TQMetaObject *TQIntValidator::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQIntValidator( "TQIntValidator", &TQIntValidator::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQIntValidator::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 = TQValidator::staticMetaObject();
#ifndef TQT_NO_PROPERTIES
    static const TQMetaProperty props_tbl[2] = {
 	{ "int","bottom", 0x10000103, &TQIntValidator::metaObj, 0, -1 },
	{ "int","top", 0x10000103, &TQIntValidator::metaObj, 0, -1 }
    };
#endif // TQT_NO_PROPERTIES
    metaObj = TQMetaObject::new_metaobject(
	"TQIntValidator", parentObject,
	0, 0,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	props_tbl, 2,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQIntValidator.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool TQIntValidator::tqt_invoke( int _id, TQUObject* _o )
{
    return TQValidator::tqt_invoke(_id,_o);
}

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

bool TQIntValidator::tqt_property( int id, int f, TQVariant* v)
{
    switch ( id - staticMetaObject()->propertyOffset() ) {
    case 0: switch( f ) {
	case 0: setBottom(v->asInt()); break;
	case 1: *v = TQVariant( this->bottom() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 1: switch( f ) {
	case 0: setTop(v->asInt()); break;
	case 1: *v = TQVariant( this->top() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    default:
	return TQValidator::tqt_property( id, f, v );
    }
    return true;
}

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


const char *TQDoubleValidator::className() const
{
    return "TQDoubleValidator";
}

TQMetaObject *TQDoubleValidator::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQDoubleValidator( "TQDoubleValidator", &TQDoubleValidator::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQDoubleValidator::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 = TQValidator::staticMetaObject();
#ifndef TQT_NO_PROPERTIES
    static const TQMetaProperty props_tbl[3] = {
 	{ "double","bottom", 0x13000103, &TQDoubleValidator::metaObj, 0, -1 },
	{ "double","top", 0x13000103, &TQDoubleValidator::metaObj, 0, -1 },
	{ "int","decimals", 0x10000103, &TQDoubleValidator::metaObj, 0, -1 }
    };
#endif // TQT_NO_PROPERTIES
    metaObj = TQMetaObject::new_metaobject(
	"TQDoubleValidator", parentObject,
	0, 0,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	props_tbl, 3,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQDoubleValidator.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool TQDoubleValidator::tqt_invoke( int _id, TQUObject* _o )
{
    return TQValidator::tqt_invoke(_id,_o);
}

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

bool TQDoubleValidator::tqt_property( int id, int f, TQVariant* v)
{
    switch ( id - staticMetaObject()->propertyOffset() ) {
    case 0: switch( f ) {
	case 0: setBottom(v->asDouble()); break;
	case 1: *v = TQVariant( this->bottom() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 1: switch( f ) {
	case 0: setTop(v->asDouble()); break;
	case 1: *v = TQVariant( this->top() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 2: switch( f ) {
	case 0: setDecimals(v->asInt()); break;
	case 1: *v = TQVariant( this->decimals() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    default:
	return TQValidator::tqt_property( id, f, v );
    }
    return true;
}

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


const char *TQRegExpValidator::className() const
{
    return "TQRegExpValidator";
}

TQMetaObject *TQRegExpValidator::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQRegExpValidator( "TQRegExpValidator", &TQRegExpValidator::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQRegExpValidator::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 = TQValidator::staticMetaObject();
    metaObj = TQMetaObject::new_metaobject(
	"TQRegExpValidator", parentObject,
	0, 0,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQRegExpValidator.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool TQRegExpValidator::tqt_invoke( int _id, TQUObject* _o )
{
    return TQValidator::tqt_invoke(_id,_o);
}

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

bool TQRegExpValidator::tqt_property( int id, int f, TQVariant* v)
{
    return TQValidator::tqt_property( id, f, v);
}

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