diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-14 21:19:09 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-15 11:44:14 +0900 |
commit | 50245e3df9d78cdd42e9551fb32a3ea032434b0e (patch) | |
tree | fc0ca43d4b1e690730e54765a97263c0c25f290e /src/kgpgme.cpp | |
parent | b70474e0dea4405c89c44d798dad759bd7e5d7a9 (diff) | |
download | basket-50245e3df9d78cdd42e9551fb32a3ea032434b0e.tar.gz basket-50245e3df9d78cdd42e9551fb32a3ea032434b0e.zip |
Remove various '#define' strings - part 6
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 7b0920cd4180823f7a42350d1bdb914d697f4b9c)
Diffstat (limited to 'src/kgpgme.cpp')
-rw-r--r-- | src/kgpgme.cpp | 16 |
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) |