summaryrefslogtreecommitdiffstats
path: root/experimental/tqtinterface/qt4/src/widgets/tqlistview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'experimental/tqtinterface/qt4/src/widgets/tqlistview.cpp')
-rw-r--r--experimental/tqtinterface/qt4/src/widgets/tqlistview.cpp282
1 files changed, 141 insertions, 141 deletions
diff --git a/experimental/tqtinterface/qt4/src/widgets/tqlistview.cpp b/experimental/tqtinterface/qt4/src/widgets/tqlistview.cpp
index 506ec6035..5b032b04b 100644
--- a/experimental/tqtinterface/qt4/src/widgets/tqlistview.cpp
+++ b/experimental/tqtinterface/qt4/src/widgets/tqlistview.cpp
@@ -91,7 +91,7 @@ struct TQListViewPrivate
// the magical hidden mother of all items
class Root: public TQListViewItem {
public:
- Root( TQListView * tqparent );
+ Root( TQListView * parent );
void setHeight( int );
void invalidateHeight();
@@ -264,7 +264,7 @@ struct TQListViewPrivate
class TQListViewToolTip : public TQToolTip
{
public:
- TQListViewToolTip( TQWidget *tqparent, TQListView *lv );
+ TQListViewToolTip( TQWidget *parent, TQListView *lv );
void maybeTip( const TQPoint &pos );
@@ -273,8 +273,8 @@ private:
};
-TQListViewToolTip::TQListViewToolTip( TQWidget *tqparent, TQListView *lv )
- : TQToolTip( tqparent ), view( lv )
+TQListViewToolTip::TQListViewToolTip( TQWidget *parent, TQListView *lv )
+ : TQToolTip( parent ), view( lv )
{
}
@@ -381,18 +381,18 @@ static TQString qEllipsisText( const TQString &org, const TQFontMetrics &fm, int
The easiest way to use TQListViewItem is to construct one with a
few constant strings, and either a TQListView or another
- TQListViewItem as tqparent.
+ TQListViewItem as parent.
\code
(void) new TQListViewItem( listView, "Column 1", "Column 2" );
(void) new TQListViewItem( listView->firstChild(), "A", "B", "C" );
\endcode
We've discarded the pointers to the items since we can still access
- them via their tqparent \e listView. By default, TQListView sorts its
+ them via their parent \e listView. By default, TQListView sorts its
items; this can be switched off with TQListView::setSorting(-1).
- The tqparent must be another TQListViewItem or a TQListView. If the
- tqparent is a TQListView, the item becomes a top-level item within
- that TQListView. If the tqparent is another TQListViewItem, the item
+ The parent must be another TQListViewItem or a TQListView. If the
+ parent is a TQListView, the item becomes a top-level item within
+ that TQListView. If the parent is another TQListViewItem, the item
becomes a child of that list view item.
If you keep the pointer, you can set or change the texts using
@@ -491,53 +491,53 @@ static TQString qEllipsisText( const TQString &org, const TQFontMetrics &fm, int
/*!
Constructs a new top-level list view item in the TQListView \a
- tqparent.
+ parent.
*/
-TQListViewItem::TQListViewItem( TQListView * tqparent )
+TQListViewItem::TQListViewItem( TQListView * parent )
{
init();
- tqparent->insertItem( this );
+ parent->insertItem( this );
}
/*!
- Constructs a new list view item that is a child of \a tqparent and
- first in the tqparent's list of tqchildren.
+ Constructs a new list view item that is a child of \a parent and
+ first in the parent's list of tqchildren.
*/
-TQListViewItem::TQListViewItem( TQListViewItem * tqparent )
+TQListViewItem::TQListViewItem( TQListViewItem * parent )
{
init();
- tqparent->insertItem( this );
+ parent->insertItem( this );
}
/*!
- Constructs an empty list view item that is a child of \a tqparent
- and is after item \a after in the tqparent's list of tqchildren. Since
- \a tqparent is a TQListView the item will be a top-level item.
+ Constructs an empty list view item that is a child of \a parent
+ and is after item \a after in the parent's list of tqchildren. Since
+ \a parent is a TQListView the item will be a top-level item.
*/
-TQListViewItem::TQListViewItem( TQListView * tqparent, TQListViewItem * after )
+TQListViewItem::TQListViewItem( TQListView * parent, TQListViewItem * after )
{
init();
- tqparent->insertItem( this );
+ parent->insertItem( this );
moveToJustAfter( after );
}
/*!
- Constructs an empty list view item that is a child of \a tqparent
- and is after item \a after in the tqparent's list of tqchildren.
+ Constructs an empty list view item that is a child of \a parent
+ and is after item \a after in the parent's list of tqchildren.
*/
-TQListViewItem::TQListViewItem( TQListViewItem * tqparent, TQListViewItem * after )
+TQListViewItem::TQListViewItem( TQListViewItem * parent, TQListViewItem * after )
{
init();
- tqparent->insertItem( this );
+ parent->insertItem( this );
moveToJustAfter( after );
}
@@ -545,14 +545,14 @@ TQListViewItem::TQListViewItem( TQListViewItem * tqparent, TQListViewItem * afte
/*!
Constructs a new top-level list view item in the TQListView \a
- tqparent, with up to eight constant strings, \a label1, \a label2, \a
+ parent, with up to eight constant strings, \a label1, \a label2, \a
label3, \a label4, \a label5, \a label6, \a label7 and \a label8
defining its columns' contents.
\sa setText()
*/
-TQListViewItem::TQListViewItem( TQListView * tqparent,
+TQListViewItem::TQListViewItem( TQListView * parent,
TQString label1,
TQString label2,
TQString label3,
@@ -563,7 +563,7 @@ TQListViewItem::TQListViewItem( TQListView * tqparent,
TQString label8 )
{
init();
- tqparent->insertItem( this );
+ parent->insertItem( this );
setText( 0, label1 );
setText( 1, label2 );
@@ -578,14 +578,14 @@ TQListViewItem::TQListViewItem( TQListView * tqparent,
/*!
Constructs a new list view item as a child of the TQListViewItem \a
- tqparent with up to eight constant strings, \a label1, \a label2, \a
+ parent with up to eight constant strings, \a label1, \a label2, \a
label3, \a label4, \a label5, \a label6, \a label7 and \a label8
as columns' contents.
\sa setText()
*/
-TQListViewItem::TQListViewItem( TQListViewItem * tqparent,
+TQListViewItem::TQListViewItem( TQListViewItem * parent,
TQString label1,
TQString label2,
TQString label3,
@@ -596,7 +596,7 @@ TQListViewItem::TQListViewItem( TQListViewItem * tqparent,
TQString label8 )
{
init();
- tqparent->insertItem( this );
+ parent->insertItem( this );
setText( 0, label1 );
setText( 1, label2 );
@@ -609,7 +609,7 @@ TQListViewItem::TQListViewItem( TQListViewItem * tqparent,
}
/*!
- Constructs a new list view item in the TQListView \a tqparent that is
+ Constructs a new list view item in the TQListView \a parent that is
included after item \a after and that has up to eight column
texts, \a label1, \a label2, \a label3, \a label4, \a label5, \a
label6, \a label7 and\a label8.
@@ -621,7 +621,7 @@ TQListViewItem::TQListViewItem( TQListViewItem * tqparent,
\sa setText()
*/
-TQListViewItem::TQListViewItem( TQListView * tqparent, TQListViewItem * after,
+TQListViewItem::TQListViewItem( TQListView * parent, TQListViewItem * after,
TQString label1,
TQString label2,
TQString label3,
@@ -632,7 +632,7 @@ TQListViewItem::TQListViewItem( TQListView * tqparent, TQListViewItem * after,
TQString label8 )
{
init();
- tqparent->insertItem( this );
+ parent->insertItem( this );
moveToJustAfter( after );
setText( 0, label1 );
@@ -648,7 +648,7 @@ TQListViewItem::TQListViewItem( TQListView * tqparent, TQListViewItem * after,
/*!
Constructs a new list view item as a child of the TQListViewItem \a
- tqparent. It is inserted after item \a after and may contain up to
+ parent. It is inserted after item \a after and may contain up to
eight strings, \a label1, \a label2, \a label3, \a label4, \a
label5, \a label6, \a label7 and \a label8 as column entries.
@@ -659,7 +659,7 @@ TQListViewItem::TQListViewItem( TQListView * tqparent, TQListViewItem * after,
\sa setText()
*/
-TQListViewItem::TQListViewItem( TQListViewItem * tqparent, TQListViewItem * after,
+TQListViewItem::TQListViewItem( TQListViewItem * parent, TQListViewItem * after,
TQString label1,
TQString label2,
TQString label3,
@@ -670,7 +670,7 @@ TQListViewItem::TQListViewItem( TQListViewItem * tqparent, TQListViewItem * afte
TQString label8 )
{
init();
- tqparent->insertItem( this );
+ parent->insertItem( this );
moveToJustAfter( after );
setText( 0, label1 );
@@ -762,14 +762,14 @@ void TQListViewItem::tqsetVisible( bool b )
TQListView *lv = listView();
if ( !lv )
return;
- if ( b && tqparent() && !tqparent()->isVisible() )
+ if ( b && parent() && !parent()->isVisible() )
return;
visible = b;
configured = FALSE;
setHeight( 0 );
invalidateHeight();
- if ( tqparent() )
- tqparent()->invalidateHeight();
+ if ( parent() )
+ parent()->invalidateHeight();
else
lv->d->r->invalidateHeight();
for ( TQListViewItem *i = childItem; i; i = i->siblingItem )
@@ -969,9 +969,9 @@ void TQListViewItem::okRename( int col )
setText( col, renameBox->text() );
removeRenameBox();
- // we set the tqparent lsc to Unsorted if that column is the sorted one
- if ( tqparent() && (int)tqparent()->lsc == col )
- tqparent()->lsc = Unsorted;
+ // we set the parent lsc to Unsorted if that column is the sorted one
+ if ( parent() && (int)parent()->lsc == col )
+ parent()->lsc = Unsorted;
emit lv->itemRenamed( this, col );
emit lv->itemRenamed( this, col, text( col ) );
@@ -2280,10 +2280,10 @@ void TQListViewItem::paintBranches( TQPainter * p, const TQColorGroup & cg,
}
-TQListViewPrivate::Root::Root( TQListView * tqparent )
- : TQListViewItem( tqparent )
+TQListViewPrivate::Root::Root( TQListView * parent )
+ : TQListViewItem( parent )
{
- lv = tqparent;
+ lv = parent;
setHeight( 0 );
setOpen( TRUE );
}
@@ -2422,7 +2422,7 @@ void TQListViewItem::ignoreDoubleClick()
The simplest pattern of use is to create a TQListView, add some
column headers using addColumn() and create one or more
TQListViewItem or TQCheckListItem objects with the TQListView as
- tqparent:
+ parent:
\quotefile xml/tagreader-with-features/structureparser.h
\skipto TQListView * table
@@ -2460,7 +2460,7 @@ void TQListViewItem::ignoreDoubleClick()
The default is FALSE.
\row \i \l setTreeStepSize()
\i Sets how many pixels an item's tqchildren are indented
- relative to their tqparent. The default is 20. This is
+ relative to their parent. The default is 20. This is
mostly a matter of taste.
\row \i \l setSorting()
\i Sets whether the items should be sorted, whether it should
@@ -2556,7 +2556,7 @@ void TQListViewItem::ignoreDoubleClick()
\i Make the item below the current item current and visible.
\row \i Left Arrow
\i If the current item is closed (<b>+</b> icon) or has no
- tqchildren, make its tqparent item current and visible. If the
+ tqchildren, make its parent item current and visible. If the
current item is open (<b>-</b> icon) close it, i.e. hide its
tqchildren. Exception: if the current item is the first item
and is closed and the horizontal scrollbar is offset to
@@ -2606,8 +2606,8 @@ void TQListViewItem::ignoreDoubleClick()
*/
/*!
- Constructs a new empty list view called \a name with tqparent \a
- tqparent.
+ Constructs a new empty list view called \a name with parent \a
+ parent.
Performance is boosted by modifying the widget flags \a f so that
only part of the TQListViewItem tqchildren is redrawn. This may be
@@ -2616,8 +2616,8 @@ void TQListViewItem::ignoreDoubleClick()
\sa TQWidget::clearWFlags() TQt::WidgetFlags
*/
-TQListView::TQListView( TQWidget * tqparent, const char *name, WFlags f )
- : TQScrollView( tqparent, name, (WFlags)(f | TQt::WStaticContents | TQt::WNoAutoErase) )
+TQListView::TQListView( TQWidget * parent, const char *name, WFlags f )
+ : TQScrollView( parent, name, (WFlags)(f | TQt::WStaticContents | TQt::WNoAutoErase) )
{
init();
}
@@ -3165,7 +3165,7 @@ void TQListView::buildDrawableList() const
/*!
\property TQListView::treeStepSize
- \brief the number of pixels a child is offset from its tqparent
+ \brief the number of pixels a child is offset from its parent
The default is 20 pixels.
@@ -3908,7 +3908,7 @@ int TQListViewItem::depth() const
/*!
Returns a pointer to the item immediately above this item on the
screen. This is usually the item's closest older sibling, but it
- may also be its tqparent or its next older sibling's youngest child,
+ may also be its parent or its next older sibling's youngest child,
or something else if anyoftheabove->height() returns 0. Returns 0
if there is no item immediately above this item.
@@ -3948,8 +3948,8 @@ TQListViewItem * TQListViewItem::itemAbove()
/*!
Returns a pointer to the item immediately below this item on the
screen. This is usually the item's eldest child, but it may also
- be its next younger sibling, its tqparent's next younger sibling,
- grandtqparent's, etc., or something else if anyoftheabove->height()
+ be its next younger sibling, its parent's next younger sibling,
+ grandparent's, etc., or something else if anyoftheabove->height()
returns 0. Returns 0 if there is no item immediately below this
item.
@@ -4009,12 +4009,12 @@ TQListViewItem* TQListViewItem::firstChild() const
/*!
- Returns the tqparent of this item, or 0 if this item has no tqparent.
+ Returns the parent of this item, or 0 if this item has no parent.
\sa firstChild(), nextSibling()
*/
-TQListViewItem* TQListViewItem::tqparent() const
+TQListViewItem* TQListViewItem::parent() const
{
if ( !parentItem || parentItem->is_root ) return 0;
return parentItem;
@@ -4324,11 +4324,11 @@ void TQListView::contentsMousePressEventEx( TQMouseEvent * e )
bool newCurrent = FALSE;
TQListViewItem *ci = d->focusItem;
while ( ci ) {
- if ( ci->tqparent() && ci->tqparent() == i ) {
+ if ( ci->parent() && ci->parent() == i ) {
newCurrent = TRUE;
break;
}
- ci = ci->tqparent();
+ ci = ci->parent();
}
if ( newCurrent ) {
setCurrentItem( i );
@@ -4534,11 +4534,11 @@ void TQListView::contentsMouseReleaseEventEx( TQMouseEvent * e )
bool newCurrent = FALSE;
TQListViewItem *ci = d->focusItem;
while ( ci ) {
- if ( ci->tqparent() && ci->tqparent() == i ) {
+ if ( ci->parent() && ci->parent() == i ) {
newCurrent = TRUE;
break;
}
- ci = ci->tqparent();
+ ci = ci->parent();
}
if ( newCurrent )
setCurrentItem( i );
@@ -5200,7 +5200,7 @@ TQListViewItem * TQListView::itemAt( const TQPoint & viewPos ) const
while( c && c->i && ( c->y + c->i->height() <= g ||
!c->i->isVisible() ||
- (c->i->tqparent() && !c->i->tqparent()->isVisible()) ) )
+ (c->i->parent() && !c->i->parent()->isVisible()) ) )
c = d->drawables->next();
TQListViewItem *i = (c && c->y <= g) ? c->i : 0;
@@ -6057,55 +6057,55 @@ struct TQCheckListItemPrivate
/*!
- Constructs a checkable item with tqparent \a tqparent, text \a text
+ Constructs a checkable item with parent \a parent, text \a text
and of type \a tt. Note that a \c RadioButton must be the child of a
\c RadioButtonController, otherwise it will not toggle.
*/
-TQCheckListItem::TQCheckListItem( TQCheckListItem *tqparent, const TQString &text,
+TQCheckListItem::TQCheckListItem( TQCheckListItem *parent, const TQString &text,
Type tt )
- : TQListViewItem( tqparent, text, TQString::null )
+ : TQListViewItem( parent, text, TQString::null )
{
myType = tt;
init();
if ( myType == RadioButton ) {
- if ( tqparent->type() != RadioButtonController )
+ if ( parent->type() != RadioButtonController )
qWarning( "TQCheckListItem::TQCheckListItem(), radio button must be "
"child of a controller" );
else
- d->exclusive = tqparent;
+ d->exclusive = parent;
}
}
/*!
- Constructs a checkable item with tqparent \a tqparent, which is after
- \a after in the tqparent's list of tqchildren, and with text \a text
+ Constructs a checkable item with parent \a parent, which is after
+ \a after in the parent's list of tqchildren, and with text \a text
and of type \a tt. Note that a \c RadioButton must be the child of
a \c RadioButtonController, otherwise it will not toggle.
*/
-TQCheckListItem::TQCheckListItem( TQCheckListItem *tqparent, TQListViewItem *after,
+TQCheckListItem::TQCheckListItem( TQCheckListItem *parent, TQListViewItem *after,
const TQString &text, Type tt )
- : TQListViewItem( tqparent, after, text )
+ : TQListViewItem( parent, after, text )
{
myType = tt;
init();
if ( myType == RadioButton ) {
- if ( tqparent->type() != RadioButtonController )
+ if ( parent->type() != RadioButtonController )
qWarning( "TQCheckListItem::TQCheckListItem(), radio button must be "
"child of a controller" );
else
- d->exclusive = tqparent;
+ d->exclusive = parent;
}
}
/*!
- Constructs a checkable item with tqparent \a tqparent, text \a text
+ Constructs a checkable item with parent \a parent, text \a text
and of type \a tt. Note that this item must \e not be a \c
RadioButton. Radio buttons must be tqchildren of a \c
RadioButtonController.
*/
-TQCheckListItem::TQCheckListItem( TQListViewItem *tqparent, const TQString &text,
+TQCheckListItem::TQCheckListItem( TQListViewItem *parent, const TQString &text,
Type tt )
- : TQListViewItem( tqparent, text, TQString::null )
+ : TQListViewItem( parent, text, TQString::null )
{
myType = tt;
if ( myType == RadioButton ) {
@@ -6116,15 +6116,15 @@ TQCheckListItem::TQCheckListItem( TQListViewItem *tqparent, const TQString &text
}
/*!
- Constructs a checkable item with tqparent \a tqparent, which is after
- \a after in the tqparent's list of tqchildren, with text \a text and
+ Constructs a checkable item with parent \a parent, which is after
+ \a after in the parent's list of tqchildren, with text \a text and
of type \a tt. Note that this item must \e not be a \c
RadioButton. Radio buttons must be tqchildren of a \c
RadioButtonController.
*/
-TQCheckListItem::TQCheckListItem( TQListViewItem *tqparent, TQListViewItem *after,
+TQCheckListItem::TQCheckListItem( TQListViewItem *parent, TQListViewItem *after,
const TQString &text, Type tt )
- : TQListViewItem( tqparent, after, text )
+ : TQListViewItem( parent, after, text )
{
myType = tt;
if ( myType == RadioButton ) {
@@ -6136,13 +6136,13 @@ TQCheckListItem::TQCheckListItem( TQListViewItem *tqparent, TQListViewItem *afte
/*!
- Constructs a checkable item with tqparent \a tqparent, text \a text
+ Constructs a checkable item with parent \a parent, text \a text
and of type \a tt. Note that \a tt must \e not be \c RadioButton.
Radio buttons must be tqchildren of a \c RadioButtonController.
*/
-TQCheckListItem::TQCheckListItem( TQListView *tqparent, const TQString &text,
+TQCheckListItem::TQCheckListItem( TQListView *parent, const TQString &text,
Type tt )
- : TQListViewItem( tqparent, text )
+ : TQListViewItem( parent, text )
{
myType = tt;
if ( tt == RadioButton )
@@ -6152,14 +6152,14 @@ TQCheckListItem::TQCheckListItem( TQListView *tqparent, const TQString &text,
}
/*!
- Constructs a checkable item with tqparent \a tqparent, which is after
- \a after in the tqparent's list of tqchildren, with text \a text and
+ Constructs a checkable item with parent \a parent, which is after
+ \a after in the parent's list of tqchildren, with text \a text and
of type \a tt. Note that \a tt must \e not be \c RadioButton.
Radio buttons must be tqchildren of a \c RadioButtonController.
*/
-TQCheckListItem::TQCheckListItem( TQListView *tqparent, TQListViewItem *after,
+TQCheckListItem::TQCheckListItem( TQListView *parent, TQListViewItem *after,
const TQString &text, Type tt )
- : TQListViewItem( tqparent, after, text )
+ : TQListViewItem( parent, after, text )
{
myType = tt;
if ( tt == RadioButton )
@@ -6179,12 +6179,12 @@ int TQCheckListItem::rtti() const
}
/*!
- Constructs a \c RadioButtonController item with tqparent \a tqparent,
+ Constructs a \c RadioButtonController item with parent \a parent,
text \a text and pixmap \a p.
*/
-TQCheckListItem::TQCheckListItem( TQListView *tqparent, const TQString &text,
+TQCheckListItem::TQCheckListItem( TQListView *parent, const TQString &text,
const TQPixmap & p )
- : TQListViewItem( tqparent, text )
+ : TQListViewItem( parent, text )
{
myType = RadioButtonController;
setPixmap( 0, p );
@@ -6192,12 +6192,12 @@ TQCheckListItem::TQCheckListItem( TQListView *tqparent, const TQString &text,
}
/*!
- Constructs a \c RadioButtonController item with tqparent \a tqparent,
+ Constructs a \c RadioButtonController item with parent \a parent,
text \a text and pixmap \a p.
*/
-TQCheckListItem::TQCheckListItem( TQListViewItem *tqparent, const TQString &text,
+TQCheckListItem::TQCheckListItem( TQListViewItem *parent, const TQString &text,
const TQPixmap & p )
- : TQListViewItem( tqparent, text )
+ : TQListViewItem( parent, text )
{
myType = RadioButtonController;
setPixmap( 0, p );
@@ -6288,7 +6288,7 @@ TQCheckListItem::ToggleState TQCheckListItem::state() const
}
/*
- Same as the public state() except this one does not tqmask NoChange into Off
+ Same as the public state() except this one does not mask NoChange into Off
when tristate is disabled.
*/
TQCheckListItem::ToggleState TQCheckListItem::internalState() const
@@ -6323,8 +6323,8 @@ void TQCheckListItem::setState( ToggleState s )
/*
Sets the toggle state of the checklistitems. \a update tells if the
- controller / tqparent controller should be aware of these changes, \a store
- tells if the tqparent should store its tqchildren if certain conditions arise
+ controller / parent controller should be aware of these changes, \a store
+ tells if the parent should store its tqchildren if certain conditions arise
*/
void TQCheckListItem::setState( ToggleState s, bool update, bool store)
{
@@ -6335,9 +6335,9 @@ void TQCheckListItem::setState( ToggleState s, bool update, bool store)
if ( myType == CheckBox ) {
setCurrentState( s );
stateChange( state() );
- if ( update && tqparent() && tqparent()->rtti() == 1
- && ((TQCheckListItem*)tqparent())->type() == CheckBoxController )
- ((TQCheckListItem*)tqparent())->updateController( update, store );
+ if ( update && parent() && parent()->rtti() == 1
+ && ((TQCheckListItem*)parent())->type() == CheckBoxController )
+ ((TQCheckListItem*)parent())->updateController( update, store );
} else if ( myType == CheckBoxController ) {
if ( s == NoChange && childCount()) {
restoreState( (void*) this );
@@ -6359,18 +6359,18 @@ void TQCheckListItem::setState( ToggleState s, bool update, bool store)
ToggleState oldState = internalState();
updateController( FALSE, FALSE );
if ( oldState != internalState() &&
- tqparent() && tqparent()->rtti() == 1 &&
- ((TQCheckListItem*)tqparent())->type() == CheckBoxController )
- ((TQCheckListItem*)tqparent())->updateController( update, store );
+ parent() && parent()->rtti() == 1 &&
+ ((TQCheckListItem*)parent())->type() == CheckBoxController )
+ ((TQCheckListItem*)parent())->updateController( update, store );
updateController( update, store );
} else {
- // if there are no tqchildren we simply set the CheckBoxController and update its tqparent
+ // if there are no tqchildren we simply set the CheckBoxController and update its parent
setCurrentState( s );
stateChange( state() );
- if ( tqparent() && tqparent()->rtti() == 1
- && ((TQCheckListItem*)tqparent())->type() == CheckBoxController )
- ((TQCheckListItem*)tqparent())->updateController( update, store );
+ if ( parent() && parent()->rtti() == 1
+ && ((TQCheckListItem*)parent())->type() == CheckBoxController )
+ ((TQCheckListItem*)parent())->updateController( update, store );
}
} else {
setCurrentState( s );
@@ -6421,7 +6421,7 @@ void TQCheckListItem::setCurrentState( ToggleState s )
/*
- updates the internally stored state of this item for the tqparent (key)
+ updates the internally stored state of this item for the parent (key)
*/
void TQCheckListItem::setStoredState( ToggleState newState, void *key )
{
@@ -6477,8 +6477,8 @@ void TQCheckListItem::activate()
int boxsize = lv->tqstyle().tqpixelMetric(TQStyle::PM_CheckListButtonSize, lv);
if ( activatedPos( pos ) ) {
bool parentControl = FALSE;
- if ( tqparent() && tqparent()->rtti() == 1 &&
- ((TQCheckListItem*) tqparent())->type() == RadioButtonController )
+ if ( parent() && parent()->rtti() == 1 &&
+ ((TQCheckListItem*) parent())->type() == RadioButtonController )
parentControl = TRUE;
int x = parentControl ? 0 : 3;
@@ -6600,7 +6600,7 @@ void TQCheckListItem::restoreState( void *key, int depth )
/*
Checks the tqchildrens state and updates the controllers state
- if necessary. If the controllers state change, then his tqparent again is
+ if necessary. If the controllers state change, then his parent again is
called to update itself.
*/
void TQCheckListItem::updateController( bool update , bool store )
@@ -6609,10 +6609,10 @@ void TQCheckListItem::updateController( bool update , bool store )
return;
TQCheckListItem *controller = 0;
- // checks if this CheckBoxController has another CheckBoxController as tqparent
- if ( tqparent() && tqparent()->rtti() == 1
- && ((TQCheckListItem*)tqparent())->type() == CheckBoxController )
- controller = (TQCheckListItem*)tqparent();
+ // checks if this CheckBoxController has another CheckBoxController as parent
+ if ( parent() && parent()->rtti() == 1
+ && ((TQCheckListItem*)parent())->type() == CheckBoxController )
+ controller = (TQCheckListItem*)parent();
ToggleState theState = Off;
bool first = TRUE;
@@ -6734,8 +6734,8 @@ void TQCheckListItem::paintCell( TQPainter * p, const TQColorGroup & cg,
}
bool parentControl = FALSE;
- if ( tqparent() && tqparent()->rtti() == 1 &&
- ((TQCheckListItem*) tqparent())->type() == RadioButtonController )
+ if ( parent() && parent()->rtti() == 1 &&
+ ((TQCheckListItem*) parent())->type() == RadioButtonController )
parentControl = TRUE;
TQFontMetrics fm( lv->fontMetrics() );
@@ -6819,8 +6819,8 @@ void TQCheckListItem::paintFocus( TQPainter *p, const TQColorGroup & cg,
intersect = r.intersects( TQRect( p, r.y(), xdepth - p + 1, r.height() ) );
}
bool parentControl = FALSE;
- if ( tqparent() && tqparent()->rtti() == 1 &&
- ((TQCheckListItem*) tqparent())->type() == RadioButtonController )
+ if ( parent() && parent()->rtti() == 1 &&
+ ((TQCheckListItem*) parent())->type() == RadioButtonController )
parentControl = TRUE;
if ( myType != RadioButtonController && intersect &&
(lv->rootIsDecorated() || myType == RadioButton ||
@@ -6981,7 +6981,7 @@ bool TQListView::rootIsDecorated() const
/*!
Ensures that item \a i is visible, scrolling the list view
- vertically if necessary and opening (expanding) any tqparent items
+ vertically if necessary and opening (expanding) any parent items
if this is required to show the item.
\sa tqitemRect() TQScrollView::ensureVisible()
@@ -6992,11 +6992,11 @@ void TQListView::ensureItemVisible( const TQListViewItem * i )
if ( !i || !i->isVisible() )
return;
- TQListViewItem *tqparent = i->tqparent();
- while ( tqparent ) {
- if ( !tqparent->isOpen() )
- tqparent->setOpen( TRUE );
- tqparent = tqparent->tqparent();
+ TQListViewItem *parent = i->parent();
+ while ( parent ) {
+ if ( !parent->isOpen() )
+ parent->setOpen( TRUE );
+ parent = parent->parent();
}
if ( d->r->maybeTotalHeight < 0 )
@@ -7051,7 +7051,7 @@ int TQListView::childCount() const
/*
Moves this item to just after \a olderSibling. \a olderSibling and
- this object must have the same tqparent.
+ this object must have the same parent.
If you need to move an item in the hierarchy use takeItem() and
insertItem().
@@ -7089,7 +7089,7 @@ void TQListViewItem::moveItem( TQListViewItem *after )
{
if ( !after || after == this )
return;
- if ( tqparent() != after->tqparent() ) {
+ if ( parent() != after->parent() ) {
if ( parentItem )
parentItem->takeItem( this );
if ( after->parentItem ) {
@@ -7371,7 +7371,7 @@ bool TQListView::isRenaming() const
starting point. This means that it always makes the first child of
the current item the new current item. If there is no child, the
next sibling becomes the new current item; and if there is no next
- sibling, the next sibling of the tqparent becomes current.
+ sibling, the next sibling of the parent becomes current.
The following example creates a list of all the items that have
been selected by the user, storing pointers to the items in a
@@ -7404,7 +7404,7 @@ bool TQListView::isRenaming() const
its TQListViewItems. So when a TQListViewItem gets removed all
iterators that point to this item are updated and point to the
following item if possible, otherwise to a valid item before the
- current one or to 0. Note however that deleting the tqparent item of
+ current one or to 0. Note however that deleting the parent item of
an item that an iterator points to is not safe.
\sa TQListView, TQListViewItem
@@ -7605,7 +7605,7 @@ TQListViewItemIterator &TQListViewItemIterator::operator++()
TQListViewItem *item = curr->firstChild();
if ( !item ) {
while ( (item = curr->nextSibling()) == 0 ) {
- curr = curr->tqparent();
+ curr = curr->parent();
if ( curr == 0 )
break;
}
@@ -7655,7 +7655,7 @@ TQListViewItemIterator &TQListViewItemIterator::operator--()
if ( !curr )
return *this;
- if ( !curr->tqparent() ) {
+ if ( !curr->parent() ) {
// we are in the first depth
if ( curr->listView() ) {
if ( curr->listView()->firstChild() != curr ) {
@@ -7669,7 +7669,7 @@ TQListViewItemIterator &TQListViewItemIterator::operator--()
if ( i && i->firstChild() ) {
// go to the last child of this item
TQListViewItemIterator it( curr->firstChild() );
- for ( ; it.current() && it.current()->tqparent(); ++it )
+ for ( ; it.current() && it.current()->parent(); ++it )
curr = it.current();
}
@@ -7685,11 +7685,11 @@ TQListViewItemIterator &TQListViewItemIterator::operator--()
} else
return *this;
} else {
- TQListViewItem *tqparent = curr->tqparent();
+ TQListViewItem *parent = curr->parent();
- if ( curr != tqparent->firstChild() ) {
+ if ( curr != parent->firstChild() ) {
// go to the previous sibling
- TQListViewItem *i = tqparent->firstChild();
+ TQListViewItem *i = parent->firstChild();
while ( i && i->siblingItem != curr )
i = i->siblingItem;
@@ -7698,7 +7698,7 @@ TQListViewItemIterator &TQListViewItemIterator::operator--()
if ( i && i->firstChild() ) {
// go to the last child of this item
TQListViewItemIterator it( curr->firstChild() );
- for ( ; it.current() && it.current()->tqparent() != tqparent; ++it )
+ for ( ; it.current() && it.current()->parent() != parent; ++it )
curr = it.current();
}
@@ -7707,8 +7707,8 @@ TQListViewItemIterator &TQListViewItemIterator::operator--()
return *this;
} else {
- // make our tqparent the current item
- curr = tqparent;
+ // make our parent the current item
+ curr = parent;
if ( curr && !matchesFlags( curr ) )
--( *this );
@@ -7816,8 +7816,8 @@ void TQListViewItemIterator::currentRemoved()
{
if ( !curr ) return;
- if ( curr->tqparent() )
- curr = curr->tqparent();
+ if ( curr->parent() )
+ curr = curr->parent();
else if ( curr->nextSibling() )
curr = curr->nextSibling();
else if ( listView && listView->firstChild() &&