summaryrefslogtreecommitdiffstats
path: root/superkaramba/src/imagelabel.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 00:38:13 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 00:38:13 -0600
commit4bb787f41f7cdefac2aac33ef59317b7157302c1 (patch)
treec9726401d4eeb6fff8e78c4e35facb644c417e77 /superkaramba/src/imagelabel.cpp
parentaef5eada7f51ee48f3d21448db290bd8f06953a8 (diff)
downloadtdeutils-4bb787f41f7cdefac2aac33ef59317b7157302c1.tar.gz
tdeutils-4bb787f41f7cdefac2aac33ef59317b7157302c1.zip
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'superkaramba/src/imagelabel.cpp')
-rw-r--r--superkaramba/src/imagelabel.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/superkaramba/src/imagelabel.cpp b/superkaramba/src/imagelabel.cpp
index 9df0834..64c523f 100644
--- a/superkaramba/src/imagelabel.cpp
+++ b/superkaramba/src/imagelabel.cpp
@@ -255,13 +255,13 @@ void ImageLabel::applyTransformations(bool useSmoothScale)
setHeight(pixmap.height());
}
-void ImageLabel::slotCopyResult(KIO::Job* job)
+void ImageLabel::slotCopyResult(TDEIO::Job* job)
{
- TQString tempFile = ((KIO::FileCopyJob*)job)->destURL().path();
+ TQString tempFile = ((TDEIO::FileCopyJob*)job)->destURL().path();
if(job->error() == 0)
{
setValue(tempFile);
- imagePath = ((KIO::FileCopyJob*)job)->srcURL().path();
+ imagePath = ((TDEIO::FileCopyJob*)job)->srcURL().path();
emit pixmapLoaded();
}
else
@@ -269,7 +269,7 @@ void ImageLabel::slotCopyResult(KIO::Job* job)
tqWarning("Error downloading (%s): %s", job->errorText().ascii(),
tempFile.ascii());
}
- KIO::NetAccess::removeTempFile(tempFile);
+ TDEIO::NetAccess::removeTempFile(tempFile);
}
void ImageLabel::setValue(TQString fn)
@@ -285,10 +285,10 @@ void ImageLabel::setValue(TQString fn)
if(protocol && url.isLocalFile() == false)
{
KTempFile tmpFile;
- KIO::FileCopyJob* copy = KIO::file_copy(fileName, tmpFile.name(), 0600,
+ TDEIO::FileCopyJob* copy = TDEIO::file_copy(fileName, tmpFile.name(), 0600,
true, false, false);
- connect(copy, TQT_SIGNAL(result(KIO::Job*)),
- this, TQT_SLOT(slotCopyResult(KIO::Job*)));
+ connect(copy, TQT_SIGNAL(result(TDEIO::Job*)),
+ this, TQT_SLOT(slotCopyResult(TDEIO::Job*)));
return;
}
else
@@ -446,13 +446,13 @@ void ImageLabel::parseImages(TQString fn, TQString fn_roll, int _xoff,
{
TQString tmpFile;
#if defined(KDE_3_2)
- if(KIO::NetAccess::download(KURL(path), tmpFile, karambaApp->parentWindow()))
+ if(TDEIO::NetAccess::download(KURL(path), tmpFile, karambaApp->parentWindow()))
#else
- if(KIO::NetAccess::download(KURL(path), tmpFile))
+ if(TDEIO::NetAccess::download(KURL(path), tmpFile))
#endif
{
pixmap_off = KPixmap(tmpFile);
- KIO::NetAccess::removeTempFile(tmpFile);
+ TDEIO::NetAccess::removeTempFile(tmpFile);
tqDebug( "Downloaded: %s to %s", path.ascii(), tmpFile.ascii() );
}
else
@@ -494,13 +494,13 @@ void ImageLabel::parseImages(TQString fn, TQString fn_roll, int _xoff,
{
TQString tmpFile;
#if defined(KDE_3_2)
- if(KIO::NetAccess::download(KURL(path), tmpFile, karambaApp->parentWindow()))
+ if(TDEIO::NetAccess::download(KURL(path), tmpFile, karambaApp->parentWindow()))
#else
- if(KIO::NetAccess::download(KURL(path), tmpFile))
+ if(TDEIO::NetAccess::download(KURL(path), tmpFile))
#endif
{
pixmap_on = KPixmap(tmpFile);
- KIO::NetAccess::removeTempFile(tmpFile);
+ TDEIO::NetAccess::removeTempFile(tmpFile);
tqDebug( "Downloaded: %s to %s", path.ascii(), tmpFile.ascii());
}
else