mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-07-05 16:55:25 +08:00
qt 6.5.1 original
This commit is contained in:
27
tests/auto/tools/moc/pointery_to_incomplete.h
Normal file
27
tests/auto/tools/moc/pointery_to_incomplete.h
Normal file
@ -0,0 +1,27 @@
|
||||
// Copyright (C) 2020 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
|
||||
#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
|
Reference in New Issue
Block a user