Warning, /sdk/clazy/tests/missing-qobject-macro/fixit.cpp.fixed.expected is written in an unsupported language. File is not indexed.
0001 #include <QtCore/QObject>
0002 #include <QtCore/QFile>
0003
0004
0005
0006
0007
0008
0009
0010
0011 class MissingMacro : public QObject
0012 {
0013 Q_OBJECT
0014 public: // Warning
0015 };
0016
0017 class HasMacro : public QObject
0018 {
0019 Q_OBJECT
0020 public:
0021 };
0022
0023 class Derived1 : public HasMacro
0024 {
0025 Q_OBJECT
0026 public: // Warning
0027 };
0028
0029 class QFile;
0030 class FwdDecl;
0031
0032 template <typename T> class DerivedTemplate : public Derived1
0033 { // OK, moc doesn't accept Q_OBJECT in template classes
0034 public:
0035 };
0036
0037 #include "fixit.moc"