mirror of
https://github.com/ioquake/launch.git
synced 2024-11-10 06:31:39 +00:00
Use method pointers instead of the error prone SIGNAL and SLOT macros.
This commit is contained in:
parent
6341250996
commit
ba3dbeb6d1
2 changed files with 4 additions and 4 deletions
|
@ -45,7 +45,7 @@ InstallWizard::InstallWizard(QWidget *parent, Settings *settings) :
|
|||
setButtonLayout(layout);
|
||||
|
||||
ui->setupUi(this);
|
||||
connect(cancelButton, SIGNAL(clicked()), this, SLOT(cancel()));
|
||||
connect(cancelButton, &QPushButton::clicked, this, &InstallWizard::cancel);
|
||||
|
||||
setPage(Page_Setup, new InstallWizard_Setup(this, settings));
|
||||
setPage(Page_Eula, new InstallWizard_Eula(this));
|
||||
|
|
|
@ -79,9 +79,9 @@ void InstallWizard_Patch::initializePage()
|
|||
patchFile->open();
|
||||
|
||||
networkReply = nam.get(QNetworkRequest(QUrl("http://localhost:8080/linuxq3apoint-1.32b-3.x86.run")));
|
||||
connect(networkReply, SIGNAL(readyRead()), this, SLOT(downloadRead()));
|
||||
connect(networkReply, SIGNAL(downloadProgress(qint64,qint64)), this, SLOT(downloadProgress(qint64,qint64)));
|
||||
connect(networkReply, SIGNAL(finished()), this, SLOT(downloadFinished()));
|
||||
connect(networkReply, &QNetworkReply::readyRead, this, &InstallWizard_Patch::downloadRead);
|
||||
connect(networkReply, &QNetworkReply::downloadProgress, this, &InstallWizard_Patch::downloadProgress);
|
||||
connect(networkReply, &QNetworkReply::finished, this, &InstallWizard_Patch::downloadFinished);
|
||||
}
|
||||
|
||||
void InstallWizard_Patch::cleanupPage()
|
||||
|
|
Loading…
Reference in a new issue