Files
qt-creator/share/qtcreator/cplusplus/examples/icontest.cpp
Lucie Gérard a7956df3ca Use SPDX license identifiers
Replace the current license disclaimer in files by
a SPDX-License-Identifier.

Task-number: QTBUG-67283
Change-Id: I708fd1f9f2b73d60f57cc3568646929117825813
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-08-26 12:27:18 +00:00

71 lines
1.6 KiB
C++

// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0 WITH Qt-GPL-exception-1.0
#include <QObject>
#define Macro
class Class : public QObject {
Q_OBJECT
public:
Q_PROPERTY(int property READ publicStaticFunction CONSTANT)
int publicFunction() { return 0; }
int static publicStaticFunction() { return 0; }
template<int> void publicTemplateFunction();
template<int> void static publicStaticTemplateFunction();
int publicVariable;
int static publicStaticVariable;
signals:
void signal();
public slots:
void publicSlot() {}
// template<int> void publicTemplateSlot() {}
protected:
void protectedFunction();
void static protectedStaticFunction();
template<int> void protectedTemplateFunction();
template<int> void static protectedStaticTemplateFunction();
int protectedVariable;
int static protectedStaticVariable;
protected slots:
void protectedSlot() {}
// template<int> void protectedTemplateSlot() {}
private:
void privateFunction();
void static privateStaticFunction();
// https://bugreports.qt.io/browse/QTCREATORBUG-20761
template<int> void privateTemplateFunction();
template<int> void static privateStaticTemplateFunction();
private slots:
void privateSlot() {}
// template<int> void privateTemplateSlot() {}
private:
int privateVariable;
int static privateStaticVariable;
};
template <int>
class TemplateClass{
};
struct Struct {};
template <int>
struct TemplateStruct {};
enum Enum {
EnumKey
};
namespace NameSpace {}