From 16652efd0f5da6775487e6796493785d2602717d Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 13 Jul 2025 19:55:30 +0900 Subject: Use TDEDesktopFile Signed-off-by: Michele Calgaro --- libkonq/knewmenu.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'libkonq/knewmenu.cpp') diff --git a/libkonq/knewmenu.cpp b/libkonq/knewmenu.cpp index 051b3f236..146090edf 100644 --- a/libkonq/knewmenu.cpp +++ b/libkonq/knewmenu.cpp @@ -20,7 +20,7 @@ #include #include -#include +#include #include #include #include @@ -145,7 +145,7 @@ void KNewMenu::parseFiles() TQString templatePath; // If a desktop file, then read the name from it. // Otherwise (or if no name in it?) use file name - if ( KDesktopFile::isDesktopFile( filePath ) ) { + if ( TDEDesktopFile::isDesktopFile( filePath ) ) { TDESimpleConfig config( filePath, true ); config.setDesktopGroup(); text = config.readEntry("Name"); @@ -260,9 +260,9 @@ void KNewMenu::fillMenu() { linkApp = act; } - else if ( KDesktopFile::isDesktopFile( entry.templatePath ) ) + else if ( TDEDesktopFile::isDesktopFile( entry.templatePath ) ) { - KDesktopFile df( entry.templatePath ); + TDEDesktopFile df( entry.templatePath ); if(df.readType() == "FSDevice") act->plug( d->m_menuDev->popupMenu() ); else @@ -388,9 +388,9 @@ void KNewMenu::slotNewFile() } m_isURLDesktopFile = false; TQString name; - if ( KDesktopFile::isDesktopFile( entry.templatePath ) ) + if ( TDEDesktopFile::isDesktopFile( entry.templatePath ) ) { - KDesktopFile df( entry.templatePath ); + TDEDesktopFile df( entry.templatePath ); //kdDebug(1203) << df.readType() << endl; if ( df.readType() == "Link" ) { @@ -505,7 +505,7 @@ void KNewMenu::slotResult( TDEIO::Job * job ) // destURL is the original destination for the new file. // But in case of a renaming (due to a conflict), the real path is in m_destPath kdDebug(1203) << " destURL=" << destURL.path() << " " << " d->m_destPath=" << d->m_destPath << endl; - KDesktopFile df( d->m_destPath ); + TDEDesktopFile df( d->m_destPath ); df.writeEntry( "Icon", KProtocolInfo::icon( KURL(m_linkURL).protocol() ) ); df.writePathEntry( "URL", m_linkURL ); df.sync(); -- cgit v1.2.3