From f989443912807e83607d0bb08a6ff7889632cf17 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 20 Jan 2025 19:39:12 +0900 Subject: Use tdeApp Signed-off-by: Michele Calgaro --- quanta/src/document.cpp | 2 +- quanta/src/dtds.cpp | 4 ++-- quanta/src/kqapp.cpp | 4 ++-- quanta/src/quanta.cpp | 10 +++++----- quanta/src/quanta_init.cpp | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) (limited to 'quanta/src') diff --git a/quanta/src/document.cpp b/quanta/src/document.cpp index 49b3d195..8e667b3b 100644 --- a/quanta/src/document.cpp +++ b/quanta/src/document.cpp @@ -2793,7 +2793,7 @@ void Document::convertCase() progressDlg.setLabel(i18n("Changing tag and attribute case. This may take some time, depending on the document complexity.")); progressDlg.setAllowCancel(false); progressDlg.show(); - kapp->eventLoop()->processEvents( TQEventLoop::ExcludeUserInput | TQEventLoop::ExcludeSocketNotifiers); + tdeApp->eventLoop()->processEvents( TQEventLoop::ExcludeUserInput | TQEventLoop::ExcludeSocketNotifiers); KProgress *pBar = progressDlg.progressBar(); pBar->setValue(0); pBar->setTotalSteps(nodeNum); diff --git a/quanta/src/dtds.cpp b/quanta/src/dtds.cpp index bf257a0c..c9e8e83c 100644 --- a/quanta/src/dtds.cpp +++ b/quanta/src/dtds.cpp @@ -239,7 +239,7 @@ bool DTDs::readTagDir2(DTDStruct *dtd) if (!TQFile::exists(dtd->fileName)) return false; - kapp->setOverrideCursor( TQCursor(TQt::WaitCursor) ); + tdeApp->setOverrideCursor( TQCursor(TQt::WaitCursor) ); TDEConfig *dtdConfig = new TDEConfig(dtd->fileName, true); @@ -610,7 +610,7 @@ bool DTDs::readTagDir2(DTDStruct *dtd) delete dtdConfig; dtd->loaded = true; resolveInherited(dtd); - kapp->restoreOverrideCursor(); + tdeApp->restoreOverrideCursor(); return true; } diff --git a/quanta/src/kqapp.cpp b/quanta/src/kqapp.cpp index 5b0a8e2b..e4aab4b3 100644 --- a/quanta/src/kqapp.cpp +++ b/quanta/src/kqapp.cpp @@ -77,7 +77,7 @@ KQApplication::KQApplication() } else */ { - TDEConfig *config = kapp->config(); + TDEConfig *config = tdeApp->config(); config->setGroup("General Options"); int mdiMode = config->readNumEntry("MDI mode", KMdi::IDEAlMode); TQString layout = config->readEntry("Window layout", "Default"); @@ -148,7 +148,7 @@ int KQUniqueApplication::newInstance() else { splash = 0L; - TDEConfig *config = kapp->config(); + TDEConfig *config = tdeApp->config(); config->setGroup("General Options"); int mdiMode = config->readNumEntry("MDI mode", KMdi::IDEAlMode); TQString layout = config->readEntry("Window layout", "Default"); diff --git a/quanta/src/quanta.cpp b/quanta/src/quanta.cpp index 49457eda..de24c83a 100644 --- a/quanta/src/quanta.cpp +++ b/quanta/src/quanta.cpp @@ -217,7 +217,7 @@ QuantaApp::QuantaApp(int mdiMode) : DCOPObject("WindowManagerIf"), KMdiMainFrm( userToolbarsCount = 0; baseNode = 0L; currentToolbarDTD = TQString(); - m_config=kapp->config(); + m_config=tdeApp->config(); idleTimer = new TQTimer(this); connect(idleTimer, TQ_SIGNAL(timeout()), TQ_SLOT(slotIdleTimerExpired())); m_idleTimerEnabled = true; @@ -230,7 +230,7 @@ QuantaApp::QuantaApp(int mdiMode) : DCOPObject("WindowManagerIf"), KMdiMainFrm( kdWarning() << i18n("Quanta data files were not found.") << endl; kdWarning() << i18n("You may have forgotten to run \"make install\", or your TDEDIR, TDEDIRS or PATH are not set correctly.") << endl; kdWarning() << "***************************************************************************" << endl; - TQTimer::singleShot(20, kapp, TQ_SLOT(quit())); + TQTimer::singleShot(20, tdeApp, TQ_SLOT(quit())); return; } qConfig.enableDTDToolbar = true; @@ -715,7 +715,7 @@ void QuantaApp::slotStatusMsg(const TQString &msg) statusbarTimer->stop(); statusBar()->changeItem(" " + KStringHandler::cPixelSqueeze(msg, statusBar()->fontMetrics(), progressBar->x() - 20), IDS_STATUS); statusBar()->repaint(); - kapp->processEvents(TQEventLoop::ExcludeUserInput | TQEventLoop::ExcludeSocketNotifiers); + tdeApp->processEvents(TQEventLoop::ExcludeUserInput | TQEventLoop::ExcludeSocketNotifiers); statusbarTimer->start(10000, true); } @@ -2763,7 +2763,7 @@ void QuantaApp::slotSendToolbar() return; } - kapp->invokeMailer(toStr, TQString(), TQString(), subjectStr, message, TQString(), toolbarFile); + tdeApp->invokeMailer(toStr, TQString(), TQString(), subjectStr, message, TQString(), toolbarFile); } delete mailDlg; } @@ -3619,7 +3619,7 @@ void QuantaApp::slotEmailDTEP() return; } - kapp->invokeMailer(toStr, TQString(), TQString(), subjectStr, message, TQString(), dtdFile); + tdeApp->invokeMailer(toStr, TQString(), TQString(), subjectStr, message, TQString(), dtdFile); } delete mailDlg; } diff --git a/quanta/src/quanta_init.cpp b/quanta/src/quanta_init.cpp index a3de6154..f9026761 100644 --- a/quanta/src/quanta_init.cpp +++ b/quanta/src/quanta_init.cpp @@ -1601,7 +1601,7 @@ void QuantaInit::readAbbreviations() int QuantaInit::runningQuantas() { - QCStringList list = kapp->dcopClient()->registeredApplications(); + QCStringList list = tdeApp->dcopClient()->registeredApplications(); int i = 0; for (QCStringList::iterator it = list.begin(); it != list.end(); ++it) { -- cgit v1.2.1