4
1
mirror of https://github.com/QuasarApp/Snake.git synced 2025-04-29 11:14:40 +00:00

37 lines
606 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"
2021-07-05 17:39:26 +03:00
namespace CRAWL {
2021-06-11 20:49:42 +03:00
IControl::IControl() {
}
2021-06-12 18:20:29 +03:00
IControl::~IControl() {
}
2021-08-12 14:22:59 +03:00
const QString &IControl::view() {
if (_view.isEmpty()) {
setView(initQmlView());
}
2021-06-11 20:49:42 +03:00
2021-08-12 14:22:59 +03:00
return _view;
2021-06-11 20:49:42 +03:00
}
void IControl::setView(const QString &newView) {
if (_view == newView)
return;
_view = newView;
emit viewChanged();
}
2021-07-05 17:39:26 +03:00
}