summaryrefslogtreecommitdiffstats
path: root/tdefilereplace
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2025-01-20 17:21:59 +0900
committerMichele Calgaro <[email protected]>2025-02-03 21:40:22 +0900
commit2f64e55b006125b1110fcdb05df19909159cee71 (patch)
tree113f02dbb3164ef83f2b7cec5e26adb6b5dc97f3 /tdefilereplace
parent1feaed7cc0457e3cdafe0c0ce8119ae6ec618cb8 (diff)
downloadtdeutils-2f64e55b006125b1110fcdb05df19909159cee71.tar.gz
tdeutils-2f64e55b006125b1110fcdb05df19909159cee71.zip
Use tdeApp
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'tdefilereplace')
-rw-r--r--tdefilereplace/kaddstringdlg.cpp2
-rw-r--r--tdefilereplace/knewprojectdlg.h2
-rw-r--r--tdefilereplace/koptionsdlg.h2
-rw-r--r--tdefilereplace/tdefilereplacepart.cpp14
-rw-r--r--tdefilereplace/tdefilereplaceview.cpp4
5 files changed, 12 insertions, 12 deletions
diff --git a/tdefilereplace/kaddstringdlg.cpp b/tdefilereplace/kaddstringdlg.cpp
index 70f4f4e..996abdf 100644
--- a/tdefilereplace/kaddstringdlg.cpp
+++ b/tdefilereplace/kaddstringdlg.cpp
@@ -244,7 +244,7 @@ void KAddStringDlg::slotDeleteStringFromView()
void KAddStringDlg::slotHelp()
{
- kapp->invokeHelp(TQString(), "tdefilereplace");
+ tdeApp->invokeHelp(TQString(), "tdefilereplace");
}
#include "kaddstringdlg.moc"
diff --git a/tdefilereplace/knewprojectdlg.h b/tdefilereplace/knewprojectdlg.h
index 6f23b77..08a307e 100644
--- a/tdefilereplace/knewprojectdlg.h
+++ b/tdefilereplace/knewprojectdlg.h
@@ -58,7 +58,7 @@ class KNewProjectDlg : public KNewProjectDlgS
void slotEnableChbUser(bool b);
void slotEnableChbGroup(bool b);
void slotEnableChbBackup(bool b);
- void slotHelp(){ kapp->invokeHelp(TQString(), "tdefilereplace"); }
+ void slotHelp(){ tdeApp->invokeHelp(TQString(), "tdefilereplace"); }
private:
void initGUI();
diff --git a/tdefilereplace/koptionsdlg.h b/tdefilereplace/koptionsdlg.h
index 718ccb5..f2289ba 100644
--- a/tdefilereplace/koptionsdlg.h
+++ b/tdefilereplace/koptionsdlg.h
@@ -48,7 +48,7 @@ class KOptionsDlg : public KOptionsDlgS
void slotChbBackup(bool b);
void slotChbConfirmStrings(bool b);
void slotChbShowConfirmDialog(bool b);
- void slotHelp(){ kapp->invokeHelp(TQString(), "tdefilereplace"); }
+ void slotHelp(){ tdeApp->invokeHelp(TQString(), "tdefilereplace"); }
private:
void initGUI();
diff --git a/tdefilereplace/tdefilereplacepart.cpp b/tdefilereplace/tdefilereplacepart.cpp
index ce98154..4686894 100644
--- a/tdefilereplace/tdefilereplacepart.cpp
+++ b/tdefilereplace/tdefilereplacepart.cpp
@@ -143,7 +143,7 @@ void TDEFileReplacePart::slotSearchingOperation()
m_view->showSemaphore("yellow");
- kapp->processEvents();
+ tdeApp->processEvents();
//disabling and enabling sorting... don't ask me why, but it works!
rv->setSorting(0);
@@ -377,7 +377,7 @@ void TDEFileReplacePart::showAboutApplication()
void TDEFileReplacePart::appHelpActivated()
{
- kapp->invokeHelp(TQString(), "tdefilereplace");
+ tdeApp->invokeHelp(TQString(), "tdefilereplace");
}
void TDEFileReplacePart::reportBug()
@@ -493,7 +493,7 @@ void TDEFileReplacePart::initGUI()
actionCollection()->setHighlightingEnabled(true);
- DCOPClient *client = kapp->dcopClient();
+ DCOPClient *client = tdeApp->dcopClient();
QCStringList appList = client->registeredApplications();
bool quantaFound = false;
for(QCStringList::Iterator it = appList.begin(); it != appList.end(); ++it)
@@ -904,7 +904,7 @@ void TDEFileReplacePart::fileReplace()
// Avoids files that not match requirements
if(!TDEFileReplaceLib::isAnAccessibleFile(d.canonicalPath(), fileName, m_option))
continue;
- kapp->processEvents();
+ tdeApp->processEvents();
if(m_option->m_backup)
replaceAndBackup(d.canonicalPath(), fileName);
else
@@ -960,7 +960,7 @@ void TDEFileReplacePart::recursiveFileReplace(const TQString &directoryName, int
TQFileInfo qi(filePath);
m_view->displayScannedFiles(foldersNumber, filesNumber);
- kapp->processEvents();
+ tdeApp->processEvents();
// Replace recursively if "filePath" is a directory and we have not reached the max depth level
if (qi.isDir())
@@ -1245,7 +1245,7 @@ void TDEFileReplacePart::fileSearch(const TQString& directoryName, const TQStrin
TQFileInfo fileInfo(filePath+"/"+fileName);
if(fileInfo.isDir())
continue;
- kapp->processEvents();
+ tdeApp->processEvents();
search(filePath, fileName);
filesNumber++;
m_view->displayScannedFiles(0, filesNumber);
@@ -1297,7 +1297,7 @@ void TDEFileReplacePart::recursiveFileSearch(const TQString &directoryName, cons
m_view->displayScannedFiles(foldersNumber, filesNumber);
- kapp->processEvents();
+ tdeApp->processEvents();
// Searchs recursively if "filePath" is a directory and we have not reached the max depth level
if (fileInfo.isDir())
{
diff --git a/tdefilereplace/tdefilereplaceview.cpp b/tdefilereplace/tdefilereplaceview.cpp
index 5861eb1..616b3e3 100644
--- a/tdefilereplace/tdefilereplaceview.cpp
+++ b/tdefilereplace/tdefilereplaceview.cpp
@@ -283,7 +283,7 @@ void TDEFileReplaceView::slotResultEdit()
while (lvi)
{
- DCOPClient *client = kapp->dcopClient();
+ DCOPClient *client = tdeApp->dcopClient();
DCOPRef quanta(client->appId(),"WindowManagerIf");
TQString path = TQString(lvi->text(1)+"/"+lvi->text(0));
TQListViewItem *lviChild = lvi;
@@ -747,7 +747,7 @@ void TDEFileReplaceView::initGUI()
m_stackStrings->addWidget(m_lvStrings);
m_stackStrings->addWidget(m_lvStrings_2);
- DCOPClient *client = kapp->dcopClient();
+ DCOPClient *client = tdeApp->dcopClient();
QCStringList appList = client->registeredApplications();
bool quantaFound = false;