05fc3aef53
Replace the current license disclaimer in files by a SPDX-License-Identifier. Files that have to be modified by hand are modified. License files are organized under LICENSES directory. Task-number: QTBUG-67283 Change-Id: Id880c92784c40f3bbde861c0d93f58151c18b9f1 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
24 lines
775 B
C++
24 lines
775 B
C++
// Copyright (C) 2016 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
|
|
|
#ifndef EXTRAQUALIFICATION_H
|
|
#define EXTRAQUALIFICATION_H
|
|
|
|
#include <QObject>
|
|
|
|
class Test : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public slots:
|
|
// this is invalid code that does not compile, the extra qualification
|
|
// is bad. However for example older gccs silently accept it, so customers
|
|
// can write the code and moc generates bad metadata. So instead moc should
|
|
// now write out a warning and /not/ generate any code, because the code is
|
|
// bad and with a decent compiler it won't compile anyway.
|
|
void Test::badFunctionDeclaration() {}
|
|
|
|
public:
|
|
Q_SLOT void Test::anotherOne() {}
|
|
};
|
|
#endif // EXTRAQUALIFICATION_H
|