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>
37 lines
879 B
C
37 lines
879 B
C
// Copyright (C) 2013 Olivier Goffart <ogoffart@woboq.com>
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
|
|
|
#ifndef DOLLARS_H
|
|
#define DOLLARS_H
|
|
|
|
/* both GCC and clang allow $ in identifiers
|
|
* So moc should not throw a parse error if it parses a file that contains such identifiers
|
|
*/
|
|
|
|
#include <QObject>
|
|
|
|
#define macro$1 function1
|
|
#define $macro2 function2
|
|
|
|
namespace $NS {
|
|
class $CLS : public QObject
|
|
{
|
|
Q_PROPERTY(int rich$ MEMBER m_$rich$)
|
|
Q_PROPERTY(int money$$$ READ $$$money$$$ WRITE $$$setMoney$$$)
|
|
Q_OBJECT
|
|
|
|
int m_$rich$;
|
|
int m_money;
|
|
int $$$money$$$() { return m_money; }
|
|
int $$$setMoney$$$(int m) { return m_money = m; }
|
|
|
|
Q_SIGNALS:
|
|
void macro$1 ();
|
|
void $macro2 ();
|
|
|
|
void function$3 ($CLS * cl$s);
|
|
};
|
|
}
|
|
|
|
#endif // DOLLARS_H
|