diff options
Diffstat (limited to 'KDE3PORTING.html')
-rw-r--r-- | KDE3PORTING.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/KDE3PORTING.html b/KDE3PORTING.html index 407d5c5ad..457fd0cfa 100644 --- a/KDE3PORTING.html +++ b/KDE3PORTING.html @@ -154,9 +154,9 @@ not be available. <ul> <li> TDEAccel::insertItem() and TDEAccel::connectItem(). <pre> - - kaccel->insertItem( i18n("Scroll Up"), "Scroll Up", "Up" ); - - kaccel->connectItem( "Scroll Up", this, TQT_SLOT(scrollUp()) ); - + kaccel->insert( "Scroll Up", i18n("Scroll Up"), TQString::null, + - tdeaccel->insertItem( i18n("Scroll Up"), "Scroll Up", "Up" ); + - tdeaccel->connectItem( "Scroll Up", this, TQT_SLOT(scrollUp()) ); + + tdeaccel->insert( "Scroll Up", i18n("Scroll Up"), TQString::null, Key_Up, this, TQT_SLOT(scrollUp()) ); </pre> Note that a What's This parameter is now a part of the insert function. @@ -168,8 +168,8 @@ not be available. can replace it. Note, however, that this would be handled automatically by using TDEAction instead. <pre> - - kaccel->changeMenuAccel( menu, id, "file_open" ); - + menu->setAccel( kaccel->shortcut( "file_open" ).keyCodeQt(), id ); + - tdeaccel->changeMenuAccel( menu, id, "file_open" ); + + menu->setAccel( tdeaccel->shortcut( "file_open" ).keyCodeQt(), id ); </pre> </li> </ul> |