/****************************************************************************
** TQListBox meta object code from reading C++ file 'ntqlistbox.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/ntqlistbox.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 *TQListBox::className() const
{
    return "TQListBox";
}

TQMetaObject *TQListBox::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQListBox( "TQListBox", &TQListBox::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQListBox::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 = TQScrollView::staticMetaObject();
#ifndef TQT_NO_PROPERTIES
    static const TQMetaEnum::Item enum_0[] = {
	{ "Single",  (int) TQListBox::Single },
	{ "Multi",  (int) TQListBox::Multi },
	{ "Extended",  (int) TQListBox::Extended },
	{ "NoSelection",  (int) TQListBox::NoSelection }
    };
    static const TQMetaEnum::Item enum_1[] = {
	{ "FixedNumber",  (int) TQListBox::FixedNumber },
	{ "FitToWidth",  (int) TQListBox::FitToWidth },
	{ "FitToHeight",  (int) TQListBox::FitToHeight },
	{ "Variable",  (int) TQListBox::Variable }
    };
    static const TQMetaEnum enum_tbl[] = {
	{ "SelectionMode", 4, enum_0, false },
	{ "LayoutMode", 4, enum_1, false }
    };
#endif // TQT_NO_PROPERTIES
    static const TQUMethod slot_0 = {"clear", 0, 0 };
    static const TQUMethod slot_1 = {"ensureCurrentVisible", 0, 0 };
    static const TQUMethod slot_2 = {"clearSelection", 0, 0 };
    static const TQUParameter param_slot_3[] = {
	{ "select", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_3 = {"selectAll", 1, param_slot_3 };
    static const TQUMethod slot_4 = {"invertSelection", 0, 0 };
    static const TQUMethod slot_5 = {"clearInputString", 0, 0 };
    static const TQUMethod slot_6 = {"refreshSlot", 0, 0 };
    static const TQUMethod slot_7 = {"doAutoScroll", 0, 0 };
    static const TQUMethod slot_8 = {"adjustItems", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "clear()", &slot_0, TQMetaData::Public },
	{ "ensureCurrentVisible()", &slot_1, TQMetaData::Public },
	{ "clearSelection()", &slot_2, TQMetaData::Public },
	{ "selectAll(bool)", &slot_3, TQMetaData::Public },
	{ "invertSelection()", &slot_4, TQMetaData::Public },
	{ "clearInputString()", &slot_5, TQMetaData::Protected },
	{ "refreshSlot()", &slot_6, TQMetaData::Private },
	{ "doAutoScroll()", &slot_7, TQMetaData::Private },
	{ "adjustItems()", &slot_8, TQMetaData::Private }
    };
    static const TQUParameter param_signal_0[] = {
	{ "index", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod signal_0 = {"highlighted", 1, param_signal_0 };
    static const TQUParameter param_signal_1[] = {
	{ "index", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod signal_1 = {"selected", 1, param_signal_1 };
    static const TQUParameter param_signal_2[] = {
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod signal_2 = {"highlighted", 1, param_signal_2 };
    static const TQUParameter param_signal_3[] = {
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod signal_3 = {"selected", 1, param_signal_3 };
    static const TQUParameter param_signal_4[] = {
	{ 0, &static_QUType_ptr, "TQListBoxItem", TQUParameter::In }
    };
    static const TQUMethod signal_4 = {"highlighted", 1, param_signal_4 };
    static const TQUParameter param_signal_5[] = {
	{ 0, &static_QUType_ptr, "TQListBoxItem", TQUParameter::In }
    };
    static const TQUMethod signal_5 = {"selected", 1, param_signal_5 };
    static const TQUMethod signal_6 = {"selectionChanged", 0, 0 };
    static const TQUParameter param_signal_7[] = {
	{ 0, &static_QUType_ptr, "TQListBoxItem", TQUParameter::In }
    };
    static const TQUMethod signal_7 = {"selectionChanged", 1, param_signal_7 };
    static const TQUParameter param_signal_8[] = {
	{ 0, &static_QUType_ptr, "TQListBoxItem", TQUParameter::In }
    };
    static const TQUMethod signal_8 = {"currentChanged", 1, param_signal_8 };
    static const TQUParameter param_signal_9[] = {
	{ 0, &static_QUType_ptr, "TQListBoxItem", TQUParameter::In }
    };
    static const TQUMethod signal_9 = {"clicked", 1, param_signal_9 };
    static const TQUParameter param_signal_10[] = {
	{ 0, &static_QUType_ptr, "TQListBoxItem", TQUParameter::In },
	{ 0, &static_QUType_varptr, "\x0e", TQUParameter::In }
    };
    static const TQUMethod signal_10 = {"clicked", 2, param_signal_10 };
    static const TQUParameter param_signal_11[] = {
	{ 0, &static_QUType_ptr, "TQListBoxItem", TQUParameter::In }
    };
    static const TQUMethod signal_11 = {"pressed", 1, param_signal_11 };
    static const TQUParameter param_signal_12[] = {
	{ 0, &static_QUType_ptr, "TQListBoxItem", TQUParameter::In },
	{ 0, &static_QUType_varptr, "\x0e", TQUParameter::In }
    };
    static const TQUMethod signal_12 = {"pressed", 2, param_signal_12 };
    static const TQUParameter param_signal_13[] = {
	{ 0, &static_QUType_ptr, "TQListBoxItem", TQUParameter::In }
    };
    static const TQUMethod signal_13 = {"doubleClicked", 1, param_signal_13 };
    static const TQUParameter param_signal_14[] = {
	{ 0, &static_QUType_ptr, "TQListBoxItem", TQUParameter::In }
    };
    static const TQUMethod signal_14 = {"returnPressed", 1, param_signal_14 };
    static const TQUParameter param_signal_15[] = {
	{ 0, &static_QUType_ptr, "TQListBoxItem", TQUParameter::In },
	{ 0, &static_QUType_varptr, "\x0e", TQUParameter::In }
    };
    static const TQUMethod signal_15 = {"rightButtonClicked", 2, param_signal_15 };
    static const TQUParameter param_signal_16[] = {
	{ 0, &static_QUType_ptr, "TQListBoxItem", TQUParameter::In },
	{ 0, &static_QUType_varptr, "\x0e", TQUParameter::In }
    };
    static const TQUMethod signal_16 = {"rightButtonPressed", 2, param_signal_16 };
    static const TQUParameter param_signal_17[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In },
	{ 0, &static_QUType_ptr, "TQListBoxItem", TQUParameter::In },
	{ 0, &static_QUType_varptr, "\x0e", TQUParameter::In }
    };
    static const TQUMethod signal_17 = {"mouseButtonPressed", 3, param_signal_17 };
    static const TQUParameter param_signal_18[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In },
	{ 0, &static_QUType_ptr, "TQListBoxItem", TQUParameter::In },
	{ 0, &static_QUType_varptr, "\x0e", TQUParameter::In }
    };
    static const TQUMethod signal_18 = {"mouseButtonClicked", 3, param_signal_18 };
    static const TQUParameter param_signal_19[] = {
	{ 0, &static_QUType_ptr, "TQListBoxItem", TQUParameter::In },
	{ 0, &static_QUType_varptr, "\x0e", TQUParameter::In }
    };
    static const TQUMethod signal_19 = {"contextMenuRequested", 2, param_signal_19 };
    static const TQUParameter param_signal_20[] = {
	{ "item", &static_QUType_ptr, "TQListBoxItem", TQUParameter::In }
    };
    static const TQUMethod signal_20 = {"onItem", 1, param_signal_20 };
    static const TQUMethod signal_21 = {"onViewport", 0, 0 };
    static const TQMetaData signal_tbl[] = {
	{ "highlighted(int)", &signal_0, TQMetaData::Public },
	{ "selected(int)", &signal_1, TQMetaData::Public },
	{ "highlighted(const TQString&)", &signal_2, TQMetaData::Public },
	{ "selected(const TQString&)", &signal_3, TQMetaData::Public },
	{ "highlighted(TQListBoxItem*)", &signal_4, TQMetaData::Public },
	{ "selected(TQListBoxItem*)", &signal_5, TQMetaData::Public },
	{ "selectionChanged()", &signal_6, TQMetaData::Public },
	{ "selectionChanged(TQListBoxItem*)", &signal_7, TQMetaData::Public },
	{ "currentChanged(TQListBoxItem*)", &signal_8, TQMetaData::Public },
	{ "clicked(TQListBoxItem*)", &signal_9, TQMetaData::Public },
	{ "clicked(TQListBoxItem*,const TQPoint&)", &signal_10, TQMetaData::Public },
	{ "pressed(TQListBoxItem*)", &signal_11, TQMetaData::Public },
	{ "pressed(TQListBoxItem*,const TQPoint&)", &signal_12, TQMetaData::Public },
	{ "doubleClicked(TQListBoxItem*)", &signal_13, TQMetaData::Public },
	{ "returnPressed(TQListBoxItem*)", &signal_14, TQMetaData::Public },
	{ "rightButtonClicked(TQListBoxItem*,const TQPoint&)", &signal_15, TQMetaData::Public },
	{ "rightButtonPressed(TQListBoxItem*,const TQPoint&)", &signal_16, TQMetaData::Public },
	{ "mouseButtonPressed(int,TQListBoxItem*,const TQPoint&)", &signal_17, TQMetaData::Public },
	{ "mouseButtonClicked(int,TQListBoxItem*,const TQPoint&)", &signal_18, TQMetaData::Public },
	{ "contextMenuRequested(TQListBoxItem*,const TQPoint&)", &signal_19, TQMetaData::Public },
	{ "onItem(TQListBoxItem*)", &signal_20, TQMetaData::Public },
	{ "onViewport()", &signal_21, TQMetaData::Public }
    };
#ifndef TQT_NO_PROPERTIES
    static const TQMetaProperty props_tbl[13] = {
 	{ "uint","count", 0x11000001, &TQListBox::metaObj, 0, -1 },
	{ "int","numItemsVisible", 0x10000001, &TQListBox::metaObj, 0, -1 },
	{ "int","currentItem", 0x10000103, &TQListBox::metaObj, 0, -1 },
	{ "TQString","currentText", 0x3000001, &TQListBox::metaObj, 0, -1 },
	{ "int","topItem", 0x10001103, &TQListBox::metaObj, 0, -1 },
	{ "SelectionMode","selectionMode", 0x0107, &TQListBox::metaObj, &enum_tbl[0], -1 },
	{ "bool","multiSelection", 0x12001103, &TQListBox::metaObj, 0, -1 },
	{ "LayoutMode","columnMode", 0x0107, &TQListBox::metaObj, &enum_tbl[1], -1 },
	{ "LayoutMode","rowMode", 0x0107, &TQListBox::metaObj, &enum_tbl[1], -1 },
	{ "int","numColumns", 0x10000001, &TQListBox::metaObj, 0, -1 },
	{ "int","numRows", 0x10000001, &TQListBox::metaObj, 0, -1 },
	{ "bool","variableWidth", 0x12000103, &TQListBox::metaObj, 0, -1 },
	{ "bool","variableHeight", 0x12000103, &TQListBox::metaObj, 0, -1 }
    };
#endif // TQT_NO_PROPERTIES
    metaObj = TQMetaObject::new_metaobject(
	"TQListBox", parentObject,
	slot_tbl, 9,
	signal_tbl, 22,
#ifndef TQT_NO_PROPERTIES
	props_tbl, 13,
	enum_tbl, 2,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQListBox.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

// TQ_SIGNAL highlighted
void TQListBox::highlighted( int t0 )
{
    activate_signal( staticMetaObject()->signalOffset() + 0, t0 );
}

// TQ_SIGNAL selected
void TQListBox::selected( int t0 )
{
    activate_signal( staticMetaObject()->signalOffset() + 1, t0 );
}

// TQ_SIGNAL highlighted
void TQListBox::highlighted( const TQString& t0 )
{
    activate_signal( staticMetaObject()->signalOffset() + 2, t0 );
}

// TQ_SIGNAL selected
void TQListBox::selected( const TQString& t0 )
{
    activate_signal( staticMetaObject()->signalOffset() + 3, t0 );
}

#include <ntqobjectdefs.h>
#include <ntqsignalslotimp.h>

// TQ_SIGNAL highlighted
void TQListBox::highlighted( TQListBoxItem* t0 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 4 );
    if ( !clist )
	return;
    TQUObject o[2];
    static_QUType_ptr.set(o+1,t0);
    o[1].isLastObject = true;
    activate_signal( clist, o );
}

// TQ_SIGNAL selected
void TQListBox::selected( TQListBoxItem* t0 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 5 );
    if ( !clist )
	return;
    TQUObject o[2];
    static_QUType_ptr.set(o+1,t0);
    o[1].isLastObject = true;
    activate_signal( clist, o );
}

// TQ_SIGNAL selectionChanged
void TQListBox::selectionChanged()
{
    activate_signal( staticMetaObject()->signalOffset() + 6 );
}

// TQ_SIGNAL selectionChanged
void TQListBox::selectionChanged( TQListBoxItem* t0 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 7 );
    if ( !clist )
	return;
    TQUObject o[2];
    static_QUType_ptr.set(o+1,t0);
    o[1].isLastObject = true;
    activate_signal( clist, o );
}

// TQ_SIGNAL currentChanged
void TQListBox::currentChanged( TQListBoxItem* t0 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 8 );
    if ( !clist )
	return;
    TQUObject o[2];
    static_QUType_ptr.set(o+1,t0);
    o[1].isLastObject = true;
    activate_signal( clist, o );
}

// TQ_SIGNAL clicked
void TQListBox::clicked( TQListBoxItem* t0 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 9 );
    if ( !clist )
	return;
    TQUObject o[2];
    static_QUType_ptr.set(o+1,t0);
    o[1].isLastObject = true;
    activate_signal( clist, o );
}

// TQ_SIGNAL clicked
void TQListBox::clicked( TQListBoxItem* t0, const TQPoint& t1 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 10 );
    if ( !clist )
	return;
    TQUObject o[3];
    static_QUType_ptr.set(o+1,t0);
    static_QUType_varptr.set(o+2,&t1);
    o[2].isLastObject = true;
    activate_signal( clist, o );
}

// TQ_SIGNAL pressed
void TQListBox::pressed( TQListBoxItem* t0 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 11 );
    if ( !clist )
	return;
    TQUObject o[2];
    static_QUType_ptr.set(o+1,t0);
    o[1].isLastObject = true;
    activate_signal( clist, o );
}

// TQ_SIGNAL pressed
void TQListBox::pressed( TQListBoxItem* t0, const TQPoint& t1 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 12 );
    if ( !clist )
	return;
    TQUObject o[3];
    static_QUType_ptr.set(o+1,t0);
    static_QUType_varptr.set(o+2,&t1);
    o[2].isLastObject = true;
    activate_signal( clist, o );
}

// TQ_SIGNAL doubleClicked
void TQListBox::doubleClicked( TQListBoxItem* t0 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 13 );
    if ( !clist )
	return;
    TQUObject o[2];
    static_QUType_ptr.set(o+1,t0);
    o[1].isLastObject = true;
    activate_signal( clist, o );
}

// TQ_SIGNAL returnPressed
void TQListBox::returnPressed( TQListBoxItem* t0 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 14 );
    if ( !clist )
	return;
    TQUObject o[2];
    static_QUType_ptr.set(o+1,t0);
    o[1].isLastObject = true;
    activate_signal( clist, o );
}

// TQ_SIGNAL rightButtonClicked
void TQListBox::rightButtonClicked( TQListBoxItem* t0, const TQPoint& t1 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 15 );
    if ( !clist )
	return;
    TQUObject o[3];
    static_QUType_ptr.set(o+1,t0);
    static_QUType_varptr.set(o+2,&t1);
    o[2].isLastObject = true;
    activate_signal( clist, o );
}

// TQ_SIGNAL rightButtonPressed
void TQListBox::rightButtonPressed( TQListBoxItem* t0, const TQPoint& t1 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 16 );
    if ( !clist )
	return;
    TQUObject o[3];
    static_QUType_ptr.set(o+1,t0);
    static_QUType_varptr.set(o+2,&t1);
    o[2].isLastObject = true;
    activate_signal( clist, o );
}

// TQ_SIGNAL mouseButtonPressed
void TQListBox::mouseButtonPressed( int t0, TQListBoxItem* t1, const TQPoint& t2 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 17 );
    if ( !clist )
	return;
    TQUObject o[4];
    static_QUType_int.set(o+1,t0);
    static_QUType_ptr.set(o+2,t1);
    static_QUType_varptr.set(o+3,&t2);
    o[3].isLastObject = true;
    activate_signal( clist, o );
}

// TQ_SIGNAL mouseButtonClicked
void TQListBox::mouseButtonClicked( int t0, TQListBoxItem* t1, const TQPoint& t2 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 18 );
    if ( !clist )
	return;
    TQUObject o[4];
    static_QUType_int.set(o+1,t0);
    static_QUType_ptr.set(o+2,t1);
    static_QUType_varptr.set(o+3,&t2);
    o[3].isLastObject = true;
    activate_signal( clist, o );
}

// TQ_SIGNAL contextMenuRequested
void TQListBox::contextMenuRequested( TQListBoxItem* t0, const TQPoint& t1 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 19 );
    if ( !clist )
	return;
    TQUObject o[3];
    static_QUType_ptr.set(o+1,t0);
    static_QUType_varptr.set(o+2,&t1);
    o[2].isLastObject = true;
    activate_signal( clist, o );
}

// TQ_SIGNAL onItem
void TQListBox::onItem( TQListBoxItem* t0 )
{
    if ( signalsBlocked() )
	return;
    TQConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 20 );
    if ( !clist )
	return;
    TQUObject o[2];
    static_QUType_ptr.set(o+1,t0);
    o[1].isLastObject = true;
    activate_signal( clist, o );
}

// TQ_SIGNAL onViewport
void TQListBox::onViewport()
{
    activate_signal( staticMetaObject()->signalOffset() + 21 );
}

bool TQListBox::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: clear(); break;
    case 1: ensureCurrentVisible(); break;
    case 2: clearSelection(); break;
    case 3: selectAll((bool)static_QUType_bool.get(_o+1)); break;
    case 4: invertSelection(); break;
    case 5: clearInputString(); break;
    case 6: refreshSlot(); break;
    case 7: doAutoScroll(); break;
    case 8: adjustItems(); break;
    default:
	return TQScrollView::tqt_invoke( _id, _o );
    }
    return true;
}

bool TQListBox::tqt_emit( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: highlighted((int)static_QUType_int.get(_o+1)); break;
    case 1: selected((int)static_QUType_int.get(_o+1)); break;
    case 2: highlighted((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 3: selected((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 4: highlighted((TQListBoxItem*)static_QUType_ptr.get(_o+1)); break;
    case 5: selected((TQListBoxItem*)static_QUType_ptr.get(_o+1)); break;
    case 6: selectionChanged(); break;
    case 7: selectionChanged((TQListBoxItem*)static_QUType_ptr.get(_o+1)); break;
    case 8: currentChanged((TQListBoxItem*)static_QUType_ptr.get(_o+1)); break;
    case 9: clicked((TQListBoxItem*)static_QUType_ptr.get(_o+1)); break;
    case 10: clicked((TQListBoxItem*)static_QUType_ptr.get(_o+1),(const TQPoint&)*((const TQPoint*)static_QUType_ptr.get(_o+2))); break;
    case 11: pressed((TQListBoxItem*)static_QUType_ptr.get(_o+1)); break;
    case 12: pressed((TQListBoxItem*)static_QUType_ptr.get(_o+1),(const TQPoint&)*((const TQPoint*)static_QUType_ptr.get(_o+2))); break;
    case 13: doubleClicked((TQListBoxItem*)static_QUType_ptr.get(_o+1)); break;
    case 14: returnPressed((TQListBoxItem*)static_QUType_ptr.get(_o+1)); break;
    case 15: rightButtonClicked((TQListBoxItem*)static_QUType_ptr.get(_o+1),(const TQPoint&)*((const TQPoint*)static_QUType_ptr.get(_o+2))); break;
    case 16: rightButtonPressed((TQListBoxItem*)static_QUType_ptr.get(_o+1),(const TQPoint&)*((const TQPoint*)static_QUType_ptr.get(_o+2))); break;
    case 17: mouseButtonPressed((int)static_QUType_int.get(_o+1),(TQListBoxItem*)static_QUType_ptr.get(_o+2),(const TQPoint&)*((const TQPoint*)static_QUType_ptr.get(_o+3))); break;
    case 18: mouseButtonClicked((int)static_QUType_int.get(_o+1),(TQListBoxItem*)static_QUType_ptr.get(_o+2),(const TQPoint&)*((const TQPoint*)static_QUType_ptr.get(_o+3))); break;
    case 19: contextMenuRequested((TQListBoxItem*)static_QUType_ptr.get(_o+1),(const TQPoint&)*((const TQPoint*)static_QUType_ptr.get(_o+2))); break;
    case 20: onItem((TQListBoxItem*)static_QUType_ptr.get(_o+1)); break;
    case 21: onViewport(); break;
    default:
	return TQScrollView::tqt_emit(_id,_o);
    }
    return true;
}
#ifndef TQT_NO_PROPERTIES

bool TQListBox::tqt_property( int id, int f, TQVariant* v)
{
    switch ( id - staticMetaObject()->propertyOffset() ) {
    case 0: switch( f ) {
	case 1: *v = TQVariant( this->count() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 1: switch( f ) {
	case 1: *v = TQVariant( this->numItemsVisible() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 2: switch( f ) {
	case 0: setCurrentItem(v->asInt()); break;
	case 1: *v = TQVariant( this->currentItem() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 3: switch( f ) {
	case 1: *v = TQVariant( this->currentText() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 4: switch( f ) {
	case 0: setTopItem(v->asInt()); break;
	case 1: *v = TQVariant( this->topItem() ); break;
	case 4: case 5: break;
	default: return false;
    } break;
    case 5: switch( f ) {
	case 0: setSelectionMode((SelectionMode&)v->asInt()); break;
	case 1: *v = TQVariant( (int)this->selectionMode() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 6: switch( f ) {
	case 0: setMultiSelection(v->asBool()); break;
	case 1: *v = TQVariant( this->isMultiSelection() ); break;
	case 4: case 5: break;
	default: return false;
    } break;
    case 7: switch( f ) {
	case 0: setColumnMode((LayoutMode&)v->asInt()); break;
	case 1: *v = TQVariant( (int)this->columnMode() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 8: switch( f ) {
	case 0: setRowMode((LayoutMode&)v->asInt()); break;
	case 1: *v = TQVariant( (int)this->rowMode() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 9: switch( f ) {
	case 1: *v = TQVariant( this->numColumns() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 10: switch( f ) {
	case 1: *v = TQVariant( this->numRows() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 11: switch( f ) {
	case 0: setVariableWidth(v->asBool()); break;
	case 1: *v = TQVariant( this->variableWidth() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 12: switch( f ) {
	case 0: setVariableHeight(v->asBool()); break;
	case 1: *v = TQVariant( this->variableHeight() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    default:
	return TQScrollView::tqt_property( id, f, v );
    }
    return true;
}

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