summaryrefslogtreecommitdiffstats
path: root/kviewshell
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2025-01-20 18:26:31 +0900
committerMichele Calgaro <[email protected]>2025-02-03 21:44:59 +0900
commit52bf4ce9dd80ed5179fe6be622626c3376c0da99 (patch)
tree15d3c15b63288acf6505ced3d265f55cef05cf98 /kviewshell
parent169841a34676151ac67711c7d05c6343fdf50697 (diff)
downloadtdegraphics-52bf4ce9dd80ed5179fe6be622626c3376c0da99.tar.gz
tdegraphics-52bf4ce9dd80ed5179fe6be622626c3376c0da99.zip
Use tdeApp
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'kviewshell')
-rw-r--r--kviewshell/documentWidget.cpp6
-rw-r--r--kviewshell/kviewpart.cpp4
-rw-r--r--kviewshell/kviewshell.cpp8
-rw-r--r--kviewshell/marklist.cpp4
-rw-r--r--kviewshell/plugins/djvu/djvurenderer.cpp10
-rw-r--r--kviewshell/tdemultipage.cpp6
6 files changed, 19 insertions, 19 deletions
diff --git a/kviewshell/documentWidget.cpp b/kviewshell/documentWidget.cpp
index 90533c26..dfd97033 100644
--- a/kviewshell/documentWidget.cpp
+++ b/kviewshell/documentWidget.cpp
@@ -187,7 +187,7 @@ void DocumentWidget::paintEvent(TQPaintEvent *e)
if (!isVisible())
{
//kdDebug() << "widget of page " << pageNr << " is not visible. Abort rendering" << endl;
- kapp->processEvents();
+ tdeApp->processEvents();
return;
}
@@ -687,7 +687,7 @@ void DocumentWidget::delayedRequestPage()
//kdDebug() << "delayedRequest: widget of page " << pageNr << " is not visible. Abort rendering" << endl;
pixmapRequested = false;
- kapp->processEvents();
+ tdeApp->processEvents();
return;
}
@@ -699,7 +699,7 @@ void DocumentWidget::delayedRequestPage()
// displayed one after another. Widthout it all widgets are updated after all the rendering
// is completed. This is especially noticable in overview mode. After the change to a seperate
// rendering thread this will probably not be needed anymore.
- kapp->processEvents();
+ tdeApp->processEvents();
}
TQSize DocumentWidget::pageSize() const
diff --git a/kviewshell/kviewpart.cpp b/kviewshell/kviewpart.cpp
index a370bc76..ae9d673f 100644
--- a/kviewshell/kviewpart.cpp
+++ b/kviewshell/kviewpart.cpp
@@ -724,7 +724,7 @@ bool KViewPart::openFile()
bool progress_dialog_was_cancelled = false;
while ((read = filterDev->readBlock(buf.data(), buf.size())) > 0)
{
- kapp->processEvents();
+ tdeApp->processEvents();
progress_dialog_was_cancelled = prog->wasCancelled();
if (progress_dialog_was_cancelled)
break;
@@ -856,7 +856,7 @@ bool KViewPart::openFile()
// is at first show at a very small zoomlevel before the zoom switches to the right value.
// This makes the plugin switching actually slower.
// TODO: Get rid of this without causing nasty artifacts.
- kapp->processEvents();
+ tdeApp->processEvents();
initializeMultiPage();
partManager->setActivePart(this);
diff --git a/kviewshell/kviewshell.cpp b/kviewshell/kviewshell.cpp
index 12d56b73..ff6b3902 100644
--- a/kviewshell/kviewshell.cpp
+++ b/kviewshell/kviewshell.cpp
@@ -158,8 +158,8 @@ void KViewShell::slotQuit()
menuBar()->show();
view->slotSetFullPage(false);
}
- kapp->closeAllWindows();
- kapp->quit();
+ tdeApp->closeAllWindows();
+ tdeApp->quit();
}
@@ -168,7 +168,7 @@ void KViewShell::readSettings()
resize(600, 300); // default size if the config file specifies no size
setAutoSaveSettings( "General" ); // apply mainwindow settings (size, toolbars, etc.)
- TDEConfig *config = kapp->config();
+ TDEConfig *config = tdeApp->config();
config->setGroup("General");
recent->loadEntries(config, "Recent Files");
@@ -191,7 +191,7 @@ void KViewShell::readSettings()
void KViewShell::writeSettings()
{
- TDEConfig *config = kapp->config();
+ TDEConfig *config = tdeApp->config();
config->setGroup( "General" );
recent->saveEntries(config, "Recent Files");
diff --git a/kviewshell/marklist.cpp b/kviewshell/marklist.cpp
index 0d895df3..fcd80160 100644
--- a/kviewshell/marklist.cpp
+++ b/kviewshell/marklist.cpp
@@ -144,7 +144,7 @@ void ThumbnailWidget::setThumbnail()
// When we are fast scrolling thru the document. Many paint events are created, that
// are often not needed anymore at the time the eventloop executes them.
//kdDebug() << "Delayed request Abort Thumbnail drawing for page " << pageNumber << endl;
- kapp->processEvents();
+ tdeApp->processEvents();
return;
}
@@ -157,7 +157,7 @@ void ThumbnailWidget::setThumbnail()
setFixedHeight(thumbnail.height() + 2);
update();
- kapp->processEvents();
+ tdeApp->processEvents();
}
diff --git a/kviewshell/plugins/djvu/djvurenderer.cpp b/kviewshell/plugins/djvu/djvurenderer.cpp
index 2bac1743..2fac80bb 100644
--- a/kviewshell/plugins/djvu/djvurenderer.cpp
+++ b/kviewshell/plugins/djvu/djvurenderer.cpp
@@ -403,7 +403,7 @@ bool DjVuRenderer::initializeDocument()
for(TQ_UINT16 i=0; i<numPages; i++) {
// Keep the GUI updated
if (i%100 == 0)
- kapp->processEvents();
+ tdeApp->processEvents();
GP<DjVuFile> djvuFile = document->get_djvu_file(i);
int resolution;
@@ -611,7 +611,7 @@ bool DjVuRenderer::convertToPSFile( DjVuToPS &converter, TQString filename, TQVa
delete pdialog;
// This is to keep the GUI updated.
- kapp->processEvents();
+ tdeApp->processEvents();
obs->flush();
return !iscancelled;
@@ -639,7 +639,7 @@ void DjVuRenderer::deletePages(TQ_UINT16 from, TQ_UINT16 to)
pdialog->progressBar()->setTotalSteps(to-from+1);
pdialog->progressBar()->setFormat(TQString());
pdialog->show();
- kapp->processEvents();
+ tdeApp->processEvents();
}
// set the document pointer temporarily to 0, so that no-one tries
@@ -658,7 +658,7 @@ void DjVuRenderer::deletePages(TQ_UINT16 from, TQ_UINT16 to)
document_new->remove_page(from-1);
pdialog->progressBar()->setProgress(i-from);
pdialog->progressBar()->setFormat(i18n("deleting page %1").arg(i));
- kapp->processEvents();
+ tdeApp->processEvents();
}
delete pdialog;
}
@@ -712,7 +712,7 @@ void DjVuRenderer::printerInfoCallBack(int page_num, int page_count, int, DjVuTo
G_THROW("STOP");
// This is to keep the GUI updated.
- kapp->processEvents();
+ tdeApp->processEvents();
}
diff --git a/kviewshell/tdemultipage.cpp b/kviewshell/tdemultipage.cpp
index 49294609..b11f9b38 100644
--- a/kviewshell/tdemultipage.cpp
+++ b/kviewshell/tdemultipage.cpp
@@ -639,7 +639,7 @@ void KMultiPage::handleLocalLink(const TQString &linkText)
TQStringList args;
args << "openURL";
args << Link_Url.toString();
- kapp->tdeinitExec("kfmclient", args);
+ tdeApp->tdeinitExec("kfmclient", args);
}
}
}
@@ -1428,7 +1428,7 @@ void KMultiPage::findNextText()
if (i != 0)
{
setStatusBarText(i18n("Search page %1 of %2").arg(pageNumber).arg(numberOfPages()));
- kapp->processEvents();
+ tdeApp->processEvents();
}
// Check if we already have a rendered version of the page in the cache. As we are only interested in the
@@ -1570,7 +1570,7 @@ void KMultiPage::findPrevText()
if (i != 0)
{
setStatusBarText(i18n("Search page %1 of %2").arg(pageNumber).arg(numberOfPages()));
- kapp->processEvents();
+ tdeApp->processEvents();
}
// Check if we already have a rendered version of the page in the cache. As we are only interested in the