mirror of
https://github.com/QuasarApp/Snake.git
synced 2025-04-29 19:24:42 +00:00
22 lines
329 B
C++
22 lines
329 B
C++
|
#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();
|
||
|
}
|