You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
429 B
24 lines
429 B
#ifndef SYNCHRONISABLE_H
|
|
#define SYNCHRONISABLE_H
|
|
|
|
#include <QObject>
|
|
|
|
class Synchronisable : public QObject
|
|
{
|
|
Q_OBJECT
|
|
Q_PROPERTY(int cpt READ cpt WRITE setCpt NOTIFY cptChanged FINAL)
|
|
public:
|
|
explicit Synchronisable(int cpt = 0, QObject *parent = nullptr);
|
|
|
|
int cpt() const;
|
|
void setCpt(int newCpt);
|
|
void inc();
|
|
|
|
signals:
|
|
void cptChanged(int);
|
|
private:
|
|
int m_cpt;
|
|
};
|
|
|
|
#endif // SYNCHRONISABLE_H
|