CMake/Tests/QtAutogen/MocOsMacros/TestClass.hpp
Sebastian Holtermann 03dbb62d31 Autogen: Reenable passing compiler implicit include directories to moc
Since commit 5990ecb741 (Compute implicit include directories from
compiler output, 2018-12-07) we now have compiler implicit include
directory computation for gcc and clang.  It should be safe now to pass
these to `moc`.  This patch re-enables passing the compiler implicit
include directories to `moc`, which was disabled due to issue #18669.

Fixes: #18041
Issue: #18669
2019-01-28 08:41:37 -05:00

58 lines
797 B
C++

#ifndef TestClass_hpp
#define TestClass_hpp
#include <QObject>
#include <QtGlobal>
// include qplatformdefs.h for #18669
#include <qplatformdefs.h>
class TestClass : public QObject
{
Q_OBJECT
public Q_SLOTS:
// Method named "open" to test if #18669 is fixed
void open();
// -- Mac
#ifndef Q_OS_MAC
void MacNotDef();
#else
void MacNotDefElse();
#endif
#ifdef Q_OS_MAC
void MacDef();
#else
void MacDefElse();
#endif
// -- Unix
#ifndef Q_OS_UNIX
void UnixNotDef();
#else
void UnixNotDefElse();
#endif
#ifdef Q_OS_UNIX
void UnixDef();
#else
void UnixDefElse();
#endif
// -- Windows
#ifndef Q_OS_WIN
void WindowsNotDef();
#else
void WindowsNotDefElse();
#endif
#ifdef Q_OS_WIN
void WindowsDef();
#else
void WindowsDefElse();
#endif
};
#endif /* TestClass_hpp */