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 SLOTS_WITH_VOID_TEMPLATE_H
|
|
|
|
#define SLOTS_WITH_VOID_TEMPLATE_H
|
2011-04-27 10:05:43 +00:00
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
template <typename T>
|
|
|
|
struct TestTemplate
|
|
|
|
{
|
|
|
|
T *blah;
|
|
|
|
};
|
|
|
|
|
|
|
|
class SlotsWithVoidTemplateTest : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public slots:
|
|
|
|
inline void dummySlot() {}
|
2012-03-02 11:41:43 +00:00
|
|
|
inline void dummySlot2(void) {}
|
2011-04-27 10:05:43 +00:00
|
|
|
inline void anotherSlot(const TestTemplate<void> &) {}
|
|
|
|
inline TestTemplate<void> mySlot() { return TestTemplate<void>(); }
|
|
|
|
signals:
|
|
|
|
void mySignal(const TestTemplate<void> &);
|
|
|
|
void myVoidSignal();
|
2012-03-02 11:41:43 +00:00
|
|
|
void myVoidSignal2(void);
|
2011-04-27 10:05:43 +00:00
|
|
|
};
|
2014-01-17 12:49:41 +00:00
|
|
|
#endif // SLOTS_WITH_VOID_TEMPLATE_H
|