#include "controller.h" #include QString Controller::status() const { return m_status; } void Controller::setStatus(const QString &status) { if (m_status != status) { m_status = status; emit statusChanged(); } } void Controller::changeColour() { qDebug() << "Color change triggered from QML"; setStatus("Color changed"); }