diff options
author | Michele Calgaro <[email protected]> | 2024-01-12 11:17:33 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-01-12 12:39:52 +0900 |
commit | ba3b5b77e1a430dc7197df20872ba46ce2fb6fa7 (patch) | |
tree | d8b80b41bf117fe1d5caa7e7faecfab523e81153 /KDE3PORTING.html | |
parent | 5d320b587ba28fa3c4745e1555aff74d5651783e (diff) | |
download | tdelibs-ba3b5b77e1a430dc7197df20872ba46ce2fb6fa7.tar.gz tdelibs-ba3b5b77e1a430dc7197df20872ba46ce2fb6fa7.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <[email protected]>
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> |