2022-05-10 10:06:48 +00:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2014-01-17 12:49:41 +00:00
|
|
|
|
|
|
|
#ifndef PURE_VIRTUAL_SIGNALS_H
|
|
|
|
#define PURE_VIRTUAL_SIGNALS_H
|
2011-04-27 10:05:43 +00:00
|
|
|
#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:
|
2020-09-10 18:39:49 +00:00
|
|
|
void mySignal() override;
|
|
|
|
void mySignal2(int foo) override;
|
2011-04-27 10:05:43 +00:00
|
|
|
};
|
2014-01-17 12:49:41 +00:00
|
|
|
#endif // PURE_VIRTUAL_SIGNALS_H
|