summaryrefslogtreecommitdiffstats
path: root/tests/auto/qobject/oldnormalizeobject.h
blob: 8420a3a1af0a68787ece9ba3c30712fd2f8cd006 (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
#ifndef OLDNORMALIZEOBJECT_H
#define OLDNORMALIZEOBJECT_H

#include <QObject>

struct Struct;
class Class;
template <typename T> class Template;

// An object with old moc output that incorrectly normalizes 'T<C> const &' in the function
// signatures
class OldNormalizeObject : public QObject
{
    /* tmake ignore Q_OBJECT */
    Q_OBJECT

signals:
    void typeRefSignal(Template<Class &> &ref);
    void constTypeRefSignal(const Template<const Class &> &ref);
    void typeConstRefSignal(Template<Class const &> const &ref);

public slots:
    void typeRefSlot(Template<Class &> &) {}
    void constTypeRefSlot(const Template<const Class &> &) {}
    void typeConstRefSlot(Template<Class const &> const &) {}
};

#endif // OLDNORMALIZEOBJECT_H