summaryrefslogtreecommitdiffstats
path: root/twin/clients/PORTING
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-09-25 12:23:23 +0900
committerMichele Calgaro <[email protected]>2023-09-25 17:53:57 +0900
commit0bfe293635aacc850731080cbda642a0b94baf94 (patch)
treebc77925f966255c5f66a069e63266828a168b296 /twin/clients/PORTING
parentb5a1d6eca507ade6d0a22fabdb7f318cbd58f1a4 (diff)
downloadtdebase-0bfe293635aacc850731080cbda642a0b94baf94.tar.gz
tdebase-0bfe293635aacc850731080cbda642a0b94baf94.zip
Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 33c7d159890b81da8f44ee330a349e3abd553bec)
Diffstat (limited to 'twin/clients/PORTING')
-rw-r--r--twin/clients/PORTING8
1 files changed, 4 insertions, 4 deletions
diff --git a/twin/clients/PORTING b/twin/clients/PORTING
index 0c0c1a6ea..c316bd4a9 100644
--- a/twin/clients/PORTING
+++ b/twin/clients/PORTING
@@ -13,7 +13,7 @@ Makefile.am:
Sources:
- There are no twin/something.h includes, and don't use the KWinInternal namespace.
- Use QToolTip instead of KWinToolTip.
-- Use QButton instead of KWinButton, QToolButton instead of KWinToolButton and QWidget
+- Use QButton instead of KWinButton, QToolButton instead of KWinToolButton and TQWidget
instead of KWinWidgetButton.
- For tooltips, use simply QToolTip::add().
- Change Client* to MyClient* (or whatever is your main client class) in your MyButton.
@@ -26,11 +26,11 @@ Sources:
- As the first thing in init(), call createMainWidget(); if your client class took some
flags such as WResizeNoErase, pass them to this function.
- Then, do 'widget()->installEventFilter( this );'.
-- Implement MyClient::eventFilter() - as MyClient is now no longer QWidget, you need the event
+- Implement MyClient::eventFilter() - as MyClient is now no longer TQWidget, you need the event
filter to call all the functions that used to be called directly. Usually, it's something
like:
=====
-bool MyClient::eventFilter( QObject* o, QEvent* e )
+bool MyClient::eventFilter( TQObject* o, QEvent* e )
{
if ( o != widget() )
return false;
@@ -67,7 +67,7 @@ bool MyClient::eventFilter( QObject* o, QEvent* e )
}
=====
- In MyClient, 'this' will have to be often replaced with 'widget()', pay special attention
- to cases where this won't cause compile error (e.g. in connect() calls, which take QObject* ).
+ to cases where this won't cause compile error (e.g. in connect() calls, which take TQObject* ).
- Also, many calls may need 'widget()->' prepended.
- Layout is created in init(), so call createLayout() directly there (if it's implemented).
- Remove calls to Client methods (Client::resizeEvent() and so on).