aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/theme/PackThemeDialog.cpp
diff options
context:
space:
mode:
authorGravatar Fabio Bas2023-10-10 17:58:14 +0200
committerGravatar ctrlaltca2023-10-18 10:26:35 +0200
commit9052018b53ece6c073b57c89665ae693a3f0fb97 (patch)
tree24dd1cba8974439f646a242bc0cb228076fa38b2 /src/modules/theme/PackThemeDialog.cpp
parentAddress feedback for XmlFunctions.cpp (diff)
downloadKVIrc-9052018b53ece6c073b57c89665ae693a3f0fb97.tar.gz
KVIrc-9052018b53ece6c073b57c89665ae693a3f0fb97.tar.bz2
KVIrc-9052018b53ece6c073b57c89665ae693a3f0fb97.zip
Migrate almost all QMessagebox to qt6-friendly version.
Diffstat (limited to 'src/modules/theme/PackThemeDialog.cpp')
-rw-r--r--src/modules/theme/PackThemeDialog.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/modules/theme/PackThemeDialog.cpp b/src/modules/theme/PackThemeDialog.cpp
index 91bde9429..10a8ef622 100644
--- a/src/modules/theme/PackThemeDialog.cpp
+++ b/src/modules/theme/PackThemeDialog.cpp
@@ -353,8 +353,7 @@ void PackThemeImageWidget::imageSelectionChanged(const QString & szImagePath)
return;
}
- QMessageBox::critical(this, __tr2qs_ctx("Export Theme - KVIrc", "theme"), __tr2qs_ctx("Failed to load the selected image!", "theme"),
- QMessageBox::Ok, QMessageBox::NoButton, QMessageBox::NoButton);
+ QMessageBox::critical(this, __tr2qs_ctx("Export Theme - KVIrc", "theme"), __tr2qs_ctx("Failed to load the selected image!", "theme"));
m_pImageSelector->setSelection("");
m_pImageLabel->setPixmap(QPixmap());
@@ -433,15 +432,13 @@ bool PackThemeDialog::packTheme()
{
QMessageBox::critical(this,
__tr2qs_ctx("Export Theme - KVIrc", "theme"),
- szError,
- QMessageBox::Ok, QMessageBox::NoButton, QMessageBox::NoButton);
+ szError);
return false;
}
QMessageBox::information(this,
__tr2qs_ctx("Exporting Theme - KVIrc", "theme"),
- __tr2qs("Theme package saved successfully."),
- QMessageBox::Ok, QMessageBox::NoButton, QMessageBox::NoButton);
+ __tr2qs("Theme package saved successfully."));
return true;
}