summaryrefslogtreecommitdiffstats
path: root/src/gvcore/document.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 00:06:13 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 00:06:13 -0600
commitf10950a5b2fef43a5f3a99170682eea55fe9b80b (patch)
treeaaaec7f404be3c85dba99e083c63a46d4e29184d /src/gvcore/document.cpp
parente9654e1a22ff355962fd97168f051336b814f4aa (diff)
downloadgwenview-f10950a5b2fef43a5f3a99170682eea55fe9b80b.tar.gz
gwenview-f10950a5b2fef43a5f3a99170682eea55fe9b80b.zip
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'src/gvcore/document.cpp')
-rw-r--r--src/gvcore/document.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gvcore/document.cpp b/src/gvcore/document.cpp
index f6db357..b7d3ca8 100644
--- a/src/gvcore/document.cpp
+++ b/src/gvcore/document.cpp
@@ -92,7 +92,7 @@ public:
TQString mMimeType;
TQCString mImageFormat;
DocumentImpl* mImpl;
- TQGuardedPtr<KIO::StatJob> mStatJob;
+ TQGuardedPtr<TDEIO::StatJob> mStatJob;
int mFileSize;
};
@@ -195,14 +195,14 @@ void Document::setURL(const KURL& paramURL) {
}
d->mURL = localURL; // this may be fixed after stat() is complete, but set at least something
- d->mStatJob = KIO::stat( localURL, !localURL.isLocalFile() );
+ d->mStatJob = TDEIO::stat( localURL, !localURL.isLocalFile() );
d->mStatJob->setWindow(TDEApplication::kApplication()->mainWidget());
- connect( d->mStatJob, TQT_SIGNAL( result (KIO::Job *) ),
- this, TQT_SLOT( slotStatResult (KIO::Job *) ) );
+ connect( d->mStatJob, TQT_SIGNAL( result (TDEIO::Job *) ),
+ this, TQT_SLOT( slotStatResult (TDEIO::Job *) ) );
}
-void Document::slotStatResult(KIO::Job* job) {
+void Document::slotStatResult(TDEIO::Job* job) {
LOG("");
Q_ASSERT(d->mStatJob==job);
if (d->mStatJob!=job) {
@@ -213,12 +213,12 @@ void Document::slotStatResult(KIO::Job* job) {
if (d->mStatJob->error()) return;
bool isDir=false;
- KIO::UDSEntry entry = d->mStatJob->statResult();
+ TDEIO::UDSEntry entry = d->mStatJob->statResult();
d->mURL=d->mStatJob->url();
- KIO::UDSEntry::ConstIterator it;
+ TDEIO::UDSEntry::ConstIterator it;
for(it=entry.begin();it!=entry.end();++it) {
- if ((*it).m_uds==KIO::UDS_FILE_TYPE) {
+ if ((*it).m_uds==TDEIO::UDS_FILE_TYPE) {
isDir=S_ISDIR( (*it).m_long );
break;
}