summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutogen/MocOsMacros/TestClass.hpp
blob: 87fd4947892d0cabd135c5edc618530b590f03b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#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 */