mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
.kdelnk -> .desktop
svn path=/trunk/kdebase/kfind/; revision=21048
This commit is contained in:
parent
4edec45396
commit
6071b77952
2 changed files with 6 additions and 8 deletions
|
@ -39,8 +39,7 @@ void KfFileType::initFileTypes( const char* _path )
|
|||
stat( file.data(), &buff );
|
||||
if ( S_ISDIR( buff.st_mode ) )
|
||||
initFileTypes( file.data() );
|
||||
#warning FIXME: .kdelnk deprecated (Harri)
|
||||
else if ( tmp.right( 7 ) == ".kdelnk" )
|
||||
else if ( tmp.right( 8 ) == ".desktop" )
|
||||
{
|
||||
QFile f( file.data() );
|
||||
if ( !f.open( IO_ReadOnly ) )
|
||||
|
@ -53,9 +52,8 @@ void KfFileType::initFileTypes( const char* _path )
|
|||
|
||||
// Read a new extension group
|
||||
QString ext = ep->d_name;
|
||||
#warning FIXME: .kdelnk deprecated (Harri)
|
||||
if ( ext.right(7) == ".kdelnk" )
|
||||
ext = ext.left( ext.length() - 7 );
|
||||
if ( ext.right( 8 ) == ".desktop" )
|
||||
ext = ext.left( ext.length() - 8 );
|
||||
|
||||
// Get a ';' separated list of all pattern
|
||||
QString pats = config.readEntry( "Patterns" );
|
||||
|
|
|
@ -42,7 +42,7 @@ public:
|
|||
|
||||
/// Returns the name of this binding
|
||||
/**
|
||||
The file type in the file '$KDEDIR/filetypes/Spreadsheet.kdelnk' for
|
||||
The file type in the file '$KDEDIR/filetypes/Spreadsheet.desktop' for
|
||||
example is called 'Spreadsheet'.
|
||||
*/
|
||||
const char* getName() { return name.data(); }
|
||||
|
@ -84,7 +84,7 @@ public:
|
|||
|
||||
/// Finds a file type by its name
|
||||
/**
|
||||
The file type in the file '$KDEDIR/filetypes/Spreadsheet.kdelnk' for
|
||||
The file type in the file '$KDEDIR/filetypes/Spreadsheet.desktop' for
|
||||
example is called 'Spreadsheet'.
|
||||
*/
|
||||
static KfFileType *findByName( const char *_name );
|
||||
|
@ -133,7 +133,7 @@ protected:
|
|||
|
||||
/// Holds the name of the file type
|
||||
/**
|
||||
The file type in the file '$KDEDIR/filetypes/Spreadsheet.kdelnk' for
|
||||
The file type in the file '$KDEDIR/filetypes/Spreadsheet.desktop' for
|
||||
example is called 'Spreadsheet'.
|
||||
*/
|
||||
QString name;
|
||||
|
|
Loading…
Reference in a new issue