2013-05-15 21:17:41 +04:00
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
#ifdef QT_GUI_LIB
|
|
|
|
#include <QTextDocument>
|
|
|
|
|
|
|
|
class SomeDocument : public QTextDocument
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
Q_SIGNALS:
|
|
|
|
void someSig();
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef QT_CORE_LIB
|
|
|
|
class SomeObject : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
Q_SIGNALS:
|
|
|
|
void someSig();
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
2016-05-16 17:34:04 +03:00
|
|
|
int main(int argc, char** argv)
|
2013-05-15 21:17:41 +04:00
|
|
|
{
|
|
|
|
#ifdef QT_CORE_LIB
|
|
|
|
QMetaObject sosmo = SomeObject::staticMetaObject;
|
|
|
|
#endif
|
|
|
|
#ifdef QT_GUI_LIB
|
|
|
|
QMetaObject sdsmo = SomeDocument::staticMetaObject;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#include "defines_test.moc"
|