refactor: MainWindow, Do not auto connect the configure sever button
This commit is contained in:
parent
5032a5d275
commit
4ee7d7b20f
3 changed files with 3 additions and 11 deletions
|
|
@ -291,6 +291,8 @@ void MainWindow::connectSlots()
|
||||||
|
|
||||||
connect(ui->lineClientIp, &QLineEdit::returnPressed, ui->btnConnectToClient, &QPushButton::click);
|
connect(ui->lineClientIp, &QLineEdit::returnPressed, ui->btnConnectToClient, &QPushButton::click);
|
||||||
connect(ui->lineClientIp, &QLineEdit::textChanged, &m_CoreProcess, &deskflow::gui::CoreProcess::setAddress);
|
connect(ui->lineClientIp, &QLineEdit::textChanged, &m_CoreProcess, &deskflow::gui::CoreProcess::setAddress);
|
||||||
|
|
||||||
|
connect(ui->btnConfigureServer, &QPushButton::clicked, this, [this] { showConfigureServer(""); });
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::onAppAboutToQuit()
|
void MainWindow::onAppAboutToQuit()
|
||||||
|
|
@ -460,11 +462,6 @@ void MainWindow::openSettings()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::on_m_pButtonConfigureServer_clicked()
|
|
||||||
{
|
|
||||||
showConfigureServer();
|
|
||||||
}
|
|
||||||
|
|
||||||
void MainWindow::resetCore()
|
void MainWindow::resetCore()
|
||||||
{
|
{
|
||||||
m_ClientConnection.setShowMessage();
|
m_ClientConnection.setShowMessage();
|
||||||
|
|
|
||||||
|
|
@ -138,7 +138,6 @@ private slots:
|
||||||
void on_m_pLabelFingerprint_linkActivated(const QString &link);
|
void on_m_pLabelFingerprint_linkActivated(const QString &link);
|
||||||
void on_m_pRadioGroupServer_clicked(bool);
|
void on_m_pRadioGroupServer_clicked(bool);
|
||||||
void on_m_pRadioGroupClient_clicked(bool);
|
void on_m_pRadioGroupClient_clicked(bool);
|
||||||
void on_m_pButtonConfigureServer_clicked();
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::unique_ptr<Ui::MainWindow> ui;
|
std::unique_ptr<Ui::MainWindow> ui;
|
||||||
|
|
@ -179,10 +178,6 @@ private:
|
||||||
void saveSettings();
|
void saveSettings();
|
||||||
QString configFilename();
|
QString configFilename();
|
||||||
void showConfigureServer(const QString &message);
|
void showConfigureServer(const QString &message);
|
||||||
void showConfigureServer()
|
|
||||||
{
|
|
||||||
showConfigureServer("");
|
|
||||||
}
|
|
||||||
void restoreWindow();
|
void restoreWindow();
|
||||||
void saveWindow();
|
void saveWindow();
|
||||||
void setupControls();
|
void setupControls();
|
||||||
|
|
|
||||||
|
|
@ -272,7 +272,7 @@
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="m_pButtonConfigureServer">
|
<widget class="QPushButton" name="btnConfigureServer">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Configure</string>
|
<string>&Configure</string>
|
||||||
</property>
|
</property>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue