/****************************************************************************
** QCompletionEdit meta object code from reading C++ file 'standard input'
**
** 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 "/tmp/buildd/tde-packaging/arch/tde-devel/tde-tdevelop/src/tdevelop-trinity-14.1.6/kdevdesigner/designer/qcompletionedit.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 *QCompletionEdit::className() const
{
    return "QCompletionEdit";
}

TQMetaObject *QCompletionEdit::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_QCompletionEdit( "QCompletionEdit", &QCompletionEdit::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* QCompletionEdit::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 = TQLineEdit::staticMetaObject();
    static const TQUParameter param_slot_0[] = {
	{ "l", &static_QUType_varptr, "\x04", TQUParameter::In }
    };
    static const TQUMethod slot_0 = {"setCompletionList", 1, param_slot_0 };
    static const TQUParameter param_slot_1[] = {
	{ "add", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_1 = {"setAutoAdd", 1, param_slot_1 };
    static const TQUMethod slot_2 = {"clear", 0, 0 };
    static const TQUParameter param_slot_3[] = {
	{ "entry", &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_3 = {"addCompletionEntry", 1, param_slot_3 };
    static const TQUParameter param_slot_4[] = {
	{ "entry", &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_4 = {"removeCompletionEntry", 1, param_slot_4 };
    static const TQUParameter param_slot_5[] = {
	{ "b", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_5 = {"setCaseSensitive", 1, param_slot_5 };
    static const TQUParameter param_slot_6[] = {
	{ "text", &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_6 = {"textDidChange", 1, param_slot_6 };
    static const TQMetaData slot_tbl[] = {
	{ "setCompletionList(const TQStringList&)", &slot_0, TQMetaData::Public },
	{ "setAutoAdd(bool)", &slot_1, TQMetaData::Public },
	{ "clear()", &slot_2, TQMetaData::Public },
	{ "addCompletionEntry(const TQString&)", &slot_3, TQMetaData::Public },
	{ "removeCompletionEntry(const TQString&)", &slot_4, TQMetaData::Public },
	{ "setCaseSensitive(bool)", &slot_5, TQMetaData::Public },
	{ "textDidChange(const TQString&)", &slot_6, TQMetaData::Private }
    };
    static const TQUParameter param_signal_0[] = {
	{ "text", &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod signal_0 = {"chosen", 1, param_signal_0 };
    static const TQMetaData signal_tbl[] = {
	{ "chosen(const TQString&)", &signal_0, TQMetaData::Public }
    };
#ifndef TQT_NO_PROPERTIES
    static const TQMetaProperty props_tbl[2] = {
 	{ "bool","autoAdd", 0x12000103, &QCompletionEdit::metaObj, 0, -1 },
	{ "bool","caseSensitive", 0x12000103, &QCompletionEdit::metaObj, 0, -1 }
    };
#endif // TQT_NO_PROPERTIES
    metaObj = TQMetaObject::new_metaobject(
	"QCompletionEdit", parentObject,
	slot_tbl, 7,
	signal_tbl, 1,
#ifndef TQT_NO_PROPERTIES
	props_tbl, 2,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_QCompletionEdit.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

// TQ_SIGNAL chosen
void QCompletionEdit::chosen( const TQString& t0 )
{
    activate_signal( staticMetaObject()->signalOffset() + 0, t0 );
}

bool QCompletionEdit::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: setCompletionList((const TQStringList&)*((const TQStringList*)static_QUType_ptr.get(_o+1))); break;
    case 1: setAutoAdd((bool)static_QUType_bool.get(_o+1)); break;
    case 2: clear(); break;
    case 3: addCompletionEntry((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 4: removeCompletionEntry((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 5: setCaseSensitive((bool)static_QUType_bool.get(_o+1)); break;
    case 6: textDidChange((const TQString&)static_QUType_TQString.get(_o+1)); break;
    default:
	return TQLineEdit::tqt_invoke( _id, _o );
    }
    return true;
}

bool QCompletionEdit::tqt_emit( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: chosen((const TQString&)static_QUType_TQString.get(_o+1)); break;
    default:
	return TQLineEdit::tqt_emit(_id,_o);
    }
    return true;
}
#ifndef TQT_NO_PROPERTIES

bool QCompletionEdit::tqt_property( int id, int f, TQVariant* v)
{
    switch ( id - staticMetaObject()->propertyOffset() ) {
    case 0: switch( f ) {
	case 0: setAutoAdd(v->asBool()); break;
	case 1: *v = TQVariant( this->autoAdd() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 1: switch( f ) {
	case 0: setCaseSensitive(v->asBool()); break;
	case 1: *v = TQVariant( this->isCaseSensitive() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    default:
	return TQLineEdit::tqt_property( id, f, v );
    }
    return true;
}

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