Snake/src/Core/Crawl/icontrol.cpp

33 lines
603 B
C++
Raw Normal View History

//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
//#
2021-06-11 20:49:42 +03:00
#include "icontrol.h"
IControl::IControl() {
}
2021-06-12 18:20:29 +03:00
IControl::~IControl() {
}
2021-06-11 20:49:42 +03:00
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();
}