summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-07-13 19:43:41 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-07-13 19:43:41 +0900
commita7573fea30dd6775d4ca17341970a6eb7c833e48 (patch)
treee1df309d1bc662fac2211c3b2016c3f7efe3310c
parent26bc61bf25b244d1a28cf643ed773878ccd52734 (diff)
downloadkiosktool-a7573fea30dd6775d4ca17341970a6eb7c833e48.tar.gz
kiosktool-a7573fea30dd6775d4ca17341970a6eb7c833e48.zip
Use TDEDesktopFile
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--kiosktool/kcms/autostart/kcmautostart.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kiosktool/kcms/autostart/kcmautostart.cpp b/kiosktool/kcms/autostart/kcmautostart.cpp
index 03da985..6a075e8 100644
--- a/kiosktool/kcms/autostart/kcmautostart.cpp
+++ b/kiosktool/kcms/autostart/kcmautostart.cpp
@@ -28,7 +28,7 @@ Boston, MA 02111-1307, USA.
#include <tdeaboutdata.h>
#include <tdeapplication.h>
-#include <kdesktopfile.h>
+#include <tdedesktopfile.h>
#include <kdialog.h>
#include <kgenericfactory.h>
#include <tdelistview.h>
@@ -110,9 +110,9 @@ void AutoStartConfig::load() {
for ( TQStringList::ConstIterator it = files.begin(); it != files.end(); it++ )
{
- if ( KDesktopFile::isDesktopFile( TQFileInfo( *it ).fileName() ) )
+ if ( TDEDesktopFile::isDesktopFile( TQFileInfo( *it ).fileName() ) )
{
- KDesktopFile file( TQFileInfo( *it ).fileName(), true, "autostart" );
+ TDEDesktopFile file( TQFileInfo( *it ).fileName(), true, "autostart" );
TQString name = file.readName();
if ( !name.isEmpty() )
{
@@ -132,16 +132,16 @@ void AutoStartConfig::save()
TQListViewItemIterator it( _lvStartup );
while ( it.current() )
{
- if ( KDesktopFile::isDesktopFile( it.current()->text( 3 ) ) )
+ if ( TDEDesktopFile::isDesktopFile( it.current()->text( 3 ) ) )
{
// Determine whether we need to change the file on a readonly desktop file
// by giving a full path first
TQString path = it.current()->text( 3 );
- KDesktopFile file( path, true, "services" );
+ TDEDesktopFile file( path, true, "services" );
bool shouldBeHidden = !( static_cast<TQCheckListItem *>( it.current() )->isOn() );
if ( file.readBoolEntry( "Hidden", false ) != shouldBeHidden )
{
- KDesktopFile outFile( TQFileInfo( path ).fileName(), false, "autostart" );
+ TDEDesktopFile outFile( TQFileInfo( path ).fileName(), false, "autostart" );
kdDebug() << "************** Writing out " << path << endl;
outFile.writeEntry( "Hidden", shouldBeHidden );
outFile.sync();