Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef EVERYTHING_H
- #define EVERYTHING_H
- #include <QString>
- #include <QObject>
- enum class AE
- {
- A1,
- A2
- };
- struct Base
- {
- public:
- const QString name;
- explicit Base(const QString& n)
- : name { n } {}
- };
- template<typename T>
- struct Templ : public Base
- {
- public:
- explicit Templ(const QString& n)
- : Base(n) {}
- };
- class A : public QObject, public Templ<AE>
- {
- Q_OBJECT
- public:
- explicit A(QObject *parent = nullptr)
- : QObject(parent),
- Templ<AE>("a") {}
- };
- #endif // EVERYTHING_H
Advertisement
Add Comment
Please, Sign In to add comment