31 lines
461 B
C++
Raw Normal View History

2016-10-30 18:24:19 +01:00
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
2012-02-18 12:40:36 +02:00
#include "foo.h"
#include <stdio.h>
class FooFoo : public QObject
{
Q_OBJECT
2016-07-09 11:21:54 +02:00
public:
FooFoo()
: QObject()
{
}
public slots:
int getValue() const { return 12; }
2012-02-18 12:40:36 +02:00
};
Foo::Foo()
2016-07-09 11:21:54 +02:00
: QObject()
2012-02-18 12:40:36 +02:00
{
}
void Foo::doFoo()
{
FooFoo ff;
printf("Hello automoc: %d\n", ff.getValue());
}
#include "foo.moc"