moc_test.cpp
上传用户:jiangfa
上传日期:2022-05-14
资源大小:1651k
文件大小:2k
源码类别:

GDI/图象编程

开发平台:

Unix_Linux

  1. /****************************************************************************
  2. ** test meta object code from reading C++ file 'test.h'
  3. **
  4. ** WARNING! All changes made in this file will be lost!
  5. *****************************************************************************/
  6. #undef QT_NO_COMPAT
  7. #include "test.h"
  8. #include <qmetaobject.h>
  9. #include <qapplication.h>
  10. #include <private/qucomextra_p.h>
  11. #if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
  12. #error "This file was generated using the moc from 3.1.1. It"
  13. #error "cannot be used with the include files from this version of Qt."
  14. #error "(The moc has changed too much.)"
  15. #endif
  16. const char *test::className() const
  17. {
  18.     return "test";
  19. }
  20. QMetaObject *test::metaObj = 0;
  21. static QMetaObjectCleanUp cleanUp_test( "test", &test::staticMetaObject );
  22. #ifndef QT_NO_TRANSLATION
  23. QString test::tr( const char *s, const char *c )
  24. {
  25.     if ( qApp )
  26. return qApp->translate( "test", s, c, QApplication::DefaultCodec );
  27.     else
  28. return QString::fromLatin1( s );
  29. }
  30. #ifndef QT_NO_TRANSLATION_UTF8
  31. QString test::trUtf8( const char *s, const char *c )
  32. {
  33.     if ( qApp )
  34. return qApp->translate( "test", s, c, QApplication::UnicodeUTF8 );
  35.     else
  36. return QString::fromUtf8( s );
  37. }
  38. #endif // QT_NO_TRANSLATION_UTF8
  39. #endif // QT_NO_TRANSLATION
  40. QMetaObject* test::staticMetaObject()
  41. {
  42.     if ( metaObj )
  43. return metaObj;
  44.     QMetaObject* parentObject = QDialog::staticMetaObject();
  45.     static const QUMethod slot_0 = {"languageChange", 0, 0 };
  46.     static const QMetaData slot_tbl[] = {
  47. { "languageChange()", &slot_0, QMetaData::Protected }
  48.     };
  49.     metaObj = QMetaObject::new_metaobject(
  50. "test", parentObject,
  51. slot_tbl, 1,
  52. 0, 0,
  53. #ifndef QT_NO_PROPERTIES
  54. 0, 0,
  55. 0, 0,
  56. #endif // QT_NO_PROPERTIES
  57. 0, 0 );
  58.     cleanUp_test.setMetaObject( metaObj );
  59.     return metaObj;
  60. }
  61. void* test::qt_cast( const char* clname )
  62. {
  63.     if ( !qstrcmp( clname, "test" ) )
  64. return this;
  65.     return QDialog::qt_cast( clname );
  66. }
  67. bool test::qt_invoke( int _id, QUObject* _o )
  68. {
  69.     switch ( _id - staticMetaObject()->slotOffset() ) {
  70.     case 0: languageChange(); break;
  71.     default:
  72. return QDialog::qt_invoke( _id, _o );
  73.     }
  74.     return TRUE;
  75. }
  76. bool test::qt_emit( int _id, QUObject* _o )
  77. {
  78.     return QDialog::qt_emit(_id,_o);
  79. }
  80. #ifndef QT_NO_PROPERTIES
  81. bool test::qt_property( int id, int f, QVariant* v)
  82. {
  83.     return QDialog::qt_property( id, f, v);
  84. }
  85. bool test::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
  86. #endif // QT_NO_PROPERTIES