summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/src/kernel/tqlayout.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-08-10 12:13:27 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-08-10 12:13:27 -0500
commitd296f1d337dabfeae5191955fdadb874965dbbe9 (patch)
tree1a4b3b4cca01f2ea77eee2497297219d60e9bbd4 /tqtinterface/qt4/src/kernel/tqlayout.cpp
parenteaa7ee2e0bbca40ba3173c4304f81957e8964291 (diff)
downloadexperimental-d296f1d337dabfeae5191955fdadb874965dbbe9.tar.gz
experimental-d296f1d337dabfeae5191955fdadb874965dbbe9.zip
rename the following methods:
tqparent parent tqmask mask
Diffstat (limited to 'tqtinterface/qt4/src/kernel/tqlayout.cpp')
-rw-r--r--tqtinterface/qt4/src/kernel/tqlayout.cpp84
1 files changed, 42 insertions, 42 deletions
diff --git a/tqtinterface/qt4/src/kernel/tqlayout.cpp b/tqtinterface/qt4/src/kernel/tqlayout.cpp
index 9c3132a..f42cf8e 100644
--- a/tqtinterface/qt4/src/kernel/tqlayout.cpp
+++ b/tqtinterface/qt4/src/kernel/tqlayout.cpp
@@ -63,7 +63,7 @@ int menuBarHeightForWidth( QWidget *menubar_w, int w )
return 0;
}
-TQLayout::TQLayout( QWidget *tqparent, int margin, int spacing, const char *name ) : QLayout( tqparent ), autoNewChild(false)
+TQLayout::TQLayout( QWidget *parent, int margin, int spacing, const char *name ) : QLayout( parent ), autoNewChild(false)
{
setObjectName(QString::fromAscii(name));
setMargin(margin);
@@ -71,8 +71,8 @@ TQLayout::TQLayout( QWidget *tqparent, int margin, int spacing, const char *name
setSpacing(margin);
else
setSpacing(spacing);
- if ( tqparent ) tqparent->installEventFilter( this );
- TQT_TQOBJECT_REQUIRED_INITIALIZATION(tqparent)
+ if ( parent ) parent->installEventFilter( this );
+ TQT_TQOBJECT_REQUIRED_INITIALIZATION(parent)
}
TQLayout::TQLayout( QLayout *parentLayout, int spacing, const char *name ) : QLayout(), autoNewChild(false)
@@ -497,7 +497,7 @@ void TQLayout::mouseDoubleClickEvent( TQMouseEvent *e )
If you reimplement this handler, it is very important that you
\link TQWheelEvent ignore()\endlink the event if you do not handle
- it, so that the widget's tqparent can interpret it.
+ it, so that the widget's parent can interpret it.
The default implementation ignores the event.
@@ -517,7 +517,7 @@ void TQLayout::wheelEvent( TQWheelEvent *e )
If you reimplement this handler, it is very important that you
\link TQTabletEvent ignore()\endlink the event if you do not handle
- it, so that the widget's tqparent can interpret it.
+ it, so that the widget's parent can interpret it.
The default implementation ignores the event.
@@ -539,10 +539,10 @@ void TQLayout::tabletEvent( TQTabletEvent *e )
If you reimplement this handler, it is very important that you
explicitly \link TQKeyEvent::ignore() ignore\endlink the event
- if you do not understand it, so that the widget's tqparent can
+ if you do not understand it, so that the widget's parent can
interpret it; otherwise, the event will be implicitly accepted.
Although top-level widgets are able to choose whether to accept
- or ignore unknown events because they have no tqparent widgets that
+ or ignore unknown events because they have no parent widgets that
could otherwise handle them, it is good practice to explicitly
ignore events to make widgets as reusable as possible.
@@ -568,7 +568,7 @@ void TQLayout::keyPressEvent( TQKeyEvent * )
If you reimplement this handler, it is very important that you
\link TQKeyEvent ignore()\endlink the release if you do not
- understand it, so that the widget's tqparent can interpret it.
+ understand it, so that the widget's parent can interpret it.
The default implementation ignores the event.
@@ -1003,7 +1003,7 @@ void TQGridLayout::mouseDoubleClickEvent( TQMouseEvent *e )
If you reimplement this handler, it is very important that you
\link TQWheelEvent ignore()\endlink the event if you do not handle
- it, so that the widget's tqparent can interpret it.
+ it, so that the widget's parent can interpret it.
The default implementation ignores the event.
@@ -1023,7 +1023,7 @@ void TQGridLayout::wheelEvent( TQWheelEvent *e )
If you reimplement this handler, it is very important that you
\link TQTabletEvent ignore()\endlink the event if you do not handle
- it, so that the widget's tqparent can interpret it.
+ it, so that the widget's parent can interpret it.
The default implementation ignores the event.
@@ -1045,10 +1045,10 @@ void TQGridLayout::tabletEvent( TQTabletEvent *e )
If you reimplement this handler, it is very important that you
explicitly \link TQKeyEvent::ignore() ignore\endlink the event
- if you do not understand it, so that the widget's tqparent can
+ if you do not understand it, so that the widget's parent can
interpret it; otherwise, the event will be implicitly accepted.
Although top-level widgets are able to choose whether to accept
- or ignore unknown events because they have no tqparent widgets that
+ or ignore unknown events because they have no parent widgets that
could otherwise handle them, it is good practice to explicitly
ignore events to make widgets as reusable as possible.
@@ -1074,7 +1074,7 @@ void TQGridLayout::keyPressEvent( TQKeyEvent * )
If you reimplement this handler, it is very important that you
\link TQKeyEvent ignore()\endlink the release if you do not
- understand it, so that the widget's tqparent can interpret it.
+ understand it, so that the widget's parent can interpret it.
The default implementation ignores the event.
@@ -2277,7 +2277,7 @@ inline TQGridLayoutDataIterator::TQGridLayoutDataIterator( TQGridLayoutData *d )
\ingroup appearance
\mainclass
- TQGridLayout takes the space made available to it (by its tqparent
+ TQGridLayout takes the space made available to it (by its parent
tqlayout or by the mainWidget()), divides it up into rows and
columns, and puts each widget it manages into the correct cell.
@@ -2321,7 +2321,7 @@ inline TQGridLayoutDataIterator::TQGridLayoutDataIterator( TQGridLayoutData *d )
If the TQGridLayout is not the top-level tqlayout (i.e. does not
manage all of the widget's area and tqchildren), you must add it to
- its tqparent tqlayout when you create it, but before you do anything
+ its parent tqlayout when you create it, but before you do anything
with it. The normal way to add a tqlayout is by calling
parentLayout-\>addLayout().
@@ -2388,16 +2388,16 @@ static bool checkWidget( TQLayout *l, TQWidget *w )
/*!
Constructs a new TQGridLayout with \a nRows rows, \a nCols columns
- and tqparent widget, \a tqparent. \a tqparent may not be 0. The grid
+ and parent widget, \a parent. \a parent may not be 0. The grid
tqlayout is called \a name.
\a margin is the number of pixels between the edge of the widget
and its managed tqchildren. \a space is the default number of pixels
between cells. If \a space is -1, the value of \a margin is used.
*/
-TQGridLayout::TQGridLayout( TQWidget *tqparent, int nRows, int nCols, int margin,
+TQGridLayout::TQGridLayout( TQWidget *parent, int nRows, int nCols, int margin,
int space, const char *name )
- : TQLayout( tqparent, margin, space, name )
+ : TQLayout( parent, margin, space, name )
{
init( nRows, nCols );
}
@@ -2405,7 +2405,7 @@ TQGridLayout::TQGridLayout( TQWidget *tqparent, int nRows, int nCols, int margin
/*!
Constructs a new grid that is placed inside \a parentLayout with
\a nRows rows and \a nCols columns. If \a spacing is -1, this
- TQGridLayout inherits its tqparent's spacing(); otherwise \a spacing
+ TQGridLayout inherits its parent's spacing(); otherwise \a spacing
is used. The grid tqlayout is called \a name.
This grid is placed according to \a parentLayout's default
@@ -2420,7 +2420,7 @@ TQGridLayout::TQGridLayout( TQLayout *parentLayout, int nRows, int nCols,
/*!
Constructs a new grid with \a nRows rows and \a nCols columns. If
- \a spacing is -1, this TQGridLayout inherits its tqparent's
+ \a spacing is -1, this TQGridLayout inherits its parent's
spacing(); otherwise \a spacing is used. The grid tqlayout is called
\a name.
@@ -2691,9 +2691,9 @@ void TQGridLayout::addMultiCellWidget( TQWidget *w, int fromRow, int toRow,
\a tqlayout becomes a child of the grid tqlayout.
- When a tqlayout is constructed with another tqlayout as its tqparent,
+ When a tqlayout is constructed with another tqlayout as its parent,
you don't need to call addLayout(); the child tqlayout is
- automatically added to the tqparent tqlayout as it is constructed.
+ automatically added to the parent tqlayout as it is constructed.
\sa addMultiCellLayout()
*/
@@ -3046,7 +3046,7 @@ private:
\ingroup geomanagement
\ingroup appearance
- TQBoxLayout takes the space it gets (from its tqparent tqlayout or from
+ TQBoxLayout takes the space it gets (from its parent tqlayout or from
the mainWidget()), divides it up into a row of boxes, and makes
each managed widget fill one box.
@@ -3071,7 +3071,7 @@ private:
If the TQBoxLayout is not the top-level tqlayout (i.e. it is not
managing all of the widget's area and tqchildren), you must add it
- to its tqparent tqlayout before you can do anything with it. The
+ to its parent tqlayout before you can do anything with it. The
normal way to add a tqlayout is by calling
parentLayout-\>addLayout().
@@ -3107,7 +3107,7 @@ private:
\endlist
The margin defaults to 0. The spacing defaults to the same as the
- margin width for a top-level tqlayout, or to the same as the tqparent
+ margin width for a top-level tqlayout, or to the same as the parent
tqlayout. Both are parameters to the constructor.
To remove a widget from a tqlayout, call remove(). Calling
@@ -3140,7 +3140,7 @@ static inline bool horz( TQBoxLayout::Direction dir )
/*!
Constructs a new TQBoxLayout with direction \a d and main widget \a
- tqparent. \a tqparent may not be 0.
+ parent. \a parent may not be 0.
The \a margin is the number of pixels between the edge of the
widget and its managed tqchildren. The \a spacing is the default
@@ -3151,9 +3151,9 @@ static inline bool horz( TQBoxLayout::Direction dir )
\sa direction()
*/
-TQBoxLayout::TQBoxLayout( TQWidget *tqparent, Direction d,
+TQBoxLayout::TQBoxLayout( TQWidget *parent, Direction d,
int margin, int spacing, const char *name )
- : TQLayout( tqparent, margin, spacing, name )
+ : TQLayout( parent, margin, spacing, name )
{
data = new TQBoxLayoutData;
dir = d;
@@ -3166,7 +3166,7 @@ TQBoxLayout::TQBoxLayout( TQWidget *tqparent, Direction d,
The \a spacing is the default number of pixels between neighboring
tqchildren. If \a spacing is -1, the tqlayout will inherit its
- tqparent's spacing().
+ parent's spacing().
*/
TQBoxLayout::TQBoxLayout( TQLayout *parentLayout, Direction d, int spacing,
const char *name )
@@ -3180,7 +3180,7 @@ TQBoxLayout::TQBoxLayout( TQLayout *parentLayout, Direction d, int spacing,
/*!
Constructs a new TQBoxLayout called \a name, with direction \a d.
- If \a spacing is -1, the tqlayout will inherit its tqparent's
+ If \a spacing is -1, the tqlayout will inherit its parent's
spacing(); otherwise \a spacing is used.
You must insert this box into another tqlayout.
@@ -3606,9 +3606,9 @@ void TQBoxLayout::addWidget( TQWidget *widget, int stretch,
Adds \a tqlayout to the end of the box, with serial stretch factor
\a stretch.
- When a tqlayout is constructed with another tqlayout as its tqparent,
+ When a tqlayout is constructed with another tqlayout as its parent,
you don't need to call addLayout(); the child tqlayout is
- automatically added to the tqparent tqlayout as it is constructed.
+ automatically added to the parent tqlayout as it is constructed.
\sa insertLayout(), setAutoAdd(), addWidget(), addSpacing()
*/
@@ -3920,16 +3920,16 @@ void TQBoxLayout::calcHfw( int w )
/*!
Constructs a new top-level horizontal box called \a name, with
- tqparent \a tqparent.
+ parent \a parent.
The \a margin is the number of pixels between the edge of the
widget and its managed tqchildren. The \a spacing is the default
number of pixels between neighboring tqchildren. If \a spacing is -1
the value of \a margin is used for \a spacing.
*/
-TQHBoxLayout::TQHBoxLayout( TQWidget *tqparent, int margin,
+TQHBoxLayout::TQHBoxLayout( TQWidget *parent, int margin,
int spacing, const char *name )
- : TQBoxLayout( tqparent, LeftToRight, margin, spacing, name )
+ : TQBoxLayout( parent, LeftToRight, margin, spacing, name )
{
}
@@ -3939,7 +3939,7 @@ TQHBoxLayout::TQHBoxLayout( TQWidget *tqparent, int margin,
The \a spacing is the default number of pixels between neighboring
tqchildren. If \a spacing is -1, this TQHBoxLayout will inherit its
- tqparent's spacing().
+ parent's spacing().
*/
TQHBoxLayout::TQHBoxLayout( TQLayout *parentLayout, int spacing,
const char *name )
@@ -3953,7 +3953,7 @@ TQHBoxLayout::TQHBoxLayout( TQLayout *parentLayout, int spacing,
The \a spacing is the default number of pixels between neighboring
tqchildren. If \a spacing is -1, this TQHBoxLayout will inherit its
- tqparent's spacing().
+ parent's spacing().
*/
TQHBoxLayout::TQHBoxLayout( int spacing, const char *name )
: TQBoxLayout( LeftToRight, spacing, name )
@@ -3995,16 +3995,16 @@ TQHBoxLayout::~TQHBoxLayout()
/*!
Constructs a new top-level vertical box called \a name, with
- tqparent \a tqparent.
+ parent \a parent.
The \a margin is the number of pixels between the edge of the
widget and its managed tqchildren. The \a spacing is the default
number of pixels between neighboring tqchildren. If \a spacing is -1
the value of \a margin is used for \a spacing.
*/
-TQVBoxLayout::TQVBoxLayout( TQWidget *tqparent, int margin, int spacing,
+TQVBoxLayout::TQVBoxLayout( TQWidget *parent, int margin, int spacing,
const char *name )
- : TQBoxLayout( tqparent, TopToBottom, margin, spacing, name )
+ : TQBoxLayout( parent, TopToBottom, margin, spacing, name )
{
}
@@ -4015,7 +4015,7 @@ TQVBoxLayout::TQVBoxLayout( TQWidget *tqparent, int margin, int spacing,
The \a spacing is the default number of pixels between neighboring
tqchildren. If \a spacing is -1, this TQVBoxLayout will inherit its
- tqparent's spacing().
+ parent's spacing().
*/
TQVBoxLayout::TQVBoxLayout( TQLayout *parentLayout, int spacing,
const char *name )
@@ -4029,7 +4029,7 @@ TQVBoxLayout::TQVBoxLayout( TQLayout *parentLayout, int spacing,
The \a spacing is the default number of pixels between neighboring
tqchildren. If \a spacing is -1, this TQVBoxLayout will inherit its
- tqparent's spacing().
+ parent's spacing().
*/
TQVBoxLayout::TQVBoxLayout( int spacing, const char *name )
: TQBoxLayout( TopToBottom, spacing, name )