diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-07-12 18:19:21 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-07-12 18:19:21 +0900 |
commit | c235836ec5377ec1e613e0c24d044ab539922d6c (patch) | |
tree | 1887ee278cd861e59539de90d232231ac4b70149 | |
parent | 24a21918d11caf54f387112706361bf6e198f801 (diff) | |
download | kooldock-c235836ec5377ec1e613e0c24d044ab539922d6c.tar.gz kooldock-c235836ec5377ec1e613e0c24d044ab539922d6c.zip |
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r-- | src/setupdialogprg.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/setupdialogprg.cpp b/src/setupdialogprg.cpp index eb3bc24..463eb20 100644 --- a/src/setupdialogprg.cpp +++ b/src/setupdialogprg.cpp @@ -13,7 +13,7 @@ #include <kimageio.h> #include <kicondialog.h> #include <tdelocale.h> -#include <ksimpleconfig.h> +#include <tdesimpleconfig.h> #include <tdemessagebox.h> #include <tdestandarddirs.h> #include <kpushbutton.h> @@ -354,9 +354,9 @@ void SetupDialogPrg::applist_dropped(TQDropEvent* e,const TQValueList<TQIconDrag // Check if it is a desktop file pos = name.findRev(".desktop", -1); if(pos != -1) { - KSimpleConfig* desktopfile; + TDESimpleConfig* desktopfile; kdDebug(0) << "Desktop file dropped!" << endl; - desktopfile = new KSimpleConfig(lst[0], true); + desktopfile = new TDESimpleConfig(lst[0], true); desktopfile->setGroup("Desktop Entry"); appdlg->cmdname->setText(desktopfile->readEntry("Name")); appdlg->cmdpath->setText(desktopfile->readEntry("Exec")); @@ -390,7 +390,7 @@ void SetupDialogPrg::removeLauncher() if (remove != KMessageBox::Yes) { return; } - KSimpleConfig* desktopfile; + TDESimpleConfig* desktopfile; TQDir homeDir = TQDir::home(); if (homeDir.exists(progPath)) { TQDir dir(menuPath); @@ -398,7 +398,7 @@ void SetupDialogPrg::removeLauncher() fileListRemove = dir.entryList("*.desktop"); for (TQStringList::Iterator it = fileListRemove.begin(); it != fileListRemove.end(); ++it) { if (((*it) != ".") && ((*it) != "..")) { - desktopfile = new KSimpleConfig(menuPath + (*it), true); + desktopfile = new TDESimpleConfig(menuPath + (*it), true); desktopfile->setGroup("Desktop Entry"); if (desktopfile->readEntry("Name") == fileName) { kdDebug(0) << "Removing " << menuPath + (*it) << endl; @@ -482,7 +482,7 @@ void SetupDialogPrg::showEvent(TQShowEvent*) void SetupDialogPrg::appFill() { // Fill the application list. - KSimpleConfig* desktopfile; + TDESimpleConfig* desktopfile; TQDir homeDir = TQDir::home(); TDEIconLoader icon_obj; @@ -494,7 +494,7 @@ void SetupDialogPrg::appFill() fileList = dir.entryList("*.desktop"); for (TQStringList::Iterator it = fileList.begin(); it != fileList.end(); ++it ) { if (((*it) != ".") && ((*it) != "..")) { - desktopfile = new KSimpleConfig(menuPath + (*it), true); + desktopfile = new TDESimpleConfig(menuPath + (*it), true); desktopfile->setGroup("Desktop Entry"); TQPixmap pixm=icon_obj.loadIcon(desktopfile->readEntry("Icon"), TDEIcon::Desktop, 0, TDEIcon::DefaultState, 0L, false); new TDEIconViewItem(applist, desktopfile->readEntry("Name"), pixm); @@ -554,14 +554,14 @@ void SetupDialogPrg::applist_contextMenuRequested(TQIconViewItem* e,const TQPoin connect(setpos, TQ_SIGNAL(activated(int)), this, TQ_SLOT(setnewpos(int))); // Load desktop data - KSimpleConfig* desktopfile; + TDESimpleConfig* desktopfile; TQDir dir(menuPath); fileList.clear(); fileList = dir.entryList("*.desktop"); int i = 0; for (TQStringList::Iterator it = fileList.begin(); it != fileList.end(); ++it) { if (((*it) != ".") && ((*it) != "..")) { - desktopfile = new KSimpleConfig(menuPath + (*it), true); + desktopfile = new TDESimpleConfig(menuPath + (*it), true); desktopfile->setGroup("Desktop Entry"); int menustate = setpos->insertItem(TQString("%1").arg(desktopfile->readEntry("Name")),i); if (i == oldPos) { |