1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00
PySolFC/kcardgame/binding-example/qobjectwithenum.h
2019-06-05 15:26:22 +03:00

28 lines
417 B
C++

#pragma once
#include <QObject>
class QObjectWithEnum : public QObject
{
Q_OBJECT
public:
enum class MyEnum {
Some,
Values,
For,
The,
Enum,
};
Q_ENUM(MyEnum)
explicit QObjectWithEnum(QObject *parent = nullptr);
QString nonSlotFunction(const MyEnum value) const;
signals:
void someSignal(QString stringArg);
public slots:
void aSlot();
};