|
问题补充:以下是moc_second.h的内容:
#undef QT_NO_COMPAT
#include "second.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.8b. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
const char *second::className() const
{
return "second";
}
QMetaObject *second::metaObj = 0;
static QMetaObjectCleanUp cleanUp_second( "second", &second::staticMetaObject );
#ifndef QT_NO_TRANSLATION
QString second::tr( const char *s, const char *c )
{
if ( qApp )
return qApp->translate( "second", s, c, QApplication::DefaultCodec );
else
return QString::fromLatin1( s );
}
#ifndef QT_NO_TRANSLATION_UTF8
QString second::trUtf8( const char *s, const char *c )
{
if ( qApp )
return qApp->translate( "second", s, c, QApplication::UnicodeUTF8 );
else
return QString::fromUtf8( s );
}
#endif // QT_NO_TRANSLATION_UTF8
#endif // QT_NO_TRANSLATION
QMetaObject* second::staticMetaObject()
{
if ( metaObj )
return metaObj;
QMetaObject* parentObject = QWidget::staticMetaObject();
static const QUMethod slot_0 = {"btn1_c", 0, 0 };
static const QUMethod slot_1 = {"btn2_c", 0, 0 };
static const QUMethod slot_2 = {"languageChange", 0, 0 };
static const QMetaData slot_tbl[] = {
{ "btn1_c()", &slot_0, QMetaData::Public },
{ "btn2_c()", &slot_1, QMetaData::Public },
{ "languageChange()", &slot_2, QMetaData::Protected }
};
metaObj = QMetaObject::new_metaobject(
"second", parentObject,
slot_tbl, 3,
0, 0,
#ifndef QT_NO_PROPERTIES
0, 0,
0, 0,
#endif // QT_NO_PROPERTIES
0, 0 );
cleanUp_second.setMetaObject( metaObj );
return metaObj;
}
void* second::qt_cast( const char* clname )
{
if ( !qstrcmp( clname, "second" ) )
return this;
return QWidget::qt_cast( clname );
}
bool second::qt_invoke( int _id, QUObject* _o )
{
switch ( _id - staticMetaObject()->slotOffset() ) {
case 0: btn1_c(); break;
case 1: btn2_c(); break;
case 2: languageChange(); break;
default:
return QWidget::qt_invoke( _id, _o );
}
return TRUE;
}
bool second::qt_emit( int _id, QUObject* _o )
{
return QWidget::qt_emit(_id,_o);
}
#ifndef QT_NO_PROPERTIES
bool second::qt_property( int id, int f, QVariant* v)
{
return QWidget::qt_property( id, f, v);
}
bool second::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
#endif // QT_NO_PROPERTIES
|
|