diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
commit | c663b6440964f6ac48027143ac9e63298991f9d0 (patch) | |
tree | 6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kmenuedit/khotkeys.cpp | |
parent | a061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff) | |
download | tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmenuedit/khotkeys.cpp')
-rw-r--r-- | kmenuedit/khotkeys.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/kmenuedit/khotkeys.cpp b/kmenuedit/khotkeys.cpp index 65909ab75..9b0ead3c7 100644 --- a/kmenuedit/khotkeys.cpp +++ b/kmenuedit/khotkeys.cpp @@ -25,13 +25,13 @@ extern "C" { static void (*khotkeys_init_2)( void ); static void (*khotkeys_cleanup_2)( void ); - static QString (*khotkeys_get_menu_entry_shortcut_2)( const QString& entry_P ); - static QString (*khotkeys_change_menu_entry_shortcut_2)( const QString& entry_P, - const QString& shortcut_P ); - static bool (*khotkeys_menu_entry_moved_2)( const QString& new_P, const QString& old_P ); - static void (*khotkeys_menu_entry_deleted_2)( const QString& entry_P ); - static QStringList (*khotkeys_get_all_shortcuts_2)( ); - static KService::Ptr (*khotkeys_find_menu_entry_2)( const QString& shortcut_P ); + static TQString (*khotkeys_get_menu_entry_shortcut_2)( const TQString& entry_P ); + static TQString (*khotkeys_change_menu_entry_shortcut_2)( const TQString& entry_P, + const TQString& shortcut_P ); + static bool (*khotkeys_menu_entry_moved_2)( const TQString& new_P, const TQString& old_P ); + static void (*khotkeys_menu_entry_deleted_2)( const TQString& entry_P ); + static TQStringList (*khotkeys_get_all_shortcuts_2)( ); + static KService::Ptr (*khotkeys_find_menu_entry_2)( const TQString& shortcut_P ); } static bool khotkeys_present = false; @@ -46,22 +46,22 @@ bool KHotKeys::init() khotkeys_init_2 = ( void (*)(void)) ( lib->symbol( "khotkeys_init" )); khotkeys_cleanup_2 = ( void (*)(void)) ( lib->symbol( "khotkeys_cleanup" )); khotkeys_get_menu_entry_shortcut_2 = - ( QString (*)( const QString& )) + ( TQString (*)( const TQString& )) ( lib->symbol( "khotkeys_get_menu_entry_shortcut" )); khotkeys_change_menu_entry_shortcut_2 = - ( QString (*)( const QString&, const QString& )) + ( TQString (*)( const TQString&, const TQString& )) ( lib->symbol( "khotkeys_change_menu_entry_shortcut" )); khotkeys_menu_entry_moved_2 = - ( bool (*)( const QString&, const QString& )) + ( bool (*)( const TQString&, const TQString& )) ( lib->symbol( "khotkeys_menu_entry_moved" )); khotkeys_menu_entry_deleted_2 = - ( void (*)( const QString& )) + ( void (*)( const TQString& )) ( lib->symbol( "khotkeys_menu_entry_deleted" )); khotkeys_get_all_shortcuts_2 = - ( QStringList (*)( )) + ( TQStringList (*)( )) ( lib->symbol( "khotkeys_get_all_shortcuts" )); khotkeys_find_menu_entry_2 = - ( KService::Ptr (*)( const QString& )) + ( KService::Ptr (*)( const TQString& )) ( lib->symbol( "khotkeys_find_menu_entry" )); if( khotkeys_init_2 @@ -92,7 +92,7 @@ bool KHotKeys::present() return khotkeys_present; } -QString KHotKeys::getMenuEntryShortcut( const QString& entry_P ) +TQString KHotKeys::getMenuEntryShortcut( const TQString& entry_P ) { if( !khotkeys_inited ) init(); @@ -101,8 +101,8 @@ QString KHotKeys::getMenuEntryShortcut( const QString& entry_P ) return khotkeys_get_menu_entry_shortcut_2( entry_P ); } -QString KHotKeys::changeMenuEntryShortcut( const QString& entry_P, - const QString shortcut_P ) +TQString KHotKeys::changeMenuEntryShortcut( const TQString& entry_P, + const TQString shortcut_P ) { if( !khotkeys_inited ) init(); @@ -111,7 +111,7 @@ QString KHotKeys::changeMenuEntryShortcut( const QString& entry_P, return khotkeys_change_menu_entry_shortcut_2( entry_P, shortcut_P ); } -bool KHotKeys::menuEntryMoved( const QString& new_P, const QString& old_P ) +bool KHotKeys::menuEntryMoved( const TQString& new_P, const TQString& old_P ) { if( !khotkeys_inited ) init(); @@ -120,7 +120,7 @@ bool KHotKeys::menuEntryMoved( const QString& new_P, const QString& old_P ) return khotkeys_menu_entry_moved_2( new_P, old_P ); } -void KHotKeys::menuEntryDeleted( const QString& entry_P ) +void KHotKeys::menuEntryDeleted( const TQString& entry_P ) { if( !khotkeys_inited ) init(); @@ -129,16 +129,16 @@ void KHotKeys::menuEntryDeleted( const QString& entry_P ) khotkeys_menu_entry_deleted_2( entry_P ); } -QStringList KHotKeys::allShortCuts( ) +TQStringList KHotKeys::allShortCuts( ) { if( !khotkeys_inited ) init(); if (!khotkeys_get_all_shortcuts_2) - return QStringList(); + return TQStringList(); return khotkeys_get_all_shortcuts_2(); } -KService::Ptr KHotKeys::findMenuEntry( const QString &shortcut_P ) +KService::Ptr KHotKeys::findMenuEntry( const TQString &shortcut_P ) { if( !khotkeys_inited ) init(); |