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.
qt_master/2024/tp3/synchronisable.cpp

20 lines
316 B

#include "synchronisable.h"
Synchronisable::Synchronisable(int cpt, QObject *parent)
: QObject{parent},
m_cpt{cpt}
{}
int Synchronisable::cpt() const
{
return m_cpt;
}
void Synchronisable::setCpt(int newCpt)
{
if (m_cpt == newCpt)
return;
m_cpt = newCpt;
emit cptChanged(m_cpt);
}