From a9bde819f2b421dcc44741156e75eca4bb5fb4f4 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 24 Jan 2013 13:49:30 -0600 Subject: Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4 --- libkpgp/kpgpbase2.cpp | 2 +- libkpgp/kpgpbase5.cpp | 4 ++-- libkpgp/kpgpbaseG.cpp | 4 ++-- libkpgp/kpgpui.cpp | 10 +++++----- 4 files changed, 10 insertions(+), 10 deletions(-) (limited to 'libkpgp') diff --git a/libkpgp/kpgpbase2.cpp b/libkpgp/kpgpbase2.cpp index 9427edaf..b8a6448a 100644 --- a/libkpgp/kpgpbase2.cpp +++ b/libkpgp/kpgpbase2.cpp @@ -533,7 +533,7 @@ Base2::doGetPublicKeys( const TQCString & cmd, const TQStringList & patterns ) for ( TQStringList::ConstIterator it = patterns.begin(); it != patterns.end(); ++it ) { - exitStatus = run( cmd + " " + KProcess::quote( *it ).local8Bit(), + exitStatus = run( cmd + " " + TDEProcess::quote( *it ).local8Bit(), 0, true ); if ( exitStatus != 0 ) { diff --git a/libkpgp/kpgpbase5.cpp b/libkpgp/kpgpbase5.cpp index 0e583732..d7066cb9 100644 --- a/libkpgp/kpgpbase5.cpp +++ b/libkpgp/kpgpbase5.cpp @@ -363,7 +363,7 @@ Base5::publicKeys( const TQStringList & patterns ) for ( TQStringList::ConstIterator it = patterns.begin(); it != patterns.end(); ++it ) { cmd += " "; - cmd += KProcess::quote( *it ).local8Bit(); + cmd += TDEProcess::quote( *it ).local8Bit(); } status = 0; exitStatus = run( cmd, 0, true ); @@ -393,7 +393,7 @@ Base5::secretKeys( const TQStringList & patterns ) for ( TQStringList::ConstIterator it = patterns.begin(); it != patterns.end(); ++it ) { cmd += " "; - cmd += KProcess::quote( *it ).local8Bit(); + cmd += TDEProcess::quote( *it ).local8Bit(); } status = 0; exitStatus = run( cmd, 0, true ); diff --git a/libkpgp/kpgpbaseG.cpp b/libkpgp/kpgpbaseG.cpp index 251a7737..52bb6bc7 100644 --- a/libkpgp/kpgpbaseG.cpp +++ b/libkpgp/kpgpbaseG.cpp @@ -414,7 +414,7 @@ BaseG::publicKeys( const TQStringList & patterns ) for ( TQStringList::ConstIterator it = patterns.begin(); it != patterns.end(); ++it ) { cmd += " "; - cmd += KProcess::quote( *it ).local8Bit(); + cmd += TDEProcess::quote( *it ).local8Bit(); } status = 0; exitStatus = runGpg( cmd, 0, true ); @@ -446,7 +446,7 @@ BaseG::secretKeys( const TQStringList & patterns ) for ( TQStringList::ConstIterator it = patterns.begin(); it != patterns.end(); ++it ) { cmd += " "; - cmd += KProcess::quote( *it ).local8Bit(); + cmd += TDEProcess::quote( *it ).local8Bit(); } status = 0; exitStatus = runGpg( cmd, 0, true ); diff --git a/libkpgp/kpgpui.cpp b/libkpgp/kpgpui.cpp index 37533220..2e6d7160 100644 --- a/libkpgp/kpgpui.cpp +++ b/libkpgp/kpgpui.cpp @@ -543,13 +543,13 @@ TQString KeySelectionDialog::keyInfo( const Kpgp::Key *key ) const if( remark.isEmpty() ) { return " " + i18n("creation date and status of an OpenPGP key", "Creation date: %1, Status: %2") - .arg( KGlobal::locale()->formatDate( dt.date(), true ) ) + .arg( TDEGlobal::locale()->formatDate( dt.date(), true ) ) .arg( status ); } else { return " " + i18n("creation date, status and remark of an OpenPGP key", "Creation date: %1, Status: %2 (%3)") - .arg( KGlobal::locale()->formatDate( dt.date(), true ) ) + .arg( TDEGlobal::locale()->formatDate( dt.date(), true ) ) .arg( status ) .arg( remark ); } @@ -1498,7 +1498,7 @@ KeyApprovalDialog::KeyApprovalDialog( const TQStringList& addresses, + marginHint() + 2; // don't make the dialog too large - TQRect desk = KGlobalSettings::desktopGeometry(this); + TQRect desk = TDEGlobalSettings::desktopGeometry(this); int screenWidth = desk.width(); if( dialogWidth > 3*screenWidth/4 ) dialogWidth = 3*screenWidth/4; @@ -1635,7 +1635,7 @@ CipherTextDialog::CipherTextDialog( const TQCString & text, unicodeText = TQString::fromLocal8Bit(text.data()); else { bool ok=true; - TQTextCodec *codec = KGlobal::charsets()->codecForName(charset, ok); + TQTextCodec *codec = TDEGlobal::charsets()->codecForName(charset, ok); if(!ok) unicodeText = TQString::fromLocal8Bit(text.data()); else @@ -1660,7 +1660,7 @@ void CipherTextDialog::setMinimumSize() #if KDE_IS_VERSION( 3, 1, 90 ) - int maxWidth = KGlobalSettings::desktopGeometry(parentWidget()).width()-100; + int maxWidth = TDEGlobalSettings::desktopGeometry(parentWidget()).width()-100; #else KConfig gc("kdeglobals", false, false); gc.setGroup("Windows"); -- cgit v1.2.3