diff options
| author | 2023-10-10 17:58:14 +0200 | |
|---|---|---|
| committer | 2023-10-18 10:26:35 +0200 | |
| commit | 9052018b53ece6c073b57c89665ae693a3f0fb97 (patch) | |
| tree | 24dd1cba8974439f646a242bc0cb228076fa38b2 /src/modules/setup | |
| parent | Address feedback for XmlFunctions.cpp (diff) | |
| download | KVIrc-9052018b53ece6c073b57c89665ae693a3f0fb97.tar.gz KVIrc-9052018b53ece6c073b57c89665ae693a3f0fb97.tar.bz2 KVIrc-9052018b53ece6c073b57c89665ae693a3f0fb97.zip | |
Migrate almost all QMessagebox to qt6-friendly version.
Diffstat (limited to 'src/modules/setup')
| -rw-r--r-- | src/modules/setup/SetupWizard.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/modules/setup/SetupWizard.cpp b/src/modules/setup/SetupWizard.cpp index 478e2a8ac..30be5a079 100644 --- a/src/modules/setup/SetupWizard.cpp +++ b/src/modules/setup/SetupWizard.cpp @@ -734,13 +734,8 @@ void SetupWizard::chooseOldDataPath() this, __tr2qs("Confirm Setting Configuration Folder - KVIrc Setup"), __tr2qs("The folder %1 doesn't seem to be a valid KVIrc settings folder. Do you want to use it anyway?") - .arg(szBuffer), - __tr2qs("&Yes"), - __tr2qs("&No"), - QString(), - 0, - 1) - == 0) + .arg(szBuffer)) + == QMessageBox::Yes) m_pOldDataPathEdit->setText(szBuffer); } else @@ -940,9 +935,8 @@ void SetupWizard::setUrlHandlers() void SetupWizard::reject() { - if(QMessageBox::warning(this, __tr2qs("Confirm Setup Abort - KVIrc Setup"), - __tr2qs("You have chosen to abort the setup.<br>KVIrc can't run until you complete this procedure.<br><br>Do you really wish to abort?"), - QMessageBox::Yes, QMessageBox::No | QMessageBox::Default | QMessageBox::Escape) + if(QMessageBox::question(this, __tr2qs("Confirm Setup Abort - KVIrc Setup"), + __tr2qs("You have chosen to abort the setup.<br>KVIrc can't run until you complete this procedure.<br><br>Do you really wish to abort?")) != QMessageBox::Yes) return; |
