cmake/Tests/Qt4Targets/main_gen_test.cpp

27 lines
333 B
C++
Raw Normal View History

2013-11-03 12:27:13 +02:00
#include <QObject>
#include "myinterface.h"
2018-08-09 18:06:22 +02:00
class MyObject
: public QObject
, MyInterface
2013-11-03 12:27:13 +02:00
{
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"