/*! * * Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved. * \copyright \n * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, \n * IN PART OR IN WHOLE, \n * WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. \n * * \file guiview.cpp * \date 2019/09/30 * \author Behrouz NematiPour * */ #include "guiview.h" // Project #include "guicontroller.h" using namespace Gui; // We don't have access to view object since it has been created in the GUI // So here connect to the controller which we have access to. // Also here emit the controller signal since for the same reason. GuiView::GuiView(QQuickItem *parent) { Q_UNUSED(parent) connect(GuiController::I(), &GuiController::actionEvaluated, this, &GuiView::actionEvaluated); } void GuiView::notifyActionRequest(GuiAction vAction) { emit GuiController::I()->actionRequested(vAction); }