File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change 9
9
10
10
class ExampleClass : public QObject
11
11
{
12
- Q_OBJECT
12
+ Q_OBJECT
13
13
public:
14
- explicit ExampleClass (QObject * parent = nullptr );
14
+ explicit ExampleClass (QObject* parent = nullptr );
15
15
16
- /* Instead of using the keyword 'signals', use the 'Q_SIGNALS' macro */
16
+ /* Instead of using the keyword 'signals', use the 'Q_SIGNALS' macro */
17
17
Q_SIGNALS:
18
- void example_signal ();
18
+ void example_signal ();
19
19
20
- /* Instead of using the keyword 'slots', use the 'Q_SLOTS' macro */
20
+ /* Instead of using the keyword 'slots', use the 'Q_SLOTS' macro */
21
21
public Q_SLOTS:
22
- void timer_slot ();
22
+ void timer_slot ();
23
23
24
- /* *
25
- * This slot is called using libsigc++, however since it is defined under Q_SLOTS
26
- * it could also be used with the Qt signals/slots
27
- */
28
- void example_slot ();
24
+ /* *
25
+ * This slot is called using libsigc++, however since it is defined under Q_SLOTS
26
+ * it could also be used with the Qt signals/slots
27
+ */
28
+ void example_slot ();
29
29
30
30
private:
31
- sigc::slot<void ()> m_sigc_slot;
32
- sigc::signal<void ()> m_sigc_signal;
33
- QTimer m_timer;
31
+ sigc::slot<void ()> m_sigc_slot;
32
+ sigc::signal<void ()> m_sigc_signal;
33
+ QTimer m_timer;
34
34
};
35
35
36
36
#endif // EXAMPLECLASS_H
You can’t perform that action at this time.
0 commit comments