mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
khotkeys: remove unused get_menu_entry_from_path() function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
4dc8fbbe32
commit
714bcacfe4
2 changed files with 0 additions and 21 deletions
|
@ -57,24 +57,5 @@ bool khotkeys_active()
|
|||
{
|
||||
return _khotkeys_active;
|
||||
}
|
||||
|
||||
// does the opposite of KStandardDirs::findResource() i.e. e.g.
|
||||
// "/opt/kde2/share/applnk/System/konsole.desktop" -> "System/konsole.desktop"
|
||||
QString get_menu_entry_from_path( const QString& path_P )
|
||||
{
|
||||
const QStringList dirs = KGlobal::dirs()->resourceDirs( "apps" );
|
||||
for( QStringList::ConstIterator it = dirs.constBegin();
|
||||
it != dirs.constEnd();
|
||||
++it )
|
||||
if( path_P.indexOf( *it ) == 0 )
|
||||
{
|
||||
QString ret = path_P;
|
||||
ret.remove( 0, (*it).length());
|
||||
if( ret[ 0 ] == '/' )
|
||||
ret.remove( 0, 1 );
|
||||
return ret;
|
||||
}
|
||||
return path_P;
|
||||
}
|
||||
|
||||
} // namespace KHotKeys
|
||||
|
|
|
@ -34,8 +34,6 @@ extern QPointer<WindowsHandler> windows_handler;
|
|||
KDE_EXPORT bool khotkeys_active();
|
||||
KDE_EXPORT void khotkeys_set_active( bool active_P );
|
||||
|
||||
QString get_menu_entry_from_path( const QString& path_P );
|
||||
|
||||
KDE_EXPORT void init_global_data( bool active_P, QObject* owner_P );
|
||||
|
||||
const char* const MENU_EDITOR_ENTRIES_GROUP_NAME = I18N_NOOP( "Menu Editor entries" );
|
||||
|
|
Loading…
Add table
Reference in a new issue