Started on window for managing the server.
This commit is contained in:
parent
f51105bde0
commit
2f95c2f096
17 changed files with 163 additions and 8 deletions
|
|
@ -2,6 +2,7 @@
|
|||
#include "connectionmanagerwindow.h"
|
||||
#include "connectionlistmodel.h"
|
||||
#include "MainWindow.h"
|
||||
#include "ServerWindow.h"
|
||||
|
||||
|
||||
MasterController::MasterController(QObject *parent) : QObject(parent)
|
||||
|
|
@ -27,7 +28,7 @@ void MasterController::showConnectionManager()
|
|||
m_connectionManagerWindow->show();
|
||||
}
|
||||
|
||||
void MasterController::openWindowForConnection(int connection_index)
|
||||
void MasterController::openSqlWindowForConnection(int connection_index)
|
||||
{
|
||||
auto cc = m_connectionListModel->get(connection_index);
|
||||
m_connectionListModel->save(connection_index);
|
||||
|
|
@ -39,3 +40,15 @@ void MasterController::openWindowForConnection(int connection_index)
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
void MasterController::openServerWindowForConnection(int connection_index)
|
||||
{
|
||||
auto cc = m_connectionListModel->get(connection_index);
|
||||
m_connectionListModel->save(connection_index);
|
||||
if (cc.valid()) {
|
||||
auto w = new ServerWindow(this, nullptr);
|
||||
w->setAttribute( Qt::WA_DeleteOnClose );
|
||||
//w->setConfig(cc.get());
|
||||
w->show();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue