summaryrefslogtreecommitdiffstats
path: root/libtdepim/addresseeview.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 00:37:21 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 00:37:21 -0600
commit86d8364ac704bdc8ad2dfcf52307d9626cfac567 (patch)
tree97d3ac2c2f60780d9a1de4f82caac7cb27534501 /libtdepim/addresseeview.cpp
parenta9bde819f2b421dcc44741156e75eca4bb5fb4f4 (diff)
downloadtdepim-86d8364ac704bdc8ad2dfcf52307d9626cfac567.tar.gz
tdepim-86d8364ac704bdc8ad2dfcf52307d9626cfac567.zip
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'libtdepim/addresseeview.cpp')
-rw-r--r--libtdepim/addresseeview.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/libtdepim/addresseeview.cpp b/libtdepim/addresseeview.cpp
index 5be001a67..559f01713 100644
--- a/libtdepim/addresseeview.cpp
+++ b/libtdepim/addresseeview.cpp
@@ -51,7 +51,7 @@
using namespace KPIM;
AddresseeView::AddresseeView( TQWidget *parent, const char *name,
- KConfig *config )
+ TDEConfig *config )
: KTextBrowser( parent, name ), mDefaultConfig( false ), mImageJob( 0 ),
mLinkMask( AddressLinks | EmailLinks | PhoneLinks | URLLinks | IMLinks | CustomFields )
{
@@ -97,7 +97,7 @@ AddresseeView::AddresseeView( TQWidget *parent, const char *name,
connect( mActionShowCustomFields, TQT_SIGNAL( toggled( bool ) ), TQT_SLOT( configChanged() ) );
if ( !config ) {
- mConfig = new KConfig( "kaddressbookrc" );
+ mConfig = new TDEConfig( "kaddressbookrc" );
mDefaultConfig = true;
} else
mConfig = config;
@@ -546,11 +546,11 @@ void AddresseeView::updateView()
if ( mImageData.count() > 0 )
TQMimeSourceFactory::defaultFactory()->setImage( imageURL, TQImage(mImageData) );
else {
- mImageJob = KIO::get( KURL( picture.url() ), false, false );
- connect( mImageJob, TQT_SIGNAL( data( KIO::Job*, const TQByteArray& ) ),
- this, TQT_SLOT( data( KIO::Job*, const TQByteArray& ) ) );
- connect( mImageJob, TQT_SIGNAL( result( KIO::Job* ) ),
- this, TQT_SLOT( result( KIO::Job* ) ) );
+ mImageJob = TDEIO::get( KURL( picture.url() ), false, false );
+ connect( mImageJob, TQT_SIGNAL( data( TDEIO::Job*, const TQByteArray& ) ),
+ this, TQT_SLOT( data( TDEIO::Job*, const TQByteArray& ) ) );
+ connect( mImageJob, TQT_SIGNAL( result( TDEIO::Job* ) ),
+ this, TQT_SLOT( result( TDEIO::Job* ) ) );
}
} else {
TQMimeSourceFactory::defaultFactory()->setPixmap( imageURL,
@@ -582,7 +582,7 @@ void AddresseeView::emailClicked( const TQString &email )
void AddresseeView::phoneNumberClicked( const TQString &number )
{
- KConfig config( "kaddressbookrc" );
+ TDEConfig config( "kaddressbookrc" );
config.setGroup( "General" );
TQString commandLine = config.readEntry( "PhoneHookApplication" );
@@ -597,7 +597,7 @@ void AddresseeView::phoneNumberClicked( const TQString &number )
void AddresseeView::smsTextClicked( const TQString &number )
{
- KConfig config( "kaddressbookrc" );
+ TDEConfig config( "kaddressbookrc" );
config.setGroup( "General" );
TQString commandLine = config.readEntry( "SMSHookApplication" );
@@ -614,7 +614,7 @@ void AddresseeView::smsTextClicked( const TQString &number )
void AddresseeView::sendSMS( const TQString &number, const TQString &text )
{
- KConfig config( "kaddressbookrc" );
+ TDEConfig config( "kaddressbookrc" );
config.setGroup( "General" );
TQString commandLine = config.readEntry( "SMSHookApplication" );
@@ -631,7 +631,7 @@ void AddresseeView::sendSMS( const TQString &number, const TQString &text )
void AddresseeView::faxNumberClicked( const TQString &number )
{
- KConfig config( "kaddressbookrc" );
+ TDEConfig config( "kaddressbookrc" );
config.setGroup( "General" );
TQString commandLine = config.readEntry( "FaxHookApplication", "tdeprintfax --phone %N" );
@@ -734,14 +734,14 @@ void AddresseeView::configChanged()
updateView();
}
-void AddresseeView::data( KIO::Job*, const TQByteArray &d )
+void AddresseeView::data( TDEIO::Job*, const TQByteArray &d )
{
unsigned int oldSize = mImageData.size();
mImageData.resize( oldSize + d.size() );
memcpy( mImageData.data() + oldSize, d.data(), d.size() );
}
-void AddresseeView::result( KIO::Job *job )
+void AddresseeView::result( TDEIO::Job *job )
{
mImageJob = 0;