mirror of
https://github.com/ysoftdevs/Testa.git
synced 2026-01-11 14:20:23 +01:00
15 lines
593 B
C++
15 lines
593 B
C++
#include "applicationcontroller.h"
|
|
#include "notification.h"
|
|
#include "progressbar.h"
|
|
|
|
ApplicationController::ApplicationController(WebEngineView* webEngineView, ActionReceiver *actionReceiver, QObject *parent) :
|
|
QObject(parent),
|
|
webEngineView(webEngineView),
|
|
actionReceiver(actionReceiver)
|
|
{
|
|
connect(actionReceiver, &ActionReceiver::showNotificationReceived, Notification::show);
|
|
connect(actionReceiver, &ActionReceiver::setProgressReceived, ProgressBar::show);
|
|
connect(actionReceiver, &ActionReceiver::loadUrlReceived, webEngineView, &WebEngineView::loadUrl);
|
|
}
|
|
|