diff options
Diffstat (limited to 'KDE3PORTING.html')
-rw-r--r-- | KDE3PORTING.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/KDE3PORTING.html b/KDE3PORTING.html index d2b7bcedf..ba92f9313 100644 --- a/KDE3PORTING.html +++ b/KDE3PORTING.html @@ -155,9 +155,9 @@ not be available. <li> TDEAccel::insertItem() and TDEAccel::connectItem(). <pre> - tdeaccel->insertItem( i18n("Scroll Up"), "Scroll Up", "Up" ); - - tdeaccel->connectItem( "Scroll Up", this, TQT_SLOT(scrollUp()) ); + - tdeaccel->connectItem( "Scroll Up", this, TQ_SLOT(scrollUp()) ); + tdeaccel->insert( "Scroll Up", i18n("Scroll Up"), TQString::null, - Key_Up, this, TQT_SLOT(scrollUp()) ); + Key_Up, this, TQ_SLOT(scrollUp()) ); </pre> Note that a What's This parameter is now a part of the insert function. You might replace the TQString::null parameter with @@ -176,7 +176,7 @@ not be available. The preferred means of defining a shortcut, however, is to use <b>TDEAction</b>. <pre> new TDEAction( i18n("Scroll Up"), Key_Up, - this, TQT_SLOT(scrollUp()), actionCollection(), "Scroll Up" ); + this, TQ_SLOT(scrollUp()), actionCollection(), "Scroll Up" ); </pre> <h5>TDEGlobalAccel</h5> |