2016-09-27 22:01:08 +03:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
2011-10-22 21:38:39 +04:00
|
|
|
#include "foo.h"
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
class FooFoo : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
2016-05-16 17:34:04 +03:00
|
|
|
public:
|
|
|
|
FooFoo()
|
|
|
|
: QObject()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
public slots:
|
|
|
|
int getValue() const { return 12; }
|
2011-10-22 21:38:39 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
Foo::Foo()
|
2016-05-16 17:34:04 +03:00
|
|
|
: QObject()
|
2011-10-22 21:38:39 +04:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void Foo::doFoo()
|
|
|
|
{
|
|
|
|
FooFoo ff;
|
|
|
|
printf("Hello automoc: %d\n", ff.getValue());
|
|
|
|
}
|
|
|
|
|
|
|
|
#include "foo.moc"
|