/****************************************************************************
** AQSBrush meta object code from reading C++ file 'AQSBrush_p.h'
**
** Created: do. 6. sep. 20:19:02 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 "../../../aqsobjects/AQSBrush_p.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

#include <qvariant.h>
const char *AQSBrush::className() const
{
    return "AQSBrush";
}

QMetaObject *AQSBrush::metaObj = 0;
static QMetaObjectCleanUp cleanUp_AQSBrush( "AQSBrush", &AQSBrush::staticMetaObject );

#ifndef QT_NO_TRANSLATION
QString AQSBrush::tr( const char *s, const char *c )
{
    if ( qApp )
	return qApp->translate( "AQSBrush", s, c, QApplication::DefaultCodec );
    else
	return QString::fromLatin1( s );
}
#ifndef QT_NO_TRANSLATION_UTF8
QString AQSBrush::trUtf8( const char *s, const char *c )
{
    if ( qApp )
	return qApp->translate( "AQSBrush", s, c, QApplication::UnicodeUTF8 );
    else
	return QString::fromUtf8( s );
}
#endif // QT_NO_TRANSLATION_UTF8

#endif // QT_NO_TRANSLATION

QMetaObject* AQSBrush::staticMetaObject()
{
    if ( metaObj )
	return metaObj;
    QMetaObject* parentObject = AQSVoidPtr::staticMetaObject();
    static const QUParameter param_slot_0[] = {
	{ 0, &static_QUType_QVariant, "\x11", QUParameter::Out }
    };
    static const QUMethod slot_0 = {"style", 1, param_slot_0 };
    static const QUParameter param_slot_1[] = {
	{ 0, &static_QUType_enum, 
#ifndef QT_NO_PROPERTIES
	  parentObject->enumerator("BrushStyle", TRUE )
#else
	  0
#endif // QT_NO_PROPERTIES
	  , QUParameter::In }
    };
    static const QUMethod slot_1 = {"setStyle", 1, param_slot_1 };
    static const QUParameter param_slot_2[] = {
	{ 0, &static_QUType_ptr, "QColor", QUParameter::Out }
    };
    static const QUMethod slot_2 = {"color", 1, param_slot_2 };
    static const QUParameter param_slot_3[] = {
	{ 0, &static_QUType_varptr, "\x0a", QUParameter::In }
    };
    static const QUMethod slot_3 = {"setColor", 1, param_slot_3 };
    static const QUParameter param_slot_4[] = {
	{ 0, &static_QUType_ptr, "AQSColor", QUParameter::In }
    };
    static const QUMethod slot_4 = {"setColor", 1, param_slot_4 };
    static const QUParameter param_slot_5[] = {
	{ 0, &static_QUType_ptr, "QPixmap", QUParameter::Out }
    };
    static const QUMethod slot_5 = {"pixmap", 1, param_slot_5 };
    static const QUParameter param_slot_6[] = {
	{ 0, &static_QUType_varptr, "\x06", QUParameter::In }
    };
    static const QUMethod slot_6 = {"setPixmap", 1, param_slot_6 };
    static const QUParameter param_slot_7[] = {
	{ 0, &static_QUType_ptr, "AQSPixmap", QUParameter::In }
    };
    static const QUMethod slot_7 = {"setPixmap", 1, param_slot_7 };
    static const QMetaData slot_tbl[] = {
	{ "style()", &slot_0, QMetaData::Public },
	{ "setStyle(BrushStyle)", &slot_1, QMetaData::Public },
	{ "color()", &slot_2, QMetaData::Public },
	{ "setColor(QColor*)", &slot_3, QMetaData::Public },
	{ "setColor(AQSColor*)", &slot_4, QMetaData::Public },
	{ "pixmap()", &slot_5, QMetaData::Public },
	{ "setPixmap(QPixmap*)", &slot_6, QMetaData::Public },
	{ "setPixmap(AQSPixmap*)", &slot_7, QMetaData::Public }
    };
#ifndef QT_NO_PROPERTIES
    static const QMetaProperty props_tbl[1] = {
 	{ "QBrush","toVariant", 0x7000001, &AQSBrush::metaObj, 0, -1 }
    };
#endif // QT_NO_PROPERTIES
    metaObj = QMetaObject::new_metaobject(
	"AQSBrush", parentObject,
	slot_tbl, 8,
	0, 0,
#ifndef QT_NO_PROPERTIES
	props_tbl, 1,
	0, 0,
#endif // QT_NO_PROPERTIES
	0, 0 );
    cleanUp_AQSBrush.setMetaObject( metaObj );
    return metaObj;
}

void* AQSBrush::qt_cast( const char* clname )
{
    if ( !qstrcmp( clname, "AQSBrush" ) )
	return this;
    return AQSVoidPtr::qt_cast( clname );
}

bool AQSBrush::qt_invoke( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: static_QUType_QVariant.set(_o,QVariant(style())); break;
    case 1: setStyle((BrushStyle)static_QUType_enum.get(_o+1)); break;
    case 2: static_QUType_ptr.set(_o,color()); break;
    case 3: setColor((QColor*)static_QUType_varptr.get(_o+1)); break;
    case 4: setColor((AQSColor*)static_QUType_ptr.get(_o+1)); break;
    case 5: static_QUType_ptr.set(_o,pixmap()); break;
    case 6: setPixmap((QPixmap*)static_QUType_varptr.get(_o+1)); break;
    case 7: setPixmap((AQSPixmap*)static_QUType_ptr.get(_o+1)); break;
    default:
	return AQSVoidPtr::qt_invoke( _id, _o );
    }
    return TRUE;
}

bool AQSBrush::qt_emit( int _id, QUObject* _o )
{
    return AQSVoidPtr::qt_emit(_id,_o);
}
#ifndef QT_NO_PROPERTIES

bool AQSBrush::qt_property( int id, int f, QVariant* v)
{
    switch ( id - staticMetaObject()->propertyOffset() ) {
    case 0: switch( f ) {
	case 1: *v = QVariant( this->toVariant() ); break;
	case 3: case 4: case 5: break;
	default: return FALSE;
    } break;
    default:
	return AQSVoidPtr::qt_property( id, f, v );
    }
    return TRUE;
}

bool AQSBrush::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
#endif // QT_NO_PROPERTIES
