summaryrefslogtreecommitdiffstats
path: root/src/gvcore
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-19 23:53:44 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-19 23:53:44 -0600
commit4d3c1787513cb6c17f4e087bcf5e25b801731d94 (patch)
treee82c7e7e03f7c760013daa37a4bc3c5129a39b84 /src/gvcore
parent4ff6dfc573c9413a887afd35ec2d6825e60067bc (diff)
downloadgwenview-4d3c1787513cb6c17f4e087bcf5e25b801731d94.tar.gz
gwenview-4d3c1787513cb6c17f4e087bcf5e25b801731d94.zip
Rename KApplication to TDEApplication to avoid conflicts with KDE4
Diffstat (limited to 'src/gvcore')
-rw-r--r--src/gvcore/document.cpp4
-rw-r--r--src/gvcore/documentloadedimpl.cpp2
-rw-r--r--src/gvcore/imageloader.cpp4
-rw-r--r--src/gvcore/imageviewcontroller.cpp4
-rw-r--r--src/gvcore/mimetypeutils.cpp2
-rw-r--r--src/gvcore/thumbnailloadjob.cpp6
6 files changed, 11 insertions, 11 deletions
diff --git a/src/gvcore/document.cpp b/src/gvcore/document.cpp
index b994669..f4310cb 100644
--- a/src/gvcore/document.cpp
+++ b/src/gvcore/document.cpp
@@ -76,7 +76,7 @@ const char* CONFIG_SAVE_AUTOMATICALLY="save automatically";
* Returns a widget suitable to use as a dialog parent
*/
static TQWidget* dialogParentWidget() {
- return KApplication::kApplication()->mainWidget();
+ return TDEApplication::kApplication()->mainWidget();
}
//-------------------------------------------------------------------
@@ -196,7 +196,7 @@ 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->setWindow(KApplication::kApplication()->mainWidget());
+ d->mStatJob->setWindow(TDEApplication::kApplication()->mainWidget());
connect( d->mStatJob, TQT_SIGNAL( result (KIO::Job *) ),
this, TQT_SLOT( slotStatResult (KIO::Job *) ) );
}
diff --git a/src/gvcore/documentloadedimpl.cpp b/src/gvcore/documentloadedimpl.cpp
index 59eee19..08eb24f 100644
--- a/src/gvcore/documentloadedimpl.cpp
+++ b/src/gvcore/documentloadedimpl.cpp
@@ -175,7 +175,7 @@ TQString DocumentLoadedImpl::save(const KURL& _url, const TQCString& format) con
return i18n("Could not write to %1.").arg(url.path());
}
} else {
- if (!KIO::NetAccess::upload(tmp.name(), url, KApplication::kApplication()->mainWidget() )) {
+ if (!KIO::NetAccess::upload(tmp.name(), url, TDEApplication::kApplication()->mainWidget() )) {
return i18n("Could not upload the file to %1.").arg(url.prettyURL());
}
}
diff --git a/src/gvcore/imageloader.cpp b/src/gvcore/imageloader.cpp
index 78ab568..ee43c5b 100644
--- a/src/gvcore/imageloader.cpp
+++ b/src/gvcore/imageloader.cpp
@@ -327,7 +327,7 @@ void ImageLoader::checkPendingStat() {
if( d->mSuspended || d->mGetState != GET_PENDING_STAT ) return;
KIO::Job* job=KIO::stat( d->mURL, false );
- job->setWindow(KApplication::kApplication()->mainWidget());
+ job->setWindow(TDEApplication::kApplication()->mainWidget());
connect(job, TQT_SIGNAL(result(KIO::Job*)),
this, TQT_SLOT(slotStatResult(KIO::Job*)) );
d->mGetState = GET_STATING;
@@ -393,7 +393,7 @@ void ImageLoader::checkPendingGet() {
// Start loading the image
KIO::Job* getJob=KIO::get( d->mURL, false, false);
- getJob->setWindow(KApplication::kApplication()->mainWidget());
+ getJob->setWindow(TDEApplication::kApplication()->mainWidget());
connect(getJob, TQT_SIGNAL(data(KIO::Job*, const TQByteArray&)),
this, TQT_SLOT(slotDataReceived(KIO::Job*, const TQByteArray&)) );
diff --git a/src/gvcore/imageviewcontroller.cpp b/src/gvcore/imageviewcontroller.cpp
index 3634146..8416224 100644
--- a/src/gvcore/imageviewcontroller.cpp
+++ b/src/gvcore/imageviewcontroller.cpp
@@ -285,7 +285,7 @@ ImageViewController::ImageViewController(TQWidget* parent, Document* document, K
d->mImageView=new ImageView(d->mStack, document, actionCollection);
d->mStack->addWidget(d->mImageView);
- KApplication::kApplication()->installEventFilter(this);
+ TDEApplication::kApplication()->installEventFilter(this);
d->mPlayerPart=0;
d->mBuilder=new XMLGUIBuilder(d->mToolBar);
@@ -395,7 +395,7 @@ void ImageViewController::slotAutoHide() {
}
// Only hide cursor if we are not over a dialog
- TQWidget* widget = TQT_TQWIDGET(KApplication::kApplication()->activeWindow());
+ TQWidget* widget = TQT_TQWIDGET(TDEApplication::kApplication()->activeWindow());
if (!widget || !widget->inherits(TQDIALOG_OBJECT_NAME_STRING)) {
TQApplication::setOverrideCursor(blankCursor);
d->mCursorHidden=true;
diff --git a/src/gvcore/mimetypeutils.cpp b/src/gvcore/mimetypeutils.cpp
index 828f025..1925b7d 100644
--- a/src/gvcore/mimetypeutils.cpp
+++ b/src/gvcore/mimetypeutils.cpp
@@ -77,7 +77,7 @@ Kind urlKind(const KURL& url) {
if (url.isLocalFile()) {
mimeType=KMimeType::findByURL(url)->name();
} else {
- mimeType=KIO::NetAccess::mimetype(url, KApplication::kApplication()->mainWidget());
+ mimeType=KIO::NetAccess::mimetype(url, TDEApplication::kApplication()->mainWidget());
}
return mimeTypeKind(mimeType);
}
diff --git a/src/gvcore/thumbnailloadjob.cpp b/src/gvcore/thumbnailloadjob.cpp
index c61e0d0..63b38e4 100644
--- a/src/gvcore/thumbnailloadjob.cpp
+++ b/src/gvcore/thumbnailloadjob.cpp
@@ -554,7 +554,7 @@ void ThumbnailLoadJob::determineNextIcon() {
}
if( mOriginalTime == 0 ) { // KIO must be used
KIO::Job* job = KIO::stat(mCurrentURL,false);
- job->setWindow(KApplication::kApplication()->mainWidget());
+ job->setWindow(TDEApplication::kApplication()->mainWidget());
LOG( "KIO::stat orig " << mCurrentURL.url() );
addSubjob(job);
}
@@ -701,7 +701,7 @@ void ThumbnailLoadJob::checkThumbnail() {
KURL url;
url.setPath(mTempPath);
KIO::Job* job=KIO::file_copy(mCurrentURL, url,-1,true,false,false);
- job->setWindow(KApplication::kApplication()->mainWidget());
+ job->setWindow(TDEApplication::kApplication()->mainWidget());
LOG("Download remote file " << mCurrentURL.prettyURL());
addSubjob(job);
}
@@ -711,7 +711,7 @@ void ThumbnailLoadJob::checkThumbnail() {
KFileItemList list;
list.append(mCurrentItem);
KIO::Job* job=KIO::filePreview(list, mThumbnailSize);
- job->setWindow(KApplication::kApplication()->mainWidget());
+ job->setWindow(TDEApplication::kApplication()->mainWidget());
connect(job, TQT_SIGNAL(gotPreview(const KFileItem*, const TQPixmap&)),
this, TQT_SLOT(slotGotPreview(const KFileItem*, const TQPixmap&)) );
connect(job, TQT_SIGNAL(failed(const KFileItem*)),