Small cleanup of ConnectionManager
This commit is contained in:
parent
1792f42dac
commit
78247c7abe
2 changed files with 1 additions and 23 deletions
|
|
@ -25,7 +25,6 @@ QString pskFileName()
|
|||
ConnectionManagerWindow::ConnectionManagerWindow(MasterController *master, QWidget *parent)
|
||||
: QMainWindow(parent)
|
||||
, ui(new Ui::ConnectionManagerWindow)
|
||||
// , m_listModel(new ConnectionListModel(this))
|
||||
, m_masterController(master)
|
||||
, m_connectionController(master->connectionController())
|
||||
{
|
||||
|
|
@ -42,19 +41,12 @@ ConnectionManagerWindow::ConnectionManagerWindow(MasterController *master, QWidg
|
|||
|
||||
ConnectionManagerWindow::~ConnectionManagerWindow()
|
||||
{
|
||||
// m_listModel->save();
|
||||
|
||||
delete ui;
|
||||
// delete m_listModel;
|
||||
delete m_mapper;
|
||||
}
|
||||
|
||||
void ConnectionManagerWindow::on_actionAdd_Connection_triggered()
|
||||
{
|
||||
// ConnectionConfig c;
|
||||
// c.setName("new");
|
||||
//m_listModel->add(c);
|
||||
|
||||
auto clm = m_connectionController->getConnectionListModel();
|
||||
clm->newItem();
|
||||
|
||||
|
|
@ -111,9 +103,6 @@ void ConnectionManagerWindow::on_actionConnect_triggered()
|
|||
auto r = static_cast<size_t>(ci.row());
|
||||
m_connectionController->openSqlWindowForConnection(r);
|
||||
}
|
||||
else {
|
||||
// TODO can we give unobtrusive message why it didn't work?
|
||||
}
|
||||
}
|
||||
|
||||
void ConnectionManagerWindow::on_actionQuit_application_triggered()
|
||||
|
|
@ -123,8 +112,6 @@ void ConnectionManagerWindow::on_actionQuit_application_triggered()
|
|||
if (res == QMessageBox::Yes) {
|
||||
QApplication::quit();
|
||||
}
|
||||
|
||||
//closeAllWindows();
|
||||
}
|
||||
|
||||
void ConnectionManagerWindow::on_actionBackup_database_triggered()
|
||||
|
|
@ -139,8 +126,6 @@ void ConnectionManagerWindow::on_actionManage_server_triggered()
|
|||
m_connectionController->openServerWindowForConnection(ci.row());
|
||||
}
|
||||
|
||||
|
||||
|
||||
void ConnectionManagerWindow::on_listView_activated(const QModelIndex &index)
|
||||
{
|
||||
if (index.isValid()) {
|
||||
|
|
|
|||
|
|
@ -168,13 +168,6 @@
|
|||
<item row="9" column="1">
|
||||
<widget class="QLineEdit" name="edtCrl"/>
|
||||
</item>
|
||||
<item row="10" column="0">
|
||||
<widget class="QPushButton" name="testButton">
|
||||
<property name="text">
|
||||
<string>PushButton</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
|
|
@ -187,7 +180,7 @@
|
|||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>800</width>
|
||||
<height>21</height>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
<widget class="QMenu" name="menuFile">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue