diff options
author | Michele Calgaro <[email protected]> | 2025-01-22 17:48:33 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2025-02-03 22:55:29 +0900 |
commit | ba759c68a0d76f3bd39cca9cc62c2b31bf4a5f86 (patch) | |
tree | 12e785c7a4e4cabbac960f2743de01a79ba77c2f /src/mainwindow.cpp | |
parent | 0ed59f2f132ebbe7b340ea93ea1de240e712473e (diff) | |
download | tellico-ba759c68a0d76f3bd39cca9cc62c2b31bf4a5f86.tar.gz tellico-ba759c68a0d76f3bd39cca9cc62c2b31bf4a5f86.zip |
Use tdeApp
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r-- | src/mainwindow.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index e284014..2fcb570 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -116,9 +116,9 @@ MainWindow::MainWindow(TQWidget* parent_/*=0*/, const char* name_/*=0*/) : TDEMa m_initialized(false), m_newDocument(true) { - if(!kapp->dcopClient()->isRegistered()) { - kapp->dcopClient()->registerAs("tellico"); - kapp->dcopClient()->setDefaultObject(objId()); + if(!tdeApp->dcopClient()->isRegistered()) { + tdeApp->dcopClient()->registerAs("tellico"); + tdeApp->dcopClient()->setDefaultObject(objId()); } m_fetchActions.setAutoDelete(true); // these are the fetcher actions @@ -1055,7 +1055,7 @@ void MainWindow::saveProperties(TDEConfig* cfg_) { KURL url = Data::Document::self()->URL(); cfg_->writeEntry("filename", url.url()); cfg_->writeEntry("modified", Data::Document::self()->isModified()); - TQString tempname = KURL::encode_string(kapp->tempSaveName(url.url())); + TQString tempname = KURL::encode_string(tdeApp->tempSaveName(url.url())); KURL tempurl; tempurl.setPath(tempname); Data::Document::self()->saveDocument(tempurl); @@ -1067,7 +1067,7 @@ void MainWindow::readProperties(TDEConfig* cfg_) { bool modified = cfg_->readBoolEntry(TQString::fromLatin1("modified"), false); if(modified) { bool canRecover; - TQString tempname = kapp->checkRecoverFile(filename, canRecover); + TQString tempname = tdeApp->checkRecoverFile(filename, canRecover); if(canRecover) { KURL tempurl; @@ -1422,7 +1422,7 @@ void MainWindow::activateEditSlot(const char* slot_) { if(m_editDialog->isVisible()) { w = m_editDialog->focusWidget(); } else { - w = kapp->focusWidget(); + w = tdeApp->focusWidget(); } if(w && w->isVisible()) { |