summaryrefslogtreecommitdiffstats
path: root/certmanager/lib/ui/messagebox.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
commit36a36a5c1015aa0d03f4515c401e907ddb9d6291 (patch)
tree0212ba6d2c749043134005a41f2bd0379619d40f /certmanager/lib/ui/messagebox.cpp
parent4c6f8d69e2d1501837affb472c4eb8fec4462240 (diff)
downloadtdepim-36a36a5c1015aa0d03f4515c401e907ddb9d6291.tar.gz
tdepim-36a36a5c1015aa0d03f4515c401e907ddb9d6291.zip
rename the following methods:
tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'certmanager/lib/ui/messagebox.cpp')
-rw-r--r--certmanager/lib/ui/messagebox.cpp80
1 files changed, 40 insertions, 40 deletions
diff --git a/certmanager/lib/ui/messagebox.cpp b/certmanager/lib/ui/messagebox.cpp
index 0cef145b2..2dfe083d5 100644
--- a/certmanager/lib/ui/messagebox.cpp
+++ b/certmanager/lib/ui/messagebox.cpp
@@ -77,8 +77,8 @@ class AuditLogViewer : public KDialogBase {
// Q_OBJECT
TQ_OBJECT
public:
- explicit AuditLogViewer( const TQString & log, TQWidget * tqparent=0, const char * name=0, WFlags f=0 )
- : KDialogBase( tqparent, name, false, i18n("View GnuPG Audit Log"),
+ explicit AuditLogViewer( const TQString & log, TQWidget * parent=0, const char * name=0, WFlags f=0 )
+ : KDialogBase( parent, name, false, i18n("View GnuPG Audit Log"),
Close|User1|User2, Close, false, KGuiItem_save(), KGuiItem_copy() ),
m_log( /* sic */ ),
m_textEdit( new TQTextEdit( this, "m_textEdit" ) )
@@ -144,13 +144,13 @@ private:
} // anon namespace
// static
-void MessageBox::auditLog( TQWidget * tqparent, const Job * job, const TQString & caption ) {
+void MessageBox::auditLog( TQWidget * parent, const Job * job, const TQString & caption ) {
if ( !job )
return;
if ( !GpgME::hasFeature( AuditLogFeature ) || !job->isAuditLogSupported() ) {
- KMessageBox::information( tqparent, i18n("Your system does not have support for GnuPG Audit Logs"),
+ KMessageBox::information( parent, i18n("Your system does not have support for GnuPG Audit Logs"),
i18n("System Error") );
return;
}
@@ -158,7 +158,7 @@ void MessageBox::auditLog( TQWidget * tqparent, const Job * job, const TQString
const GpgME::Error err = job->auditLogError();
if ( err.code() != GPG_ERR_NO_DATA ) {
- KMessageBox::information( tqparent, i18n("An error occurred while trying to retrieve the GnuPG Audit Log:\n%1")
+ KMessageBox::information( parent, i18n("An error occurred while trying to retrieve the GnuPG Audit Log:\n%1")
.tqarg( TQString::fromLocal8Bit( err.asString() ) ),
i18n("GnuPG Audit Log Error") );
return;
@@ -167,29 +167,29 @@ void MessageBox::auditLog( TQWidget * tqparent, const Job * job, const TQString
const TQString log = job->auditLogAsHtml();
if ( log.isEmpty() ) {
- KMessageBox::information( tqparent, i18n("No GnuPG Audit Log available for this operation."),
+ KMessageBox::information( parent, i18n("No GnuPG Audit Log available for this operation."),
i18n("No GnuPG Audit Log") );
return;
}
- auditLog( tqparent, log, caption );
+ auditLog( parent, log, caption );
}
// static
-void MessageBox::auditLog( TQWidget * tqparent, const TQString & log, const TQString & caption ) {
- AuditLogViewer * const alv = new AuditLogViewer( log, tqparent, "alv", TQt::WDestructiveClose );
+void MessageBox::auditLog( TQWidget * parent, const TQString & log, const TQString & caption ) {
+ AuditLogViewer * const alv = new AuditLogViewer( log, parent, "alv", TQt::WDestructiveClose );
alv->setCaption( caption );
alv->show();
}
// static
-void MessageBox::auditLog( TQWidget * tqparent, const Job * job ) {
- auditLog( tqparent, job, i18n("GnuPG Audit Log Viewer") );
+void MessageBox::auditLog( TQWidget * parent, const Job * job ) {
+ auditLog( parent, job, i18n("GnuPG Audit Log Viewer") );
}
// static
-void MessageBox::auditLog( TQWidget * tqparent, const TQString & log ) {
- auditLog( tqparent, log, i18n("GnuPG Audit Log Viewer") );
+void MessageBox::auditLog( TQWidget * parent, const TQString & log ) {
+ auditLog( parent, log, i18n("GnuPG Audit Log Viewer") );
}
static TQString to_information_string( const SigningResult & result ) {
@@ -221,63 +221,63 @@ static TQString to_error_string( const SigningResult & sresult, const Encryption
}
// static
-void MessageBox::information( TQWidget * tqparent, const SigningResult & result, const Job * job, int options ) {
- information( tqparent, result, job, i18n("Signing Result"), options );
+void MessageBox::information( TQWidget * parent, const SigningResult & result, const Job * job, int options ) {
+ information( parent, result, job, i18n("Signing Result"), options );
}
// static
-void MessageBox::information( TQWidget * tqparent, const SigningResult & result, const Job * job, const TQString & caption, int options ) {
- make( tqparent, TQMessageBox::Information, to_information_string( result ), job, caption, options );
+void MessageBox::information( TQWidget * parent, const SigningResult & result, const Job * job, const TQString & caption, int options ) {
+ make( parent, TQMessageBox::Information, to_information_string( result ), job, caption, options );
}
// static
-void MessageBox::error( TQWidget * tqparent, const SigningResult & result, const Job * job, int options ) {
- error( tqparent, result, job, i18n("Signing Error"), options );
+void MessageBox::error( TQWidget * parent, const SigningResult & result, const Job * job, int options ) {
+ error( parent, result, job, i18n("Signing Error"), options );
}
// static
-void MessageBox::error( TQWidget * tqparent, const SigningResult & result, const Job * job, const TQString & caption, int options ) {
- make( tqparent, TQMessageBox::Critical, to_error_string( result ), job, caption, options );
+void MessageBox::error( TQWidget * parent, const SigningResult & result, const Job * job, const TQString & caption, int options ) {
+ make( parent, TQMessageBox::Critical, to_error_string( result ), job, caption, options );
}
// static
-void MessageBox::information( TQWidget * tqparent, const EncryptionResult & result, const Job * job, int options ) {
- information( tqparent, result, job, i18n("Encryption Result"), options );
+void MessageBox::information( TQWidget * parent, const EncryptionResult & result, const Job * job, int options ) {
+ information( parent, result, job, i18n("Encryption Result"), options );
}
// static
-void MessageBox::information( TQWidget * tqparent, const EncryptionResult & result, const Job * job, const TQString & caption, int options ) {
- make( tqparent, TQMessageBox::Information, to_information_string( result ), job, caption, options );
+void MessageBox::information( TQWidget * parent, const EncryptionResult & result, const Job * job, const TQString & caption, int options ) {
+ make( parent, TQMessageBox::Information, to_information_string( result ), job, caption, options );
}
// static
-void MessageBox::error( TQWidget * tqparent, const EncryptionResult & result, const Job * job, int options ) {
- error( tqparent, result, job, i18n("Encryption Error"), options );
+void MessageBox::error( TQWidget * parent, const EncryptionResult & result, const Job * job, int options ) {
+ error( parent, result, job, i18n("Encryption Error"), options );
}
// static
-void MessageBox::error( TQWidget * tqparent, const EncryptionResult & result, const Job * job, const TQString & caption, int options ) {
- make( tqparent, TQMessageBox::Critical, to_error_string( result ), job, caption, options );
+void MessageBox::error( TQWidget * parent, const EncryptionResult & result, const Job * job, const TQString & caption, int options ) {
+ make( parent, TQMessageBox::Critical, to_error_string( result ), job, caption, options );
}
// static
-void MessageBox::information( TQWidget * tqparent, const SigningResult & sresult, const EncryptionResult & eresult, const Job * job, int options ) {
- information( tqparent, sresult, eresult, job, i18n("Encryption Result"), options );
+void MessageBox::information( TQWidget * parent, const SigningResult & sresult, const EncryptionResult & eresult, const Job * job, int options ) {
+ information( parent, sresult, eresult, job, i18n("Encryption Result"), options );
}
// static
-void MessageBox::information( TQWidget * tqparent, const SigningResult & sresult, const EncryptionResult & eresult, const Job * job, const TQString & caption, int options ) {
- make( tqparent, TQMessageBox::Information, to_information_string( sresult, eresult ), job, caption, options );
+void MessageBox::information( TQWidget * parent, const SigningResult & sresult, const EncryptionResult & eresult, const Job * job, const TQString & caption, int options ) {
+ make( parent, TQMessageBox::Information, to_information_string( sresult, eresult ), job, caption, options );
}
// static
-void MessageBox::error( TQWidget * tqparent, const SigningResult & sresult, const EncryptionResult & eresult, const Job * job, int options ) {
- error( tqparent, sresult, eresult, job, i18n("Encryption Error"), options );
+void MessageBox::error( TQWidget * parent, const SigningResult & sresult, const EncryptionResult & eresult, const Job * job, int options ) {
+ error( parent, sresult, eresult, job, i18n("Encryption Error"), options );
}
// static
-void MessageBox::error( TQWidget * tqparent, const SigningResult & sresult, const EncryptionResult & eresult, const Job * job, const TQString & caption, int options ) {
- make( tqparent, TQMessageBox::Critical, to_error_string( sresult, eresult ), job, caption, options );
+void MessageBox::error( TQWidget * parent, const SigningResult & sresult, const EncryptionResult & eresult, const Job * job, const TQString & caption, int options ) {
+ make( parent, TQMessageBox::Critical, to_error_string( sresult, eresult ), job, caption, options );
}
// static
@@ -307,15 +307,15 @@ bool MessageBox::showAuditLogButton( const Kleo::Job * job ) {
// static
-void MessageBox::make( TQWidget * tqparent, TQMessageBox::Icon icon, const TQString & text, const Job * job, const TQString & caption, int options ) {
+void MessageBox::make( TQWidget * parent, TQMessageBox::Icon icon, const TQString & text, const Job * job, const TQString & caption, int options ) {
KDialogBase * dialog = showAuditLogButton( job )
? new KDialogBase( caption, KDialogBase::Yes | KDialogBase::No,
KDialogBase::Yes, KDialogBase::Yes,
- tqparent, "error", true, true,
+ parent, "error", true, true,
KStdGuiItem::ok(), KGuiItem_showAuditLog() )
: new KDialogBase( caption, KDialogBase::Yes,
KDialogBase::Yes, KDialogBase::Yes,
- tqparent, "error", true, true,
+ parent, "error", true, true,
KStdGuiItem::ok() ) ;
if ( options & KMessageBox::PlainCaption )
dialog->setPlainCaption( caption );