summaryrefslogtreecommitdiffstats
path: root/tests/auto/tools/moc/pure-virtual-signals.h
blob: 3c996a8628821eafe60aefbd6f5212f805cc62c8 (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
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#ifndef PURE_VIRTUAL_SIGNALS_H
#define PURE_VIRTUAL_SIGNALS_H
#include <QObject>

class PureVirtualSignalsTest : public QObject
{
    Q_OBJECT
public:
signals:
    virtual void mySignal() = 0;
    void myOtherSignal();
    virtual void mySignal2(int foo) = 0;
};

class PureVirtualSignalsImpl : public PureVirtualSignalsTest
{
    Q_OBJECT
public:
signals:
    void mySignal() override;
    void mySignal2(int foo) override;
};
#endif // PURE_VIRTUAL_SIGNALS_H