summaryrefslogtreecommitdiffstats
path: root/KDE3PORTING.html
diff options
context:
space:
mode:
Diffstat (limited to 'KDE3PORTING.html')
-rw-r--r--KDE3PORTING.html10
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-&gt;insertItem( i18n("Scroll Up"), "Scroll Up", "Up" );
- - kaccel-&gt;connectItem( "Scroll Up", this, TQT_SLOT(scrollUp()) );
- + kaccel-&gt;insert( "Scroll Up", i18n("Scroll Up"), TQString::null,
+ - tdeaccel-&gt;insertItem( i18n("Scroll Up"), "Scroll Up", "Up" );
+ - tdeaccel-&gt;connectItem( "Scroll Up", this, TQT_SLOT(scrollUp()) );
+ + tdeaccel-&gt;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-&gt;changeMenuAccel( menu, id, "file_open" );
- + menu-&gt;setAccel( kaccel-&gt;shortcut( "file_open" ).keyCodeQt(), id );
+ - tdeaccel-&gt;changeMenuAccel( menu, id, "file_open" );
+ + menu-&gt;setAccel( tdeaccel-&gt;shortcut( "file_open" ).keyCodeQt(), id );
</pre>
</li>
</ul>