diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-25 00:06:13 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-25 00:06:13 -0600 |
commit | f10950a5b2fef43a5f3a99170682eea55fe9b80b (patch) | |
tree | aaaec7f404be3c85dba99e083c63a46d4e29184d /src/gvimagepart/gvimagepart.cpp | |
parent | e9654e1a22ff355962fd97168f051336b814f4aa (diff) | |
download | gwenview-f10950a5b2fef43a5f3a99170682eea55fe9b80b.tar.gz gwenview-f10950a5b2fef43a5f3a99170682eea55fe9b80b.zip |
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'src/gvimagepart/gvimagepart.cpp')
-rw-r--r-- | src/gvimagepart/gvimagepart.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/gvimagepart/gvimagepart.cpp b/src/gvimagepart/gvimagepart.cpp index 68b75eb..f36796c 100644 --- a/src/gvimagepart/gvimagepart.cpp +++ b/src/gvimagepart/gvimagepart.cpp @@ -129,7 +129,7 @@ GVImagePart::~GVImagePart() { void GVImagePart::partActivateEvent(KParts::PartActivateEvent* event) { if (event->activated()) { - KConfig* config=new KConfig("gwenviewrc"); + TDEConfig* config=new TDEConfig("gwenviewrc"); Cache::instance()->readConfig(config,CONFIG_CACHE_GROUP); delete config; } @@ -329,7 +329,7 @@ void GVImagePart::saveAs() { } -void GVImagePart::showJobError(KIO::Job* job) { +void GVImagePart::showJobError(TDEIO::Job* job) { if (job->error() != 0) { job->showErrorDialog(widget()); } @@ -348,11 +348,11 @@ void GVImagePart::saveOriginalAs() { TQByteArray data = Cache::instance()->file(srcURL); if (data.size() == 0) { - // We need to read the image again. Let KIO::copy do the work. - KIO::Job* job = KIO::copy(srcURL, dstURL); + // We need to read the image again. Let TDEIO::copy do the work. + TDEIO::Job* job = TDEIO::copy(srcURL, dstURL); job->setWindow(widget()); - connect(job, TQT_SIGNAL(result(KIO::Job*)), - this, TQT_SLOT(showJobError(KIO::Job*)) ); + connect(job, TQT_SIGNAL(result(TDEIO::Job*)), + this, TQT_SLOT(showJobError(TDEIO::Job*)) ); return; } @@ -386,14 +386,14 @@ DataUploader::DataUploader(TQWidget* dialogParent, const TQByteArray& data, cons // Now upload it KURL tmpURL; tmpURL.setPath(mTempFile.name()); - KIO::Job* job = KIO::copy(tmpURL, dstURL); + TDEIO::Job* job = TDEIO::copy(tmpURL, dstURL); job->setWindow(dialogParent); - connect(job, TQT_SIGNAL(result(KIO::Job*)), - this, TQT_SLOT(slotJobFinished(KIO::Job*)) ); + connect(job, TQT_SIGNAL(result(TDEIO::Job*)), + this, TQT_SLOT(slotJobFinished(TDEIO::Job*)) ); } -void DataUploader::slotJobFinished(KIO::Job* job) { +void DataUploader::slotJobFinished(TDEIO::Job* job) { if (job->error() != 0) { job->showErrorDialog(mDialogParent); } |