Snake/src/Core/SnakeProject/icontrol.cpp

22 lines
329 B
C++
Raw Normal View History

2021-06-11 20:49:42 +03:00
#include "icontrol.h"
IControl::IControl() {
}
const QString &IControl::view() const {
return _view;
}
bool IControl::init() {
setView(initQmlView());
return _view.size();
}
void IControl::setView(const QString &newView) {
if (_view == newView)
return;
_view = newView;
emit viewChanged();
}