aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/options/OptionsWidget_identity.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/options/OptionsWidget_identity.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/options/OptionsWidget_identity.cpp')
-rw-r--r--src/modules/options/OptionsWidget_identity.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/modules/options/OptionsWidget_identity.cpp b/src/modules/options/OptionsWidget_identity.cpp
index 49496729b..cf5821705 100644
--- a/src/modules/options/OptionsWidget_identity.cpp
+++ b/src/modules/options/OptionsWidget_identity.cpp
@@ -566,8 +566,7 @@ void OptionsWidget_identityAvatar::chooseAvatar()
__tr2qs_ctx("Failed to load the avatar image.<br>"
"It may be an inaccessible file or an "
"unsupported image format.",
- "options"),
- QMessageBox::Ok, QMessageBox::NoButton);
+ "options"));
} // else loaded!
}
else
@@ -577,7 +576,7 @@ void OptionsWidget_identityAvatar::chooseAvatar()
"<b>%1</b>",
"options"))
.arg(dlg.errorMessage());
- QMessageBox::warning(this, __tr2qs_ctx("Avatar Download Failed - KVIrc", "options"), szTmp, QMessageBox::Ok, QMessageBox::NoButton);
+ QMessageBox::warning(this, __tr2qs_ctx("Avatar Download Failed - KVIrc", "options"), szTmp);
szCurrent = "";
m_pLocalAvatar->setNull();
}
@@ -616,8 +615,7 @@ void OptionsWidget_identityAvatar::chooseAvatar()
__tr2qs_ctx("Failed to load the avatar image.<br>"
"It may be an inaccessible file or an "
"unsupported image format.",
- "options"),
- QMessageBox::Ok, QMessageBox::NoButton);
+ "options"));
szCurrent = "";
}
}
@@ -867,7 +865,7 @@ void OptionsWidget_identityProfile::editProfileOkPressed()
{
if(m_pEditor->m_pNameEdit->text() == m_pTreeWidget->topLevelItem(i)->text(0) && i != m_iCurrentEditedProfile)
{
- QMessageBox::warning(this, __tr2qs_ctx("Invalid Profile Rule - KVIrc", "options"), __tr2qs_ctx("There is already a profile with that name", "options"), __tr2qs_ctx("OK", "options"));
+ QMessageBox::warning(this, __tr2qs_ctx("Invalid Profile Rule - KVIrc", "options"), __tr2qs_ctx("There is already a profile with that name", "options"));
return;
}
}