refactor(serverConfigDialog):rename accept -> save
This commit is contained in:
parent
95923e0e90
commit
4db8c615bd
2 changed files with 3 additions and 4 deletions
|
|
@ -56,7 +56,7 @@ bool ServerConfigDialog::addClient(const QString &clientName)
|
|||
return addComputer(clientName, true);
|
||||
}
|
||||
|
||||
void ServerConfigDialog::accept()
|
||||
void ServerConfigDialog::save()
|
||||
{
|
||||
if (ui->groupExternalConfig->isChecked() && !QFile::exists(ui->lineConfigFile->text())) {
|
||||
|
||||
|
|
@ -452,7 +452,7 @@ void ServerConfigDialog::loadFromConfig()
|
|||
|
||||
void ServerConfigDialog::initConnections() const
|
||||
{
|
||||
connect(ui->buttonBox, &QDialogButtonBox::accepted, this, &ServerConfigDialog::accept);
|
||||
connect(ui->buttonBox, &QDialogButtonBox::accepted, this, &ServerConfigDialog::save);
|
||||
connect(ui->buttonBox, &QDialogButtonBox::rejected, this, &ServerConfigDialog::cancel);
|
||||
connect(ui->lblRemoveScreen, &TrashScreenWidget::screenRemoved, this, &ServerConfigDialog::onScreenRemoved);
|
||||
connect(ui->btnNewHotkey, &QPushButton::clicked, this, &ServerConfigDialog::addHotkey);
|
||||
|
|
|
|||
|
|
@ -30,8 +30,6 @@ public:
|
|||
bool addClient(const QString &clientName);
|
||||
|
||||
public Q_SLOTS:
|
||||
void accept() override;
|
||||
|
||||
void message(const QString &message)
|
||||
{
|
||||
m_message = message;
|
||||
|
|
@ -90,6 +88,7 @@ protected:
|
|||
}
|
||||
|
||||
private:
|
||||
void save();
|
||||
void cancel();
|
||||
void loadFromConfig();
|
||||
void initConnections() const;
|
||||
|
|
|
|||
Loading…
Reference in a new issue