diff options
Diffstat (limited to 'src/modules/objects/class_widget.cpp')
-rw-r--r-- | src/modules/objects/class_widget.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/modules/objects/class_widget.cpp b/src/modules/objects/class_widget.cpp index 3e6b4b6b..4ff98d6e 100644 --- a/src/modules/objects/class_widget.cpp +++ b/src/modules/objects/class_widget.cpp @@ -147,11 +147,11 @@ const int widgettypes_cod[] = { If erase is TRUE, erases the widget before the $paintEvent() call. !fn: $x() Returns the x coordinate of the upper-left corner - of this widget relative to the tqparent widget, + of this widget relative to the parent widget, or to the desktop if this widget is a toplevel one. !fn: $y() Returns the y coordinate of the uspper-left corner - of this widget relative to the tqparent widget, + of this widget relative to the parent widget, or to the desktop if this widget is a toplevel one. !fn: $width() Returns the width of this widget in pixels. @@ -162,7 +162,7 @@ const int widgettypes_cod[] = { x, y, width, height. !fn: $setGeometry(<x_or_array>,[<y>,<width>,<heigth>]) Sets the tqgeometry of this widget. <x> and <y> are relative - to the tqparent widget or to the desktop (if this widget is + to the parent widget or to the desktop (if this widget is a toplevel one). All the parameters are in pixels. !fn: $setMinimumWidth(<value>) Sets the minimum width of this widget to <value>. @@ -182,7 +182,7 @@ const int widgettypes_cod[] = { value. This value is also used by the [class:tqlayout]tqlayout class[/class]. !fn: $move(<x_or_array>[,<y>]) Moves this widget to the coordinate <x> and <y> relative to its - tqparent widget (or the desktop if this widget is a toplevel one). + parent widget (or the desktop if this widget is a toplevel one). This is equivalent to [classfnc]$setGeometry[/classfnc](<x>,<y>, [classfnc]$width[/classfnc](),[classfnc]$height[/classfnc]()). !fn: $resize(<w_or_array>,[height]) @@ -212,10 +212,10 @@ const int widgettypes_cod[] = { See also [classfnc]$show[/classfnc]() and [classfnc]$hide[/classfnc](). !fn: $raise() Moves this widget to the top of the stack of the widgets relative - to its tqparent. See also [classfnc]$lower[/classfnc]. + to its parent. See also [classfnc]$lower[/classfnc]. !fn: $lower() Moves this widget to the bottom of the stack of the widgets relative - to its tqparent. See also [classfnc]$raise[/classfnc] + to its parent. See also [classfnc]$raise[/classfnc] !fn: $hasFocus() Returns '1' if this widget has the keyboard focus. See also [classfnc]$setFocus[/classfnc]. @@ -223,7 +223,7 @@ const int widgettypes_cod[] = { Sets this widget to be the one that receives keyboard events. See also [classfnc]$hasFocus[/classfnc] !fn: $parentWidget() - Returns the object id of the tqparent widget, or '0' if this + Returns the object id of the parent widget, or '0' if this widget is a toplevel one. !fn: $backgroundColor() Returns the background color of this widget in hexadecimal @@ -1708,12 +1708,12 @@ bool KviKvsObject_widget::function_setMask(KviKvsObjectFunctionCall *c) } TQPixmap * pm=((KviKvsObject_pixmap *)obj)->getPixmap(); #ifdef COMPILE_USE_QT4 - TQBitmap tqmask(pm->tqmask()); + TQBitmap mask(pm->mask()); #else - TQBitmap tqmask(*pm->tqmask()); + TQBitmap mask(*pm->mask()); #endif - if (tqmask.isNull()) c->warning(__tr2qs("Null tqmask")); - widget()->setMask(tqmask); + if (mask.isNull()) c->warning(__tr2qs("Null mask")); + widget()->setMask(mask); return true; } #ifdef COMPILE_USE_QT4 |