summaryrefslogtreecommitdiffstats
path: root/tests/auto/tools/moc/pointery_to_incomplete.h
blob: 5d0ac859d6361ad4b1aca00fc80b68f48da0ad2c (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
// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#ifndef POINTERY_TO_INCOMPLETE_H
#define POINTERY_TO_INCOMPLETE_H

#include <QObject>
#include <QSharedPointer>
#include <QWeakPointer>
#include <QPointer>

class FwdClass;

class TestPointeeCanBeIncomplete : public QObject
{
    Q_OBJECT
public slots:
    void setProp1(QPointer<FwdClass>) {}
    void setProp2(QSharedPointer<FwdClass>) {}
    void setProp3(const QWeakPointer<FwdClass> &) {}
    void setProp4(FwdClass *) {}
    void setProp5(const FwdClass *) {}
    void setProp6(void *) {}
    void setProp7(const void *) {}
};

#endif // POINTERY_TO_INCOMPLETE_H