1 | /**************************************************************************** |
2 | ** |
3 | ** Copyright (C) 2016 The Qt Company Ltd. |
4 | ** Contact: https://www.qt.io/licensing/ |
5 | ** |
6 | ** This file is part of the test suite of the Qt Toolkit. |
7 | ** |
8 | ** $QT_BEGIN_LICENSE:GPL-EXCEPT$ |
9 | ** Commercial License Usage |
10 | ** Licensees holding valid commercial Qt licenses may use this file in |
11 | ** accordance with the commercial license agreement provided with the |
12 | ** Software or, alternatively, in accordance with the terms contained in |
13 | ** a written agreement between you and The Qt Company. For licensing terms |
14 | ** and conditions see https://www.qt.io/terms-conditions. For further |
15 | ** information use the contact form at https://www.qt.io/contact-us. |
16 | ** |
17 | ** GNU General Public License Usage |
18 | ** Alternatively, this file may be used under the terms of the GNU |
19 | ** General Public License version 3 as published by the Free Software |
20 | ** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT |
21 | ** included in the packaging of this file. Please review the following |
22 | ** information to ensure the GNU General Public License requirements will |
23 | ** be met: https://www.gnu.org/licenses/gpl-3.0.html. |
24 | ** |
25 | ** $QT_END_LICENSE$ |
26 | ** |
27 | ****************************************************************************/ |
28 | #ifndef OBJECT_H |
29 | #define OBJECT_H |
30 | |
31 | #include <qobject.h> |
32 | #include "wobjectimpl.h" |
33 | |
34 | class Object : public QObject |
35 | { |
36 | Q_OBJECT |
37 | public: |
38 | void emitSignal0(); |
39 | void emitSignal1(); |
40 | signals: |
41 | void signal0(); |
42 | void signal1(); |
43 | void signal2(); |
44 | void signal3(); |
45 | void signal4(); |
46 | void signal5(); |
47 | void signal6(); |
48 | void signal7(); |
49 | void signal8(); |
50 | void signal9(); |
51 | public slots: |
52 | void slot0(); |
53 | void slot1(); |
54 | void slot2(); |
55 | void slot3(); |
56 | void slot4(); |
57 | void slot5(); |
58 | void slot6(); |
59 | void slot7(); |
60 | void slot8(); |
61 | void slot9(); |
62 | }; |
63 | |
64 | class ObjectW : public QObject |
65 | { |
66 | W_OBJECT(ObjectW) |
67 | public: |
68 | void emitSignal0(); |
69 | void emitSignal1(); |
70 | //signals: |
71 | void signal0() W_SIGNAL(signal0) |
72 | void signal1() W_SIGNAL(signal1) |
73 | void signal2() W_SIGNAL(signal2) |
74 | void signal3() W_SIGNAL(signal3) |
75 | void signal4() W_SIGNAL(signal4) |
76 | void signal5() W_SIGNAL(signal5) |
77 | void signal6() W_SIGNAL(signal6) |
78 | void signal7() W_SIGNAL(signal7) |
79 | void signal8() W_SIGNAL(signal8) |
80 | void signal9() W_SIGNAL(signal9) |
81 | |
82 | //public slots: |
83 | void slot0(); W_SLOT(slot0) |
84 | void slot1(); W_SLOT(slot1) |
85 | void slot2(); W_SLOT(slot2) |
86 | void slot3(); W_SLOT(slot3) |
87 | void slot4(); W_SLOT(slot4) |
88 | void slot5(); W_SLOT(slot5) |
89 | void slot6(); W_SLOT(slot6) |
90 | void slot7(); W_SLOT(slot7) |
91 | void slot8(); W_SLOT(slot8) |
92 | void slot9(); W_SLOT(slot9) |
93 | |
94 | }; |
95 | |
96 | |
97 | #endif // OBJECT_H |
98 | |