You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
664 B
53 lines
664 B
6 years ago
|
#ifndef TestClass_hpp
|
||
|
#define TestClass_hpp
|
||
|
|
||
|
#include <QObject>
|
||
|
#include <QtGlobal>
|
||
|
|
||
|
class TestClass : public QObject
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
public Q_SLOTS:
|
||
|
|
||
|
// -- 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 */
|