mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
28 lines
417 B
C++
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();
|
|
};
|