Remove Qt warning for client disconnect slot

This commit is contained in:
Adam Honse
2020-09-26 19:18:28 +00:00
parent 533bd0c1a0
commit 19b1a400d9
2 changed files with 3 additions and 3 deletions

View File

@@ -75,7 +75,7 @@ void OpenRGBClientInfoPage::UpdateInfo()
| Set up a signal mapper to handle disconnect buttons |
\*-----------------------------------------------------*/
QSignalMapper* signalMapper = new QSignalMapper(this);
connect(signalMapper, SIGNAL(mapped(QObject *)), this, SLOT(on_ClientDisconnectButton_clicked(QObject *)));
connect(signalMapper, SIGNAL(mapped(QObject *)), this, SLOT(onClientDisconnectButton_clicked(QObject *)));
/*-----------------------------------------------------*\
| Loop through all clients in list and display them |
@@ -188,7 +188,7 @@ void Ui::OpenRGBClientInfoPage::on_ClientConnectButton_clicked()
rgb_client->RegisterClientInfoChangeCallback(UpdateInfoCallback, this);
}
void Ui::OpenRGBClientInfoPage::on_ClientDisconnectButton_clicked(QObject * arg)
void Ui::OpenRGBClientInfoPage::onClientDisconnectButton_clicked(QObject * arg)
{
/*-----------------------------------------------------*\
| Get the pointer to the disconnecting client from args |

View File

@@ -25,7 +25,7 @@ public slots:
private slots:
void on_ClientConnectButton_clicked();
void on_ClientDisconnectButton_clicked(QObject * arg);
void onClientDisconnectButton_clicked(QObject * arg);
private:
Ui::OpenRGBClientInfoPageUi *ui;