28 lines
577 B
C++
28 lines
577 B
C++
|
|
#include "MasterController.h"
|
|||
|
|
#include "connectionmanagerwindow.h"
|
|||
|
|
#include "connectionlistmodel.h"
|
|||
|
|
|
|||
|
|
|
|||
|
|
MasterController::MasterController(QObject *parent) : QObject(parent)
|
|||
|
|
{}
|
|||
|
|
|
|||
|
|
MasterController::~MasterController()
|
|||
|
|
{
|
|||
|
|
delete m_connectionManagerWindow;
|
|||
|
|
delete m_connectionListModel;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
void MasterController::init()
|
|||
|
|
{
|
|||
|
|
m_connectionListModel = new ConnectionListModel(this);
|
|||
|
|
|
|||
|
|
m_connectionManagerWindow = new ConnectionManagerWindow(this, nullptr);
|
|||
|
|
m_connectionManagerWindow->show();
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
void MasterController::showConnectionManager()
|
|||
|
|
{
|
|||
|
|
m_connectionManagerWindow->show();
|
|||
|
|
}
|