summaryrefslogtreecommitdiffstats
path: root/src/kgpgme.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-12-14 21:19:09 +0900
committerMichele Calgaro <[email protected]>2023-12-14 21:25:04 +0900
commit7b0920cd4180823f7a42350d1bdb914d697f4b9c (patch)
tree642d4c71c1e0b0a060be3119313c682943720363 /src/kgpgme.cpp
parent1a620eed38cfa429508f6ac347e09a694b4adf16 (diff)
downloadbasket-7b0920cd4180823f7a42350d1bdb914d697f4b9c.tar.gz
basket-7b0920cd4180823f7a42350d1bdb914d697f4b9c.zip
Remove various '#define' strings - part 6
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/kgpgme.cpp')
-rw-r--r--src/kgpgme.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/kgpgme.cpp b/src/kgpgme.cpp
index 1dffc4b..1a754bd 100644
--- a/src/kgpgme.cpp
+++ b/src/kgpgme.cpp
@@ -142,7 +142,7 @@ void KGpgMe::init(gpgme_protocol_t proto)
err = gpgme_engine_check_version(proto);
if(err) {
- KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), TQString("%1: %2")
+ KMessageBox::error(kapp->activeWindow(), TQString("%1: %2")
.arg(gpgme_strsource(err)).arg(gpgme_strerror(err)));
}
}
@@ -182,7 +182,7 @@ TQString KGpgMe::checkForUtf8(TQString txt)
TQString KGpgMe::selectKey(TQString previous)
{
- KGpgSelKey dlg(TQT_TQWIDGET(kapp->activeWindow()), "", previous, *this);
+ KGpgSelKey dlg(kapp->activeWindow(), "", previous, *this);
if(dlg.exec())
return dlg.key();
@@ -224,13 +224,13 @@ KGpgKeyList KGpgMe::keys(bool privateKeys /* = false */) const
}
if(err) {
- KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), TQString("%1: %2")
+ KMessageBox::error(kapp->activeWindow(), TQString("%1: %2")
.arg(gpgme_strsource(err)).arg(gpgme_strerror(err)));
}
else {
result = gpgme_op_keylist_result(m_ctx);
if (result->truncated) {
- KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()),
+ KMessageBox::error(kapp->activeWindow(),
i18n("Key listing unexpectedly truncated."));
}
}
@@ -266,7 +266,7 @@ bool KGpgMe::encrypt(const TQByteArray& inBuffer, TQ_ULONG length,
if(!err) {
result = gpgme_op_encrypt_result(m_ctx);
if (result->invalid_recipients) {
- KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), TQString("%1: %2")
+ KMessageBox::error(kapp->activeWindow(), TQString("%1: %2")
.arg(i18n("That public key is not meant for encryption"))
.arg(result->invalid_recipients->fpr));
}
@@ -279,7 +279,7 @@ bool KGpgMe::encrypt(const TQByteArray& inBuffer, TQ_ULONG length,
}
}
if(err != GPG_ERR_NO_ERROR && err != GPG_ERR_CANCELED) {
- KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), TQString("%1: %2")
+ KMessageBox::error(kapp->activeWindow(), TQString("%1: %2")
.arg(gpgme_strsource(err)).arg(gpgme_strerror(err)));
}
if(err != GPG_ERR_NO_ERROR)
@@ -309,7 +309,7 @@ bool KGpgMe::decrypt(const TQByteArray& inBuffer, TQByteArray* outBuffer)
if(!err) {
result = gpgme_op_decrypt_result(m_ctx);
if(result->unsupported_algorithm) {
- KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), TQString("%1: %2")
+ KMessageBox::error(kapp->activeWindow(), TQString("%1: %2")
.arg(i18n("Unsupported algorithm"))
.arg(result->unsupported_algorithm));
}
@@ -321,7 +321,7 @@ bool KGpgMe::decrypt(const TQByteArray& inBuffer, TQByteArray* outBuffer)
}
}
if(err != GPG_ERR_NO_ERROR && err != GPG_ERR_CANCELED) {
- KMessageBox::error(TQT_TQWIDGET(kapp->activeWindow()), TQString("%1: %2")
+ KMessageBox::error(kapp->activeWindow(), TQString("%1: %2")
.arg(gpgme_strsource(err)).arg(gpgme_strerror(err)));
}
if(err != GPG_ERR_NO_ERROR)