cmake/Tests/Qt4Targets/main_gen_test.cpp

25 lines
328 B
C++
Raw Normal View History

2013-11-03 12:27:13 +02:00
#include <QObject>
#include "myinterface.h"
class MyObject : public QObject, MyInterface
{
Q_OBJECT
Q_INTERFACES(MyInterface)
public:
2016-07-09 11:21:54 +02:00
explicit MyObject(QObject* parent = 0)
: QObject(parent)
{
}
2013-11-03 12:27:13 +02:00
};
2016-07-09 11:21:54 +02:00
int main(int argc, char** argv)
2013-11-03 12:27:13 +02:00
{
MyObject mo;
mo.objectName();
return 0;
}
#include "main_gen_test.moc"