mirror of
https://github.com/Rosalie241/RMG.git
synced 2026-07-11 01:24:01 +02:00
RMG: use const reference for slots
This commit is contained in:
@@ -338,7 +338,7 @@ void AddCheatDialog::accept(void)
|
||||
QDialog::accept();
|
||||
}
|
||||
|
||||
void AddCheatDialog::on_nameLineEdit_textChanged(QString text)
|
||||
void AddCheatDialog::on_nameLineEdit_textChanged(void)
|
||||
{
|
||||
this->validateOkButton();
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ class AddCheatDialog : public QDialog, private Ui::AddCheatDialog
|
||||
private slots:
|
||||
void accept(void) Q_DECL_OVERRIDE;
|
||||
|
||||
void on_nameLineEdit_textChanged(QString text);
|
||||
void on_nameLineEdit_textChanged(void);
|
||||
void on_codeTextEdit_textChanged(void);
|
||||
void on_optionsTextEdit_textChanged(void);
|
||||
};
|
||||
|
||||
@@ -141,7 +141,7 @@ void NetplaySessionDialog::updateCheatsTreeWidget(void)
|
||||
CheatsCommon::AddCheatsToTreeWidget(true, cheatsArray, this->sessionFile, cheats, this->cheatsTreeWidget, true);
|
||||
}
|
||||
|
||||
void NetplaySessionDialog::on_webSocket_textMessageReceived(QString message)
|
||||
void NetplaySessionDialog::on_webSocket_textMessageReceived(const QString& message)
|
||||
{
|
||||
QJsonDocument jsonDocument = QJsonDocument::fromJson(message.toUtf8());
|
||||
QJsonObject json = jsonDocument.object();
|
||||
@@ -225,7 +225,7 @@ void NetplaySessionDialog::on_webSocket_textMessageReceived(QString message)
|
||||
}
|
||||
}
|
||||
|
||||
void NetplaySessionDialog::on_chatLineEdit_textChanged(QString text)
|
||||
void NetplaySessionDialog::on_chatLineEdit_textChanged(const QString& text)
|
||||
{
|
||||
this->sendPushButton->setEnabled(!text.startsWith(' ') && !text.trimmed().isEmpty() && text.size() <= 256);
|
||||
this->sendPushButton->setDefault(this->sendPushButton->isEnabled());
|
||||
|
||||
@@ -47,9 +47,9 @@ class NetplaySessionDialog : public QDialog, private Ui::NetplaySessionDialog
|
||||
void updateCheatsTreeWidget(void);
|
||||
|
||||
private slots:
|
||||
void on_webSocket_textMessageReceived(QString message);
|
||||
void on_webSocket_textMessageReceived(const QString& message);
|
||||
|
||||
void on_chatLineEdit_textChanged(QString text);
|
||||
void on_chatLineEdit_textChanged(const QString& text);
|
||||
void on_sendPushButton_clicked(void);
|
||||
void on_buttonBox_clicked(QAbstractButton* button);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user