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::textChanged, &m_CoreProcess, &deskflow::gui::CoreProcess::setAddress);
|
||||
|
||||
connect(ui->btnConfigureServer, &QPushButton::clicked, this, [this] { showConfigureServer(""); });
|
||||
}
|
||||
|
||||
void MainWindow::onAppAboutToQuit()
|
||||
|
|
@ -460,11 +462,6 @@ void MainWindow::openSettings()
|
|||
}
|
||||
}
|
||||
|
||||
void MainWindow::on_m_pButtonConfigureServer_clicked()
|
||||
{
|
||||
showConfigureServer();
|
||||
}
|
||||
|
||||
void MainWindow::resetCore()
|
||||
{
|
||||
m_ClientConnection.setShowMessage();
|
||||
|
|
|
|||
|
|
@ -138,7 +138,6 @@ private slots:
|
|||
void on_m_pLabelFingerprint_linkActivated(const QString &link);
|
||||
void on_m_pRadioGroupServer_clicked(bool);
|
||||
void on_m_pRadioGroupClient_clicked(bool);
|
||||
void on_m_pButtonConfigureServer_clicked();
|
||||
|
||||
private:
|
||||
std::unique_ptr<Ui::MainWindow> ui;
|
||||
|
|
@ -179,10 +178,6 @@ private:
|
|||
void saveSettings();
|
||||
QString configFilename();
|
||||
void showConfigureServer(const QString &message);
|
||||
void showConfigureServer()
|
||||
{
|
||||
showConfigureServer("");
|
||||
}
|
||||
void restoreWindow();
|
||||
void saveWindow();
|
||||
void setupControls();
|
||||
|
|
|
|||
|
|
@ -272,7 +272,7 @@
|
|||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="m_pButtonConfigureServer">
|
||||
<widget class="QPushButton" name="btnConfigureServer">
|
||||
<property name="text">
|
||||
<string>&Configure</string>
|
||||
</property>
|
||||
|
|
|
|||
Loading…
Reference in a new issue