summaryrefslogtreecommitdiffstats
path: root/ksirc/puke/HOWTO-PUKE.pod
diff options
context:
space:
mode:
Diffstat (limited to 'ksirc/puke/HOWTO-PUKE.pod')
-rw-r--r--ksirc/puke/HOWTO-PUKE.pod22
1 files changed, 11 insertions, 11 deletions
diff --git a/ksirc/puke/HOWTO-PUKE.pod b/ksirc/puke/HOWTO-PUKE.pod
index 2a6bc799..600f2111 100644
--- a/ksirc/puke/HOWTO-PUKE.pod
+++ b/ksirc/puke/HOWTO-PUKE.pod
@@ -67,7 +67,7 @@ supporting perl5-oop object.
=head2 2.1 C++ Widget code
The C++ code must be able to hand all required settings and messages
-for the widget. Each new widget iherites it's tqparent and so forth
+for the widget. Each new widget iherites it's parent and so forth
allowing for a nice oop tqlayout. The widget structure the author is
following is the same as Qt's. Their seems to work well, why
re-invent the wheel?
@@ -117,27 +117,27 @@ destroyed.
createWidget is defined as:
-PWidget *createWidget(widgetId *pwi, PWidget *tqparent);
+PWidget *createWidget(widgetId *pwi, PWidget *parent);
It is called everytime a new widget of yours is required. The
widgetId will be the identifier for your widget and must be kept for
all future commands. PWidget::setWidgetId(pwi) should be called to
-set the widget id. The *tqparent is the tqparent of the current widget.
+set the widget id. The *parent is the parent of the current widget.
Generally PWidget->widget() is passed to the contructor of your
-widget. If it's 0, there is no tqparent. Simeplfied code for a the
+widget. If it's 0, there is no parent. Simeplfied code for a the
PFrame is:
=begin text
extern "C" {
-PWidget *createWidget(widgetId *pwi, PWIdget *tqparent);
+PWidget *createWidget(widgetId *pwi, PWIdget *parent);
}
-PWidget *createWidget(widgetId *pwi, PWIdget *tqparent){
+PWidget *createWidget(widgetId *pwi, PWIdget *parent){
QFrame *f;
- PFrame *pf = new PFrame(tqparent);
- if(tqparent != 0){
- f = new QFrame(tqparent->widget());
+ PFrame *pf = new PFrame(parent);
+ if(parent != 0){
+ f = new QFrame(parent->widget());
}
else{
f = new QPFrame();
@@ -149,13 +149,13 @@ PWidget *createWidget(widgetId *pwi, PWIdget *tqparent){
=end text
-Note: you have to check tqparent for null since calling NULL->widget()
+Note: you have to check parent for null since calling NULL->widget()
results in Bad Things (tm).
=item 2.1.3 messageHandler
This receives all commands, etc. It should process required commands,
-if a command is unkown pass it to the tqparent. PFrame example:
+if a command is unkown pass it to the parent. PFrame example:
=begin text