From 717e8bef26be73a9641916fc55cd052d79e13dd0 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 13 Jul 2025 19:44:55 +0900 Subject: Use TDEDesktopFile Signed-off-by: Michele Calgaro --- kshutdown/extras.cpp | 6 +++--- kshutdown/links.cpp | 4 ++-- kshutdown/mmainwindow.cpp | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/kshutdown/extras.cpp b/kshutdown/extras.cpp index 7a4705c..82448e8 100644 --- a/kshutdown/extras.cpp +++ b/kshutdown/extras.cpp @@ -26,7 +26,7 @@ #include #include -#include +#include #include #include #include @@ -141,7 +141,7 @@ void Extras::buildMenu(TDEPopupMenu *parentMenu, const TQString &subdir) TDEPopupMenu *submenu = new TDEPopupMenu(parentMenu, "TDEPopupMenu::submenu"); connect(submenu, TQ_SIGNAL(activated(int)), TQ_SLOT(slotActivated(int))); - KDesktopFile *desktopFile = new KDesktopFile(path + "/.directory", true); + TDEDesktopFile *desktopFile = new TDEDesktopFile(path + "/.directory", true); if (desktopFile->getConfigState() != TDEConfigBase::NoAccess) { icon = desktopFile->readIcon(); @@ -190,7 +190,7 @@ void Extras::buildMenu(TDEPopupMenu *parentMenu, const TQString &subdir) } // application/x-desktop - KDesktopFile *desktopFile = new KDesktopFile(path, true); + TDEDesktopFile *desktopFile = new TDEDesktopFile(path, true); if (desktopFile->getConfigState() != TDEConfigBase::NoAccess) { name = desktopFile->readName(); diff --git a/kshutdown/links.cpp b/kshutdown/links.cpp index 9450cb4..df35fae 100644 --- a/kshutdown/links.cpp +++ b/kshutdown/links.cpp @@ -26,7 +26,7 @@ #include #include -#include +#include #include #include #include @@ -87,7 +87,7 @@ void Links::createLink(const TQString &path, const TQString &command, const TQSt if (path.isNull()) return; - KDesktopFile *df = new KDesktopFile(path); + TDEDesktopFile *df = new TDEDesktopFile(path); df->setGroup("Desktop Entry"); df->writeEntry("Comment", comment); df->writeEntry("Encoding", "UTF-8"); diff --git a/kshutdown/mmainwindow.cpp b/kshutdown/mmainwindow.cpp index 0333088..9d64aab 100644 --- a/kshutdown/mmainwindow.cpp +++ b/kshutdown/mmainwindow.cpp @@ -53,7 +53,7 @@ #include #include #include -#include +#include #include MMainWindow *MMainWindow::_instance = 0; @@ -101,7 +101,7 @@ MMainWindow::MMainWindow() extrasIcon = TQIconSet(KMimeType::pixmapForURL(KURL::fromPathOrURL(extrasCommand))); else { // application/x-desktop - KDesktopFile *desktopFile = new KDesktopFile(extrasCommand, true); + TDEDesktopFile *desktopFile = new TDEDesktopFile(extrasCommand, true); if (desktopFile->getConfigState() != TDEConfigBase::NoAccess) extrasIcon = TQIconSet(SmallIcon(desktopFile->readIcon())); delete desktopFile; -- cgit v1.2.3