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-11-22 22:13:03 +04:00
|
|
|
#include "abc.h"
|
2011-11-22 22:24:39 +04:00
|
|
|
#include "abc_p.h"
|
2011-11-22 22:13:03 +04:00
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
class PrintAbc : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
2016-05-16 17:34:04 +03:00
|
|
|
public:
|
|
|
|
PrintAbc()
|
|
|
|
: QObject()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
public slots:
|
|
|
|
void print() const { printf("abc\n"); }
|
2011-11-22 22:13:03 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
Abc::Abc()
|
2016-05-16 17:34:04 +03:00
|
|
|
: QObject()
|
2011-11-22 22:13:03 +04:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void Abc::doAbc()
|
|
|
|
{
|
|
|
|
PrintAbc pa;
|
|
|
|
pa.print();
|
2011-11-22 22:24:39 +04:00
|
|
|
AbcP abcP;
|
|
|
|
abcP.doAbcP();
|
2011-11-22 22:13:03 +04:00
|
|
|
}
|
|
|
|
|
2011-11-22 22:19:31 +04:00
|
|
|
// check that including the moc file for the cpp file and the header works:
|
2011-11-22 22:13:03 +04:00
|
|
|
#include "abc.moc"
|
|
|
|
#include "moc_abc.cpp"
|
2011-11-22 22:24:39 +04:00
|
|
|
#include "moc_abc_p.cpp"
|
2011-11-22 22:19:31 +04:00
|
|
|
|
|
|
|
// check that including a moc file from another header works:
|
|
|
|
#include "moc_xyz.cpp"
|