diff options
Diffstat (limited to 'tqtinterface/qt4/src/widgets')
114 files changed, 923 insertions, 923 deletions
diff --git a/tqtinterface/qt4/src/widgets/tqaction.cpp b/tqtinterface/qt4/src/widgets/tqaction.cpp index 8a65d06..6857dda 100644 --- a/tqtinterface/qt4/src/widgets/tqaction.cpp +++ b/tqtinterface/qt4/src/widgets/tqaction.cpp @@ -220,7 +220,7 @@ TQActionPrivate::~TQActionPrivate() ++itci; TQComboBox* combo = ci->combo; combo->clear(); - TQActionGroup *group = ::tqqt_cast<TQActionGroup*>(action->tqparent()); + TQActionGroup *group = ::tqqt_cast<TQActionGroup*>(action->parent()); TQObjectList *siblings = group ? group->queryList("TQAction") : 0; if (siblings) { TQObjectListIt it(*siblings); @@ -392,38 +392,38 @@ static TQString qt_stripMenuText( TQString s ) } /*! - Constructs an action called \a name with tqparent \a tqparent. + Constructs an action called \a name with parent \a parent. - If \a tqparent is a TQActionGroup, the new action inserts itself into - \a tqparent. + If \a parent is a TQActionGroup, the new action inserts itself into + \a parent. - For accelerators and status tips to work, \a tqparent must either be - a widget, or an action group whose tqparent is a widget. + For accelerators and status tips to work, \a parent must either be + a widget, or an action group whose parent is a widget. \warning To prevent recursion, don't create an action as a child of a widget that the action is later added to. */ -TQAction::TQAction( TQT_BASE_OBJECT_NAME* tqparent, const char* name ) - : TQObject( TQT_TQOBJECT(tqparent), name ) +TQAction::TQAction( TQT_BASE_OBJECT_NAME* parent, const char* name ) + : TQObject( TQT_TQOBJECT(parent), name ) { d = new TQActionPrivate(this); init(); } /*! \obsolete - Constructs an action called \a name with tqparent \a tqparent. + Constructs an action called \a name with parent \a parent. If \a toggle is TRUE the action will be a toggle action, otherwise it will be a command action. - If \a tqparent is a TQActionGroup, the new action inserts itself into - \a tqparent. + If \a parent is a TQActionGroup, the new action inserts itself into + \a parent. - For accelerators and status tips to work, \a tqparent must either be - a widget, or an action group whose tqparent is a widget. + For accelerators and status tips to work, \a parent must either be + a widget, or an action group whose parent is a widget. */ -TQAction::TQAction( TQT_BASE_OBJECT_NAME* tqparent, const char* name, bool toggle ) - : TQObject( TQT_TQOBJECT(tqparent), name ) +TQAction::TQAction( TQT_BASE_OBJECT_NAME* parent, const char* name, bool toggle ) + : TQObject( TQT_TQOBJECT(parent), name ) { d = new TQActionPrivate(this); d->toggleaction = toggle; @@ -436,14 +436,14 @@ TQAction::TQAction( TQT_BASE_OBJECT_NAME* tqparent, const char* name, bool toggl /*! This constructor creates an action with the following properties: the icon or iconset \a icon, the menu text \a menuText and - keyboard accelerator \a accel. It is a child of \a tqparent and + keyboard accelerator \a accel. It is a child of \a parent and called \a name. - If \a tqparent is a TQActionGroup, the action automatically becomes + If \a parent is a TQActionGroup, the action automatically becomes a member of it. - For accelerators and status tips to work, \a tqparent must either be - a widget, or an action group whose tqparent is a widget. + For accelerators and status tips to work, \a parent must either be + a widget, or an action group whose parent is a widget. The action uses a stripped version of \a menuText (e.g. "\&Menu Option..." becomes "Menu Option") as descriptive text for @@ -458,8 +458,8 @@ TQAction::TQAction( TQT_BASE_OBJECT_NAME* tqparent, const char* name, bool toggl of a widget that the action is later added to. */ TQAction::TQAction( const TQIconSet& icon, const TQString& menuText, TQKeySequence accel, - TQT_BASE_OBJECT_NAME* tqparent, const char* name ) - : TQObject( TQT_TQOBJECT(tqparent), name ) + TQT_BASE_OBJECT_NAME* parent, const char* name ) + : TQObject( TQT_TQOBJECT(parent), name ) { d = new TQActionPrivate(this); if ( !icon.isNull() ) @@ -473,13 +473,13 @@ TQAction::TQAction( const TQIconSet& icon, const TQString& menuText, TQKeySequen /*! This constructor results in an icon-less action with the the menu text \a menuText and keyboard accelerator \a accel. It is a child - of \a tqparent and called \a name. + of \a parent and called \a name. - If \a tqparent is a TQActionGroup, the action automatically becomes + If \a parent is a TQActionGroup, the action automatically becomes a member of it. - For accelerators and status tips to work, \a tqparent must either be - a widget, or an action group whose tqparent is a widget. + For accelerators and status tips to work, \a parent must either be + a widget, or an action group whose parent is a widget. The action uses a stripped version of \a menuText (e.g. "\&Menu Option..." becomes "Menu Option") as descriptive text for @@ -494,8 +494,8 @@ TQAction::TQAction( const TQIconSet& icon, const TQString& menuText, TQKeySequen of a widget that the action is later added to. */ TQAction::TQAction( const TQString& menuText, TQKeySequence accel, - TQT_BASE_OBJECT_NAME* tqparent, const char* name ) - : TQObject( TQT_TQOBJECT(tqparent), name ) + TQT_BASE_OBJECT_NAME* parent, const char* name ) + : TQObject( TQT_TQOBJECT(parent), name ) { d = new TQActionPrivate(this); d->text = qt_stripMenuText( menuText ); @@ -508,21 +508,21 @@ TQAction::TQAction( const TQString& menuText, TQKeySequence accel, This constructor creates an action with the following properties: the description \a text, the icon or iconset \a icon, the menu text \a menuText and keyboard accelerator \a accel. It is a child - of \a tqparent and called \a name. If \a toggle is TRUE the action + of \a parent and called \a name. If \a toggle is TRUE the action will be a toggle action, otherwise it will be a command action. - If \a tqparent is a TQActionGroup, the action automatically becomes + If \a parent is a TQActionGroup, the action automatically becomes a member of it. - For accelerators and status tips to work, \a tqparent must either be - a widget, or an action group whose tqparent is a widget. + For accelerators and status tips to work, \a parent must either be + a widget, or an action group whose parent is a widget. The \a text and \a accel will be used for tool tips and status tips unless you provide specific text for these using setToolTip() and setStatusTip(). */ -TQAction::TQAction( const TQString& text, const TQIconSet& icon, const TQString& menuText, TQKeySequence accel, TQT_BASE_OBJECT_NAME* tqparent, const char* name, bool toggle ) - : TQObject( TQT_TQOBJECT(tqparent), name ) +TQAction::TQAction( const TQString& text, const TQIconSet& icon, const TQString& menuText, TQKeySequence accel, TQT_BASE_OBJECT_NAME* parent, const char* name, bool toggle ) + : TQObject( TQT_TQOBJECT(parent), name ) { d = new TQActionPrivate(this); d->toggleaction = toggle; @@ -538,22 +538,22 @@ TQAction::TQAction( const TQString& text, const TQIconSet& icon, const TQString& /*! \obsolete This constructor results in an icon-less action with the description \a text, the menu text \a menuText and the keyboard - accelerator \a accel. Its tqparent is \a tqparent and it is called \a + accelerator \a accel. Its parent is \a parent and it is called \a name. If \a toggle is TRUE the action will be a toggle action, otherwise it will be a command action. - The action automatically becomes a member of \a tqparent if \a - tqparent is a TQActionGroup. + The action automatically becomes a member of \a parent if \a + parent is a TQActionGroup. - For accelerators and status tips to work, \a tqparent must either be - a widget, or an action group whose tqparent is a widget. + For accelerators and status tips to work, \a parent must either be + a widget, or an action group whose parent is a widget. The \a text and \a accel will be used for tool tips and status tips unless you provide specific text for these using setToolTip() and setStatusTip(). */ -TQAction::TQAction( const TQString& text, const TQString& menuText, TQKeySequence accel, TQT_BASE_OBJECT_NAME* tqparent, const char* name, bool toggle ) - : TQObject( TQT_TQOBJECT(tqparent), name ) +TQAction::TQAction( const TQString& text, const TQString& menuText, TQKeySequence accel, TQT_BASE_OBJECT_NAME* parent, const char* name, bool toggle ) + : TQObject( TQT_TQOBJECT(parent), name ) { d = new TQActionPrivate(this); d->toggleaction = toggle; @@ -569,8 +569,8 @@ TQAction::TQAction( const TQString& text, const TQString& menuText, TQKeySequenc */ void TQAction::init() { - if ( ::tqqt_cast<TQActionGroup*>(tqparent()) ) - ((TQActionGroup*) tqparent())->add( this ); // insert into action group + if ( ::tqqt_cast<TQActionGroup*>(parent()) ) + ((TQActionGroup*) parent())->add( this ); // insert into action group } /*! @@ -696,7 +696,7 @@ TQString TQAction::toolTip() const \brief the action's status tip The statusTip is displayed on all status bars that this action's - toplevel tqparent widget provides. + toplevel parent widget provides. If no status tip is defined, the action uses the tool tip text. @@ -775,9 +775,9 @@ void TQAction::setAccel( const TQKeySequence& key ) return; } - TQObject* p = tqparent(); + TQObject* p = parent(); while ( p && !p->isWidgetType() ) { - p = p->tqparent(); + p = p->parent(); } if ( p ) { d->accel = new TQAccel( (TQWidget*)p, this, "qt_action_accel" ); @@ -786,7 +786,7 @@ void TQAction::setAccel( const TQKeySequence& key ) } #if defined(TQT_CHECK_STATE) else - qWarning( "TQAction::setAccel() (%s) requires widget in tqparent chain", name() ); + qWarning( "TQAction::setAccel() (%s) requires widget in parent chain", name() ); #endif d->update(); } @@ -1119,13 +1119,13 @@ void TQAction::showtqStatusText( const TQString& text ) } } - TQObject* par = tqparent(); + TQObject* par = parent(); TQObject* lpar = 0; TQStatusBar *bar = 0; while ( par && !bar ) { lpar = par; bar = (TQStatusBar*)par->child( 0, "TQStatusBar", FALSE ); - par = par->tqparent(); + par = par->parent(); } if ( !bar && lpar ) { TQObjectList *l = lpar->queryList( "TQStatusBar" ); @@ -1347,9 +1347,9 @@ void TQActionGroupPrivate::update( const TQActionGroup* that ) #endif } for ( TQPtrListIterator<TQActionGroupPrivate::MenuItem> pu( menuitems ); pu.current(); ++pu ) { - TQWidget* tqparent = pu.current()->popup->parentWidget(); - if ( ::tqqt_cast<TQPopupMenu*>(tqparent) ) { - TQPopupMenu* ppopup = (TQPopupMenu*)tqparent; + TQWidget* parent = pu.current()->popup->parentWidget(); + if ( ::tqqt_cast<TQPopupMenu*>(parent) ) { + TQPopupMenu* ppopup = (TQPopupMenu*)parent; ppopup->setItemEnabled( pu.current()->id, that->isEnabled() ); ppopup->setItemVisible( pu.current()->id, that->isVisible() ); } else { @@ -1358,20 +1358,20 @@ void TQActionGroupPrivate::update( const TQActionGroup* that ) } for ( TQPtrListIterator<TQPopupMenu> pm( popupmenus ); pm.current(); ++pm ) { TQPopupMenu *popup = pm.current(); - TQPopupMenu *tqparent = ::tqqt_cast<TQPopupMenu*>(popup->parentWidget()); - if ( !tqparent ) + TQPopupMenu *parent = ::tqqt_cast<TQPopupMenu*>(popup->parentWidget()); + if ( !parent ) continue; int index; - tqparent->findPopup( popup, &index ); - int id = tqparent->idAt( index ); + parent->findPopup( popup, &index ); + int id = parent->idAt( index ); if ( !that->iconSet().isNull() ) - tqparent->changeItem( id, that->iconSet(), that->menuText() ); + parent->changeItem( id, that->iconSet(), that->menuText() ); else - tqparent->changeItem( id, that->menuText() ); - tqparent->setItemEnabled( id, that->isEnabled() ); + parent->changeItem( id, that->menuText() ); + parent->setItemEnabled( id, that->isEnabled() ); #ifndef TQT_NO_ACCEL - tqparent->setAccel( that->accel(), id ); + parent->setAccel( that->accel(), id ); #endif } } @@ -1428,18 +1428,18 @@ void TQActionGroupPrivate::update( const TQActionGroup* that ) Actions can be added to an action group using add(), but normally they are added by creating the action with the action group as - tqparent. Actions can have separators dividing them using + parent. Actions can have separators dividing them using addSeparator(). Action groups are added to widgets with addTo(). */ /*! - Constructs an action group called \a name, with tqparent \a tqparent. + Constructs an action group called \a name, with parent \a parent. The action group is exclusive by default. Call setExclusive(FALSE) to make the action group non-exclusive. */ -TQActionGroup::TQActionGroup( TQT_BASE_OBJECT_NAME* tqparent, const char* name ) - : TQAction( TQT_TQOBJECT(tqparent), name ) +TQActionGroup::TQActionGroup( TQT_BASE_OBJECT_NAME* parent, const char* name ) + : TQAction( TQT_TQOBJECT(parent), name ) { d = new TQActionGroupPrivate; d->exclusive = TRUE; @@ -1452,15 +1452,15 @@ TQActionGroup::TQActionGroup( TQT_BASE_OBJECT_NAME* tqparent, const char* name ) } /*! - Constructs an action group called \a name, with tqparent \a tqparent. + Constructs an action group called \a name, with parent \a parent. If \a exclusive is TRUE only one toggle action in the group will ever be active. \sa exclusive */ -TQActionGroup::TQActionGroup( TQT_BASE_OBJECT_NAME* tqparent, const char* name, bool exclusive ) - : TQAction( TQT_TQOBJECT(tqparent), name ) +TQActionGroup::TQActionGroup( TQT_BASE_OBJECT_NAME* parent, const char* name, bool exclusive ) + : TQAction( TQT_TQOBJECT(parent), name ) { d = new TQActionGroupPrivate; d->exclusive = exclusive; @@ -1572,7 +1572,7 @@ bool TQActionGroup::usesDropDown() const Adds action \a action to this group. Normally an action is added to a group by creating it with the - group as tqparent, so this function is not usually used. + group as parent, so this function is not usually used. \sa addTo() */ @@ -1630,7 +1630,7 @@ void TQActionGroup::addSeparator() \obsolete Use add() instead, or better still create the action with the action - group as its tqparent. + group as its parent. */ /*! diff --git a/tqtinterface/qt4/src/widgets/tqaction.h b/tqtinterface/qt4/src/widgets/tqaction.h index 12f8148..08095e4 100644 --- a/tqtinterface/qt4/src/widgets/tqaction.h +++ b/tqtinterface/qt4/src/widgets/tqaction.h @@ -75,19 +75,19 @@ class TQ_EXPORT TQAction : public TQObject Q_PROPERTY( bool visible READ isVisible WRITE tqsetVisible ) public: - TQAction( TQT_BASE_OBJECT_NAME* tqparent, const char* name = 0 ); + TQAction( TQT_BASE_OBJECT_NAME* parent, const char* name = 0 ); #ifndef TQT_NO_ACCEL TQAction( const TQString& menuText, TQKeySequence accel, - TQT_BASE_OBJECT_NAME* tqparent, const char* name = 0 ); + TQT_BASE_OBJECT_NAME* parent, const char* name = 0 ); TQAction( const TQIconSet& icon, const TQString& menuText, TQKeySequence accel, - TQT_BASE_OBJECT_NAME* tqparent, const char* name = 0 ); + TQT_BASE_OBJECT_NAME* parent, const char* name = 0 ); TQAction( const TQString& text, const TQIconSet& icon, const TQString& menuText, TQKeySequence accel, - TQT_BASE_OBJECT_NAME* tqparent, const char* name = 0, bool toggle = FALSE ); // obsolete - TQAction( const TQString& text, const TQString& menuText, TQKeySequence accel, TQT_BASE_OBJECT_NAME* tqparent, + TQT_BASE_OBJECT_NAME* parent, const char* name = 0, bool toggle = FALSE ); // obsolete + TQAction( const TQString& text, const TQString& menuText, TQKeySequence accel, TQT_BASE_OBJECT_NAME* parent, const char* name = 0, bool toggle = FALSE ); // obsolete #endif - TQAction( TQT_BASE_OBJECT_NAME* tqparent, const char* name , bool toggle ); // obsolete + TQAction( TQT_BASE_OBJECT_NAME* parent, const char* name , bool toggle ); // obsolete ~TQAction(); virtual void setIconSet( const TQIconSet& ); @@ -160,8 +160,8 @@ class TQ_EXPORT TQActionGroup : public TQAction Q_PROPERTY( bool usesDropDown READ usesDropDown WRITE setUsesDropDown ) public: - TQActionGroup( TQT_BASE_OBJECT_NAME* tqparent, const char* name = 0 ); - TQActionGroup( TQT_BASE_OBJECT_NAME* tqparent, const char* name , bool exclusive ); // obsolete + TQActionGroup( TQT_BASE_OBJECT_NAME* parent, const char* name = 0 ); + TQActionGroup( TQT_BASE_OBJECT_NAME* parent, const char* name , bool exclusive ); // obsolete ~TQActionGroup(); void setExclusive( bool ); bool isExclusive() const; diff --git a/tqtinterface/qt4/src/widgets/tqbutton.cpp b/tqtinterface/qt4/src/widgets/tqbutton.cpp index e9f8d10..a94d0cb 100644 --- a/tqtinterface/qt4/src/widgets/tqbutton.cpp +++ b/tqtinterface/qt4/src/widgets/tqbutton.cpp @@ -315,9 +315,9 @@ TQTimer *TQButton::timer() \brief the pixmap shown on the button If the pixmap is monochrome (i.e. it is a TQBitmap or its \link - TQPixmap::depth() depth\endlink is 1) and it does not have a tqmask, - this property will set the pixmap to be its own tqmask. The purpose - of this is to draw transtqparent bitmaps which are important for + TQPixmap::depth() depth\endlink is 1) and it does not have a mask, + this property will set the pixmap to be its own mask. The purpose + of this is to draw transparent bitmaps which are important for toggle buttons, for example. pixmap() returns 0 if no pixmap was set. @@ -371,15 +371,15 @@ TQTimer *TQButton::timer() */ /*! - Constructs a standard button called \a name with tqparent \a tqparent, + Constructs a standard button called \a name with parent \a parent, using the widget flags \a f. - If \a tqparent is a TQButtonGroup, this constructor calls + If \a parent is a TQButtonGroup, this constructor calls TQButtonGroup::insert(). */ -TQButton::TQButton( TQWidget *tqparent, const char *name, WFlags f ) - : TQWidget( tqparent, name, f ) +TQButton::TQButton( TQWidget *parent, const char *name, WFlags f ) + : TQWidget( parent, name, f ) { bpixmap = 0; toggleTyp = SingleShot; // button is simple @@ -391,8 +391,8 @@ TQButton::TQButton( TQWidget *tqparent, const char *name, WFlags f ) repeat = FALSE; // not in autorepeat mode d = 0; #ifndef TQT_NO_BUTTONGROUP - if ( ::tqqt_cast<TQButtonGroup*>(tqparent) ) { - setGroup((TQButtonGroup*)tqparent); + if ( ::tqqt_cast<TQButtonGroup*>(parent) ) { + setGroup((TQButtonGroup*)parent); group()->insert( this ); // insert into button group } #endif @@ -512,7 +512,7 @@ void TQButton::setPixmap( const TQPixmap &pixmap ) bpixmap = new TQPixmap( pixmap ); TQ_CHECK_PTR( bpixmap ); } - if ( bpixmap->depth() == 1 && !bpixmap->tqmask() ) + if ( bpixmap->depth() == 1 && !bpixmap->mask() ) bpixmap->setMask( *((TQBitmap *)bpixmap) ); if ( !btext.isNull() ) { btext = TQString::null; diff --git a/tqtinterface/qt4/src/widgets/tqbutton.h b/tqtinterface/qt4/src/widgets/tqbutton.h index 42088a7..70f3e75 100644 --- a/tqtinterface/qt4/src/widgets/tqbutton.h +++ b/tqtinterface/qt4/src/widgets/tqbutton.h @@ -71,7 +71,7 @@ class TQ_EXPORT TQButton : public TQWidget Q_PROPERTY( bool exclusiveToggle READ isExclusiveToggle ) public: - TQButton( TQWidget* tqparent=0, const char* name=0, WFlags f=0 ); + TQButton( TQWidget* parent=0, const char* name=0, WFlags f=0 ); ~TQButton(); TQString text() const; diff --git a/tqtinterface/qt4/src/widgets/tqbuttongroup.cpp b/tqtinterface/qt4/src/widgets/tqbuttongroup.cpp index 41da908..31ff7a5 100644 --- a/tqtinterface/qt4/src/widgets/tqbuttongroup.cpp +++ b/tqtinterface/qt4/src/widgets/tqbuttongroup.cpp @@ -72,13 +72,13 @@ There are two ways of using a button group: \list - \i The button group is the tqparent widget of a number of buttons, - i.e. the button group is the tqparent argument in the button + \i The button group is the parent widget of a number of buttons, + i.e. the button group is the parent argument in the button constructor. The buttons are assigned identifiers 0, 1, 2, etc., in the order they are created. A TQButtonGroup can display a frame and a title because it inherits TQGroupBox. \i The button group is an invisible widget and the contained - buttons have some other tqparent widget. In this usage, each button + buttons have some other parent widget. In this usage, each button must be manually inserted, using insert(), into the button group and given an identifier. \endlist @@ -132,12 +132,12 @@ typedef TQPtrListIterator<TQButtonItem> TQButtonListIt; /*! Constructs a button group with no title. - The \a tqparent and \a name arguments are passed to the TQWidget + The \a parent and \a name arguments are passed to the TQWidget constructor. */ -TQButtonGroup::TQButtonGroup( TQWidget *tqparent, const char *name ) - : TQGroupBox( tqparent, name ) +TQButtonGroup::TQButtonGroup( TQWidget *parent, const char *name ) + : TQGroupBox( parent, name ) { init(); } @@ -145,13 +145,13 @@ TQButtonGroup::TQButtonGroup( TQWidget *tqparent, const char *name ) /*! Constructs a button group with the title \a title. - The \a tqparent and \a name arguments are passed to the TQWidget + The \a parent and \a name arguments are passed to the TQWidget constructor. */ -TQButtonGroup::TQButtonGroup( const TQString &title, TQWidget *tqparent, +TQButtonGroup::TQButtonGroup( const TQString &title, TQWidget *parent, const char *name ) - : TQGroupBox( title, tqparent, name ) + : TQGroupBox( title, parent, name ) { init(); } @@ -161,13 +161,13 @@ TQButtonGroup::TQButtonGroup( const TQString &title, TQWidget *tqparent, arranged in \a strips rows or columns (depending on \a orientation). - The \a tqparent and \a name arguments are passed to the TQWidget + The \a parent and \a name arguments are passed to the TQWidget constructor. */ TQButtonGroup::TQButtonGroup( int strips, Qt::Orientation orientation, - TQWidget *tqparent, const char *name ) - : TQGroupBox( strips, orientation, tqparent, name ) + TQWidget *parent, const char *name ) + : TQGroupBox( strips, orientation, parent, name ) { init(); } @@ -177,14 +177,14 @@ TQButtonGroup::TQButtonGroup( int strips, Qt::Orientation orientation, be arranged in \a strips rows or columns (depending on \a orientation). - The \a tqparent and \a name arguments are passed to the TQWidget + The \a parent and \a name arguments are passed to the TQWidget constructor. */ TQButtonGroup::TQButtonGroup( int strips, Qt::Orientation orientation, - const TQString &title, TQWidget *tqparent, + const TQString &title, TQWidget *parent, const char *name ) - : TQGroupBox( strips, orientation, title, tqparent, name ) + : TQGroupBox( strips, orientation, title, parent, name ) { init(); } @@ -232,11 +232,11 @@ void TQButtonGroup::setExclusive( bool enable ) group. Returns the button identifier. Buttons are normally inserted into a button group automatically by - passing the button group as the tqparent when the button is + passing the button group as the parent when the button is constructed. So it is not necessary to manually insert buttons - that have this button group as their tqparent widget. An exception + that have this button group as their parent widget. An exception is when you want custom identifiers instead of the default 0, 1, - 2, etc., or if you want the buttons to have some other tqparent. + 2, etc., or if you want the buttons to have some other parent. The button is assigned the identifier \a id or an automatically generated identifier. It works as follows: If \a id >= 0, this diff --git a/tqtinterface/qt4/src/widgets/tqbuttongroup.h b/tqtinterface/qt4/src/widgets/tqbuttongroup.h index cdef0a8..052f1ac 100644 --- a/tqtinterface/qt4/src/widgets/tqbuttongroup.h +++ b/tqtinterface/qt4/src/widgets/tqbuttongroup.h @@ -61,13 +61,13 @@ class TQ_EXPORT TQButtonGroup : public TQGroupBox Q_PROPERTY( int selectedId READ selectedId WRITE setButton ) public: - TQButtonGroup( TQWidget* tqparent=0, const char* name=0 ); + TQButtonGroup( TQWidget* parent=0, const char* name=0 ); TQButtonGroup( const TQString &title, - TQWidget* tqparent=0, const char* name=0 ); + TQWidget* parent=0, const char* name=0 ); TQButtonGroup( int columns, Qt::Orientation o, - TQWidget* tqparent=0, const char* name=0 ); + TQWidget* parent=0, const char* name=0 ); TQButtonGroup( int columns, Qt::Orientation o, const TQString &title, - TQWidget* tqparent=0, const char* name=0 ); + TQWidget* parent=0, const char* name=0 ); ~TQButtonGroup(); bool isExclusive() const; diff --git a/tqtinterface/qt4/src/widgets/tqcheckbox.cpp b/tqtinterface/qt4/src/widgets/tqcheckbox.cpp index 49838ec..b295e4f 100644 --- a/tqtinterface/qt4/src/widgets/tqcheckbox.cpp +++ b/tqtinterface/qt4/src/widgets/tqcheckbox.cpp @@ -120,12 +120,12 @@ /*! Constructs a checkbox with no text. - The \a tqparent and \a name arguments are sent to the TQWidget + The \a parent and \a name arguments are sent to the TQWidget constructor. */ -TQCheckBox::TQCheckBox( TQWidget *tqparent, const char *name ) - : TQButton( tqparent, name, TQt::WNoAutoErase | TQt::WMouseNoMask ) +TQCheckBox::TQCheckBox( TQWidget *parent, const char *name ) + : TQButton( parent, name, TQt::WNoAutoErase | TQt::WMouseNoMask ) { setToggleButton( TRUE ); tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Fixed ) ); @@ -134,12 +134,12 @@ TQCheckBox::TQCheckBox( TQWidget *tqparent, const char *name ) /*! Constructs a checkbox with text \a text. - The \a tqparent and \a name arguments are sent to the TQWidget + The \a parent and \a name arguments are sent to the TQWidget constructor. */ -TQCheckBox::TQCheckBox( const TQString &text, TQWidget *tqparent, const char *name ) - : TQButton( tqparent, name, TQt::WNoAutoErase | TQt::WMouseNoMask ) +TQCheckBox::TQCheckBox( const TQString &text, TQWidget *parent, const char *name ) + : TQButton( parent, name, TQt::WNoAutoErase | TQt::WMouseNoMask ) { setText( text ); setToggleButton( TRUE ); diff --git a/tqtinterface/qt4/src/widgets/tqcheckbox.h b/tqtinterface/qt4/src/widgets/tqcheckbox.h index 3f0e21b..66f0cbb 100644 --- a/tqtinterface/qt4/src/widgets/tqcheckbox.h +++ b/tqtinterface/qt4/src/widgets/tqcheckbox.h @@ -56,8 +56,8 @@ class TQ_EXPORT TQCheckBox : public TQButton TQ_OVERRIDE( bool autoMask DESIGNABLE true SCRIPTABLE true ) public: - TQCheckBox( TQWidget *tqparent, const char* name=0 ); - TQCheckBox( const TQString &text, TQWidget *tqparent, const char* name=0 ); + TQCheckBox( TQWidget *parent, const char* name=0 ); + TQCheckBox( const TQString &text, TQWidget *parent, const char* name=0 ); bool isChecked() const; diff --git a/tqtinterface/qt4/src/widgets/tqcombobox.cpp b/tqtinterface/qt4/src/widgets/tqcombobox.cpp index 382258b..f934485 100644 --- a/tqtinterface/qt4/src/widgets/tqcombobox.cpp +++ b/tqtinterface/qt4/src/widgets/tqcombobox.cpp @@ -342,8 +342,8 @@ class TQComboBoxPopup : public TQPopupMenu { public: - TQComboBoxPopup( TQWidget *tqparent=0, const char *name=0 ) - : TQPopupMenu( tqparent, name ) + TQComboBoxPopup( TQWidget *parent=0, const char *name=0 ) + : TQPopupMenu( parent, name ) { } @@ -499,7 +499,7 @@ static inline bool checkIndex( const char *method, const char * name, /*! - Constructs a combobox widget with tqparent \a tqparent called \a name. + Constructs a combobox widget with parent \a parent called \a name. This constructor creates a popup list if the program uses Motif (or Aqua) look and feel; this is compatible with Motif 1.x and @@ -513,8 +513,8 @@ static inline bool checkIndex( const char *method, const char * name, -TQComboBox::TQComboBox( TQWidget *tqparent, const char *name ) - : TQWidget( tqparent, name, TQt::WNoAutoErase ) +TQComboBox::TQComboBox( TQWidget *parent, const char *name ) + : TQWidget( parent, name, TQt::WNoAutoErase ) { d = new TQComboBoxData( this ); if ( tqstyle().tqstyleHint(TQStyle::SH_ComboBox_Popup, this) || @@ -556,13 +556,13 @@ TQComboBox::TQComboBox( TQWidget *tqparent, const char *name ) The input field can be edited if \a rw is TRUE, otherwise the user may only choose one of the items in the combobox. - The \a tqparent and \a name arguments are passed on to the TQWidget + The \a parent and \a name arguments are passed on to the TQWidget constructor. */ -TQComboBox::TQComboBox( bool rw, TQWidget *tqparent, const char *name ) - : TQWidget( tqparent, name, TQt::WNoAutoErase ) +TQComboBox::TQComboBox( bool rw, TQWidget *parent, const char *name ) + : TQWidget( parent, name, TQt::WNoAutoErase ) { d = new TQComboBoxData( this ); setUpListBox(); @@ -2298,7 +2298,7 @@ void TQComboBox::setLineEdit( TQLineEdit *edit ) delete d->ed; d->ed = edit; - if ( edit->tqparent() != TQT_TQOBJECT(this) ) + if ( edit->parent() != TQT_TQOBJECT(this) ) edit->reparent( this, TQPoint(0,0), FALSE ); connect (edit, TQT_SIGNAL( textChanged(const TQString&) ), diff --git a/tqtinterface/qt4/src/widgets/tqcombobox.h b/tqtinterface/qt4/src/widgets/tqcombobox.h index bfee192..f67e7fd 100644 --- a/tqtinterface/qt4/src/widgets/tqcombobox.h +++ b/tqtinterface/qt4/src/widgets/tqcombobox.h @@ -74,8 +74,8 @@ class TQ_EXPORT TQComboBox : public TQWidget TQ_OVERRIDE( bool autoMask DESIGNABLE true SCRIPTABLE true ) public: - TQComboBox( TQWidget* tqparent=0, const char* name=0 ); - TQComboBox( bool rw, TQWidget* tqparent=0, const char* name=0 ); + TQComboBox( TQWidget* parent=0, const char* name=0 ); + TQComboBox( bool rw, TQWidget* parent=0, const char* name=0 ); ~TQComboBox(); int count() const; diff --git a/tqtinterface/qt4/src/widgets/tqdatetimeedit.cpp b/tqtinterface/qt4/src/widgets/tqdatetimeedit.cpp index 346bdd3..be63178 100644 --- a/tqtinterface/qt4/src/widgets/tqdatetimeedit.cpp +++ b/tqtinterface/qt4/src/widgets/tqdatetimeedit.cpp @@ -383,7 +383,7 @@ class TQDateTimeEditor : public TQWidget Q_OBJECT TQ_OBJECT public: - TQDateTimeEditor( TQDateTimeEditBase * widget, TQWidget *tqparent, + TQDateTimeEditor( TQDateTimeEditBase * widget, TQWidget *parent, const char * name=0 ); ~TQDateTimeEditor(); @@ -419,8 +419,8 @@ class TQDateTimeSpinWidget : public TQSpinWidget Q_OBJECT TQ_OBJECT public: - TQDateTimeSpinWidget( TQWidget *tqparent, const char *name ) - : TQSpinWidget( tqparent, name ) + TQDateTimeSpinWidget( TQWidget *parent, const char *name ) + : TQSpinWidget( parent, name ) { } @@ -456,12 +456,12 @@ protected: }; /*! - Constructs an empty datetime editor with tqparent \a tqparent and + Constructs an empty datetime editor with parent \a parent and called \a name. */ -TQDateTimeEditor::TQDateTimeEditor( TQDateTimeEditBase * widget, TQWidget *tqparent, +TQDateTimeEditor::TQDateTimeEditor( TQDateTimeEditBase * widget, TQWidget *parent, const char * name ) - : TQWidget( tqparent, name, TQt::WNoAutoErase ) + : TQWidget( parent, name, TQt::WNoAutoErase ) { d = new TQDateTimeEditorPrivate(); cw = widget; @@ -919,12 +919,12 @@ public: */ /*! - Constructs an empty date editor which is a child of \a tqparent and + Constructs an empty date editor which is a child of \a parent and called name \a name. */ -TQDateEdit::TQDateEdit( TQWidget * tqparent, const char * name ) - : TQDateTimeEditBase( tqparent, name ) +TQDateEdit::TQDateEdit( TQWidget * parent, const char * name ) + : TQDateTimeEditBase( parent, name ) { init(); updateButtons(); @@ -933,14 +933,14 @@ TQDateEdit::TQDateEdit( TQWidget * tqparent, const char * name ) /*! \overload - Constructs a date editor with the initial value \a date, tqparent \a - tqparent and called \a name. + Constructs a date editor with the initial value \a date, parent \a + parent and called \a name. The date editor is initialized with \a date. */ -TQDateEdit::TQDateEdit( const QDate& date, QWidget * tqparent, const char * name ) - : TQDateTimeEditBase( TQT_TQWIDGET(tqparent), name ) +TQDateEdit::TQDateEdit( const QDate& date, QWidget * parent, const char * name ) + : TQDateTimeEditBase( TQT_TQWIDGET(parent), name ) { init(); setDate( TQT_TQDATE_OBJECT(date) ); @@ -1823,12 +1823,12 @@ public: /*! - Constructs an empty time edit with tqparent \a tqparent and called \a + Constructs an empty time edit with parent \a parent and called \a name. */ -TQTimeEdit::TQTimeEdit( TQWidget * tqparent, const char * name ) - : TQDateTimeEditBase( tqparent, name ) +TQTimeEdit::TQTimeEdit( TQWidget * parent, const char * name ) + : TQDateTimeEditBase( parent, name ) { init(); } @@ -1837,11 +1837,11 @@ TQTimeEdit::TQTimeEdit( TQWidget * tqparent, const char * name ) \overload Constructs a time edit with the initial time value, \a time, - tqparent \a tqparent and called \a name. + parent \a parent and called \a name. */ -TQTimeEdit::TQTimeEdit( const QTime& time, QWidget * tqparent, const char * name ) - : TQDateTimeEditBase( TQT_TQWIDGET(tqparent), name ) +TQTimeEdit::TQTimeEdit( const QTime& time, QWidget * parent, const char * name ) + : TQDateTimeEditBase( TQT_TQWIDGET(parent), name ) { init(); setTime( TQT_TQTIME_OBJECT(time) ); @@ -2649,11 +2649,11 @@ public: */ /*! - Constructs an empty datetime edit with tqparent \a tqparent and called + Constructs an empty datetime edit with parent \a parent and called \a name. */ -TQDateTimeEdit::TQDateTimeEdit( TQWidget * tqparent, const char * name ) - : TQWidget( tqparent, name ) +TQDateTimeEdit::TQDateTimeEdit( TQWidget * parent, const char * name ) + : TQWidget( parent, name ) { init(); } @@ -2663,11 +2663,11 @@ TQDateTimeEdit::TQDateTimeEdit( TQWidget * tqparent, const char * name ) \overload Constructs a datetime edit with the initial value \a datetime, - tqparent \a tqparent and called \a name. + parent \a parent and called \a name. */ TQDateTimeEdit::TQDateTimeEdit( const TQDateTime& datetime, - TQWidget * tqparent, const char * name ) - : TQWidget( tqparent, name ) + TQWidget * parent, const char * name ) + : TQWidget( parent, name ) { init(); setDateTime( datetime ); diff --git a/tqtinterface/qt4/src/widgets/tqdatetimeedit.h b/tqtinterface/qt4/src/widgets/tqdatetimeedit.h index ab59358..4c072f0 100644 --- a/tqtinterface/qt4/src/widgets/tqdatetimeedit.h +++ b/tqtinterface/qt4/src/widgets/tqdatetimeedit.h @@ -54,8 +54,8 @@ class TQ_EXPORT TQDateTimeEditBase : public TQWidget Q_OBJECT TQ_OBJECT public: - TQDateTimeEditBase( TQWidget* tqparent=0, const char* name=0 ) - : TQWidget( tqparent, name ) {} + TQDateTimeEditBase( TQWidget* parent=0, const char* name=0 ) + : TQWidget( parent, name ) {} virtual bool setFocusSection( int sec ) = 0; virtual TQString sectionFormattedText( int sec ) = 0; @@ -87,8 +87,8 @@ class TQ_EXPORT TQDateEdit : public TQDateTimeEditBase Q_PROPERTY( TQDate minValue READ minValue WRITE setMinValue ) public: - TQDateEdit( TQWidget* tqparent=0, const char* name=0 ); - TQDateEdit( const QDate& date, QWidget* tqparent=0, const char* name=0 ); + TQDateEdit( TQWidget* parent=0, const char* name=0 ); + TQDateEdit( const QDate& date, QWidget* parent=0, const char* name=0 ); ~TQDateEdit(); enum Order { DMY, MDY, YMD, YDM }; @@ -176,8 +176,8 @@ public: AMPM = 0x10 }; - TQTimeEdit( TQWidget* tqparent=0, const char* name=0 ); - TQTimeEdit( const QTime& time, QWidget* tqparent=0, const char* name=0 ); + TQTimeEdit( TQWidget* parent=0, const char* name=0 ); + TQTimeEdit( const QTime& time, QWidget* parent=0, const char* name=0 ); ~TQTimeEdit(); TQSize tqsizeHint() const; @@ -250,8 +250,8 @@ class TQ_EXPORT TQDateTimeEdit : public TQWidget Q_PROPERTY( TQDateTime dateTime READ dateTime WRITE setDateTime ) public: - TQDateTimeEdit( TQWidget* tqparent=0, const char* name=0 ); - TQDateTimeEdit( const TQDateTime& datetime, TQWidget* tqparent=0, + TQDateTimeEdit( TQWidget* parent=0, const char* name=0 ); + TQDateTimeEdit( const TQDateTime& datetime, TQWidget* parent=0, const char* name=0 ); ~TQDateTimeEdit(); diff --git a/tqtinterface/qt4/src/widgets/tqdial.cpp b/tqtinterface/qt4/src/widgets/tqdial.cpp index 5b9601b..8158d47 100644 --- a/tqtinterface/qt4/src/widgets/tqdial.cpp +++ b/tqtinterface/qt4/src/widgets/tqdial.cpp @@ -143,13 +143,13 @@ public: /*! - Constructs a dial called \a name with tqparent \a tqparent. \a f is + Constructs a dial called \a name with parent \a parent. \a f is propagated to the TQWidget constructor. It has the default range of a TQRangeControl. */ -TQDial::TQDial( TQWidget *tqparent, const char *name, WFlags f ) - : TQWidget( tqparent, name, f | TQt::WNoAutoErase ), TQRangeControl() +TQDial::TQDial( TQWidget *parent, const char *name, WFlags f ) + : TQWidget( parent, name, f | TQt::WNoAutoErase ), TQRangeControl() { d = new TQDialPrivate; d->eraseAreaValid = FALSE; @@ -161,7 +161,7 @@ TQDial::TQDial( TQWidget *tqparent, const char *name, WFlags f ) /*! - Constructs a dial called \a name with tqparent \a tqparent. The dial's + Constructs a dial called \a name with parent \a parent. The dial's value can never be smaller than \a minValue or greater than \a maxValue. Its page step size is \a pageStep, and its initial value is \a value. @@ -170,8 +170,8 @@ TQDial::TQDial( TQWidget *tqparent, const char *name, WFlags f ) */ TQDial::TQDial( int minValue, int maxValue, int pageStep, int value, - TQWidget *tqparent, const char *name ) - : TQWidget( tqparent, name, TQt::WNoAutoErase ), + TQWidget *parent, const char *name ) + : TQWidget( parent, name, TQt::WNoAutoErase ), TQRangeControl( minValue, maxValue, 1, pageStep, value ) { d = new TQDialPrivate; diff --git a/tqtinterface/qt4/src/widgets/tqdial.h b/tqtinterface/qt4/src/widgets/tqdial.h index d7cfcad..10ee437 100644 --- a/tqtinterface/qt4/src/widgets/tqdial.h +++ b/tqtinterface/qt4/src/widgets/tqdial.h @@ -67,9 +67,9 @@ class TQ_EXPORT TQDial: public TQWidget, public TQRangeControl Q_PROPERTY( int value READ value WRITE setValue ) public: - TQDial( TQWidget* tqparent=0, const char* name=0, WFlags f = 0 ); + TQDial( TQWidget* parent=0, const char* name=0, WFlags f = 0 ); TQDial( int minValue, int maxValue, int pageStep, int value, - TQWidget* tqparent=0, const char* name=0 ); + TQWidget* parent=0, const char* name=0 ); ~TQDial(); bool tracking() const; diff --git a/tqtinterface/qt4/src/widgets/tqdialogbuttons.cpp b/tqtinterface/qt4/src/widgets/tqdialogbuttons.cpp index bb7d5f1..18f5631 100644 --- a/tqtinterface/qt4/src/widgets/tqdialogbuttons.cpp +++ b/tqtinterface/qt4/src/widgets/tqdialogbuttons.cpp @@ -63,19 +63,19 @@ struct TQDialogButtonsPrivate }; #ifndef TQT_NO_DIALOG -TQDialogButtons::TQDialogButtons(TQDialog *tqparent, bool autoConnect, TQ_UINT32 buttons, - Qt::Orientation orient, const char *name ) : TQWidget(tqparent, name) +TQDialogButtons::TQDialogButtons(TQDialog *parent, bool autoConnect, TQ_UINT32 buttons, + Qt::Orientation orient, const char *name ) : TQWidget(parent, name) { init(buttons, orient); - if(tqparent && autoConnect) { - TQObject::connect(this, TQT_SIGNAL(acceptClicked()), tqparent, TQT_SLOT(accept())); - TQObject::connect(this, TQT_SIGNAL(rejectClicked()), tqparent, TQT_SLOT(reject())); + if(parent && autoConnect) { + TQObject::connect(this, TQT_SIGNAL(acceptClicked()), parent, TQT_SLOT(accept())); + TQObject::connect(this, TQT_SIGNAL(rejectClicked()), parent, TQT_SLOT(reject())); } } #endif // TQT_NO_DIALOG -TQDialogButtons::TQDialogButtons(TQWidget *tqparent, TQ_UINT32 buttons, - Qt::Orientation orient, const char *name ) : TQWidget(tqparent, name) +TQDialogButtons::TQDialogButtons(TQWidget *parent, TQ_UINT32 buttons, + Qt::Orientation orient, const char *name ) : TQWidget(parent, name) { init(buttons, orient); } @@ -164,7 +164,7 @@ TQDialogButtons::addWidget(TQWidget *w) } else { lay = (TQBoxLayout*)d->custom->tqlayout(); } - if(w->tqparent() != TQT_TQOBJECT(d->custom)) + if(w->parent() != TQT_TQOBJECT(d->custom)) w->reparent(d->custom, 0, TQPoint(0, 0), TRUE); lay->addWidget(w); } diff --git a/tqtinterface/qt4/src/widgets/tqdialogbuttons_p.h b/tqtinterface/qt4/src/widgets/tqdialogbuttons_p.h index 4262ec1..3c06733 100644 --- a/tqtinterface/qt4/src/widgets/tqdialogbuttons_p.h +++ b/tqtinterface/qt4/src/widgets/tqdialogbuttons_p.h @@ -56,10 +56,10 @@ TQDialogButtons : public TQWidget public: enum Button { None=0, Accept=0x01, Reject=0x02, Help=0x04, Apply=0x08, All=0x10, Abort=0x20, Retry=0x40, Ignore=0x80 }; #ifndef TQT_NO_DIALOG - TQDialogButtons(TQDialog *tqparent, bool autoConnect = TRUE, TQ_UINT32 buttons = Accept | Reject, + TQDialogButtons(TQDialog *parent, bool autoConnect = TRUE, TQ_UINT32 buttons = Accept | Reject, Qt::Orientation orient = Qt::Horizontal, const char *name = NULL); #endif // TQT_NO_DIALOG - TQDialogButtons(TQWidget *tqparent, TQ_UINT32 buttons = Accept | Reject, + TQDialogButtons(TQWidget *parent, TQ_UINT32 buttons = Accept | Reject, Qt::Orientation orient = Qt::Horizontal, const char *name = NULL); ~TQDialogButtons(); diff --git a/tqtinterface/qt4/src/widgets/tqdockarea.cpp b/tqtinterface/qt4/src/widgets/tqdockarea.cpp index 72f65c2..3701355 100644 --- a/tqtinterface/qt4/src/widgets/tqdockarea.cpp +++ b/tqtinterface/qt4/src/widgets/tqdockarea.cpp @@ -573,11 +573,11 @@ int TQDockAreaLayout::widthForHeight( int h ) const /*! Constructs a TQDockArea with orientation \a o, HandlePosition \a h, - tqparent \a tqparent and called \a name. + parent \a parent and called \a name. */ -TQDockArea::TQDockArea( Qt::Orientation o, HandlePosition h, TQWidget *tqparent, const char *name ) - : TQWidget( tqparent, name ), orient( o ), tqlayout( 0 ), hPos( h ) +TQDockArea::TQDockArea( Qt::Orientation o, HandlePosition h, TQWidget *parent, const char *name ) + : TQWidget( parent, name ), orient( o ), tqlayout( 0 ), hPos( h ) { dockWindows = new TQPtrList<TQDockWindow>; tqlayout = new TQDockAreaLayout( this, o, dockWindows, 0, 0, "tooltqlayout" ); @@ -592,7 +592,7 @@ TQDockArea::TQDockArea( Qt::Orientation o, HandlePosition h, TQWidget *tqparent, dock areas, even if they first appeared in this dock area. Floating dock windows are effectively top level windows and are not child windows of the dock area. When a floating dock window is - docked (dragged into a dock area) its tqparent becomes the dock + docked (dragged into a dock area) its parent becomes the dock area. */ @@ -624,7 +624,7 @@ void TQDockArea::moveDockWindow( TQDockWindow *w, int index ) orientation() == Qt::Vertical ? TQSizePolicy::Expanding : TQSizePolicy::Minimum ) ); dockWindows->append( w ); } else { - if ( w->tqparent() != TQT_TQOBJECT(this) ) + if ( w->parent() != TQT_TQOBJECT(this) ) w->reparent( this, TQPoint( 0, 0 ), TRUE ); if ( index == - 1 ) { dockWindows->removeRef( w ); diff --git a/tqtinterface/qt4/src/widgets/tqdockarea.h b/tqtinterface/qt4/src/widgets/tqdockarea.h index 550732b..6cdd6e6 100644 --- a/tqtinterface/qt4/src/widgets/tqdockarea.h +++ b/tqtinterface/qt4/src/widgets/tqdockarea.h @@ -67,8 +67,8 @@ class TQ_EXPORT TQDockAreaLayout : public TQLayout friend class TQDockArea; public: - TQDockAreaLayout( TQWidget* tqparent, Orientation o, TQPtrList<TQDockWindow> *wl, int space = -1, int margin = -1, const char *name = 0 ) - : TQLayout( tqparent, space, margin, name ), orient( o ), dockWindows( wl ), parentWidget( tqparent ) { init(); } + TQDockAreaLayout( TQWidget* parent, Orientation o, TQPtrList<TQDockWindow> *wl, int space = -1, int margin = -1, const char *name = 0 ) + : TQLayout( parent, space, margin, name ), orient( o ), dockWindows( wl ), parentWidget( parent ) { init(); } ~TQDockAreaLayout() {} void addItem( QLayoutItem * ) {} @@ -127,7 +127,7 @@ class TQ_EXPORT TQDockArea : public TQWidget public: enum HandlePosition { Normal, Reverse }; - TQDockArea( Qt::Orientation o, HandlePosition h = Normal, TQWidget* tqparent=0, const char* name=0 ); + TQDockArea( Qt::Orientation o, HandlePosition h = Normal, TQWidget* parent=0, const char* name=0 ); ~TQDockArea(); void moveDockWindow( TQDockWindow *w, const TQPoint &globalPos, const TQRect &rect, bool swap ); diff --git a/tqtinterface/qt4/src/widgets/tqdockwindow.cpp b/tqtinterface/qt4/src/widgets/tqdockwindow.cpp index fcf0821..1a9796e 100644 --- a/tqtinterface/qt4/src/widgets/tqdockwindow.cpp +++ b/tqtinterface/qt4/src/widgets/tqdockwindow.cpp @@ -76,7 +76,7 @@ class TQDockWindowResizeHandle : public TQWidget TQ_OBJECT public: - TQDockWindowResizeHandle( Orientation o, TQWidget *tqparent, TQDockWindow *w, const char* /*name*/=0 ); + TQDockWindowResizeHandle( Orientation o, TQWidget *parent, TQDockWindow *w, const char* /*name*/=0 ); void setOrientation( Orientation o ); Orientation orientation() const { return orient; } @@ -102,9 +102,9 @@ private: }; -TQDockWindowResizeHandle::TQDockWindowResizeHandle( Orientation o, TQWidget *tqparent, +TQDockWindowResizeHandle::TQDockWindowResizeHandle( Orientation o, TQWidget *parent, TQDockWindow *w, const char * ) - : TQWidget( tqparent, "qt_dockwidget_internal" ), mousePressed( FALSE ), unclippedPainter( 0 ), dockWindow( w ) + : TQWidget( parent, "qt_dockwidget_internal" ), mousePressed( FALSE ), unclippedPainter( 0 ), dockWindow( w ) { setOrientation( o ); } @@ -752,8 +752,8 @@ void TQDockWindowTitleBar::mouseDoubleClickEvent( TQMouseEvent * ) have a \link setCaption() caption\endlink.) When you construct a dock window you \e must pass it a TQDockArea - or a TQMainWindow as its tqparent if you want it docked. Pass 0 for - the tqparent if you want it floated. + or a TQMainWindow as its parent if you want it docked. Pass 0 for + the parent if you want it floated. \code TQToolBar *fileTools = new TQToolBar( this, "File Actions" ); @@ -909,12 +909,12 @@ void TQDockWindowTitleBar::mouseDoubleClickEvent( TQMouseEvent * ) /*! - Constructs a TQDockWindow with tqparent \a tqparent, called \a name and + Constructs a TQDockWindow with parent \a parent, called \a name and with widget flags \a f. */ -TQDockWindow::TQDockWindow( TQWidget* tqparent, const char* name, WFlags f ) - : TQFrame( tqparent, name, (WFlags)(f | TQt::WType_Dialog | WStyle_Customize | TQt::WStyle_NoBorder) ) +TQDockWindow::TQDockWindow( TQWidget* parent, const char* name, WFlags f ) + : TQFrame( parent, name, (WFlags)(f | TQt::WType_Dialog | WStyle_Customize | TQt::WStyle_NoBorder) ) { curPlace = InDock; isToolbar = FALSE; @@ -922,24 +922,24 @@ TQDockWindow::TQDockWindow( TQWidget* tqparent, const char* name, WFlags f ) } /*! - Constructs a TQDockWindow with tqparent \a tqparent, called \a name and + Constructs a TQDockWindow with parent \a parent, called \a name and with widget flags \a f. If \a p is \c InDock, the dock window is docked into a dock area - and \a tqparent \e must be a TQDockArea or a TQMainWindow. If the \a - tqparent is a TQMainWindow the dock window will be docked in the main + and \a parent \e must be a TQDockArea or a TQMainWindow. If the \a + parent is a TQMainWindow the dock window will be docked in the main window's \c Top dock area. If \a p is \c OutsideDock, the dock window is created as a floating window. We recommend creating the dock area \c InDock with a TQMainWindow - as tqparent then calling TQMainWindow::moveDockWindow() to move the + as parent then calling TQMainWindow::moveDockWindow() to move the dock window where you want it. */ -TQDockWindow::TQDockWindow( Place p, TQWidget *tqparent, const char *name, WFlags f ) - : TQFrame( tqparent, name, (WFlags)(f | TQt::WType_Dialog | WStyle_Customize | TQt::WStyle_NoBorder) ) +TQDockWindow::TQDockWindow( Place p, TQWidget *parent, const char *name, WFlags f ) + : TQFrame( parent, name, (WFlags)(f | TQt::WType_Dialog | WStyle_Customize | TQt::WStyle_NoBorder) ) { curPlace = p; isToolbar = FALSE; @@ -949,8 +949,8 @@ TQDockWindow::TQDockWindow( Place p, TQWidget *tqparent, const char *name, WFlag /*! \internal */ -TQDockWindow::TQDockWindow( Place p, TQWidget *tqparent, const char *name, WFlags f, bool toolbar ) - : TQFrame( tqparent, name, (WFlags)(f | TQt::WType_Dialog | WStyle_Customize | TQt::WStyle_NoBorder) ) +TQDockWindow::TQDockWindow( Place p, TQWidget *parent, const char *name, WFlags f, bool toolbar ) + : TQFrame( parent, name, (WFlags)(f | TQt::WType_Dialog | WStyle_Customize | TQt::WStyle_NoBorder) ) { curPlace = p; isToolbar = toolbar; @@ -960,8 +960,8 @@ TQDockWindow::TQDockWindow( Place p, TQWidget *tqparent, const char *name, WFlag class TQDockWindowGridLayout : public TQGridLayout { public: - TQDockWindowGridLayout( TQWidget *tqparent, int nRows, int nCols ) - : TQGridLayout( tqparent, nRows, nCols ) {}; + TQDockWindowGridLayout( TQWidget *parent, int nRows, int nCols ) + : TQGridLayout( parent, nRows, nCols ) {}; TQ_SPExpandData expandingDirections() const { @@ -1970,7 +1970,7 @@ void TQDockWindow::hideEvent( TQHideEvent *e ) void TQDockWindow::showEvent( TQShowEvent *e ) { - if (curPlace == OutsideDock && (tqparent() && strcmp(tqparent()->name(), "qt_hide_dock") != 0)) { + if (curPlace == OutsideDock && (parent() && strcmp(parent()->name(), "qt_hide_dock") != 0)) { TQRect sr = tqApp->desktop()->availableGeometry( this ); if ( !sr.contains( pos() ) ) { int nx = TQMIN( TQMAX( x(), sr.x() ), sr.right()-width() ); @@ -2115,7 +2115,7 @@ void TQDockWindow::contextMenuEvent( TQContextMenuEvent *e ) while ( o ) { if ( ::tqqt_cast<TQMainWindow*>(o) ) break; - o = o->tqparent(); + o = o->parent(); } if ( !o || ! ( (TQMainWindow*)o )->showDockMenu( e->globalPos() ) ) e->ignore(); diff --git a/tqtinterface/qt4/src/widgets/tqdockwindow.h b/tqtinterface/qt4/src/widgets/tqdockwindow.h index 6906fd9..99858eb 100644 --- a/tqtinterface/qt4/src/widgets/tqdockwindow.h +++ b/tqtinterface/qt4/src/widgets/tqdockwindow.h @@ -91,8 +91,8 @@ public: enum Place { InDock, OutsideDock }; enum CloseMode { Never = 0, Docked = 1, Undocked = 2, Always = Docked | Undocked }; - TQDockWindow( Place p = InDock, TQWidget* tqparent=0, const char* name=0, WFlags f = 0 ); - TQDockWindow( TQWidget* tqparent, const char* name=0, WFlags f = 0 ); + TQDockWindow( Place p = InDock, TQWidget* parent=0, const char* name=0, WFlags f = 0 ); + TQDockWindow( TQWidget* parent, const char* name=0, WFlags f = 0 ); ~TQDockWindow(); virtual void setWidget( TQWidget *w ); @@ -175,7 +175,7 @@ private Q_SLOTS: void toggleVisible() { if ( !isVisible() ) show(); else hide(); } private: - TQDockWindow( Place p, TQWidget* tqparent, const char* name, WFlags f, bool toolbar ); + TQDockWindow( Place p, TQWidget* parent, const char* name, WFlags f, bool toolbar ); void handleMove( const TQPoint &pos, const TQPoint &gp, bool drawRect ); void updateGui(); diff --git a/tqtinterface/qt4/src/widgets/tqeffects.cpp b/tqtinterface/qt4/src/widgets/tqeffects.cpp index 0ac6a24..c98a8ee 100644 --- a/tqtinterface/qt4/src/widgets/tqeffects.cpp +++ b/tqtinterface/qt4/src/widgets/tqeffects.cpp @@ -58,8 +58,8 @@ class TQAccessWidget : public TQWidget friend class TQAlphaWidget; friend class TQRollEffect; public: - TQAccessWidget( TQWidget* tqparent=0, const char* name=0, WFlags f = 0 ) - : TQWidget( tqparent, name, f ) {} + TQAccessWidget( TQWidget* parent=0, const char* name=0, WFlags f = 0 ) + : TQWidget( parent, name, f ) {} }; /* diff --git a/tqtinterface/qt4/src/widgets/tqframe.cpp b/tqtinterface/qt4/src/widgets/tqframe.cpp index 8112924..1c6f6d8 100644 --- a/tqtinterface/qt4/src/widgets/tqframe.cpp +++ b/tqtinterface/qt4/src/widgets/tqframe.cpp @@ -130,7 +130,7 @@ look depends upon the current GUI style. \value TabWidgetPanel is used to draw a frame suitable for tab widgets. The look depends upon the current GUI style. - \value MShape internal tqmask + \value MShape internal mask When it does not call TQStyle, Shape interacts with TQFrame::Shadow, the lineWidth() and the midLineWidth() to create the total result. @@ -155,7 +155,7 @@ \value Sunken the frame and contents appear sunken; draws a 3D sunken line using the light and dark colors of the current color group - \value MShadow internal; tqmask for the shadow + \value MShadow internal; mask for the shadow Shadow interacts with TQFrame::Shape, the lineWidth() and the midLineWidth(). See the \link #picture picture of the frames\endlink @@ -169,12 +169,12 @@ Constructs a frame widget with frame style \c NoFrame and a 1-pixel frame width. - The \a tqparent, \a name and \a f arguments are passed to the + The \a parent, \a name and \a f arguments are passed to the TQWidget constructor. */ -TQFrame::TQFrame( TQWidget *tqparent, const char *name, WFlags f ) - : TQWidget( tqparent, name, f ) +TQFrame::TQFrame( TQWidget *parent, const char *name, WFlags f ) + : TQWidget( parent, name, f ) { frect = TQRect( 0, 0, 0, 0 ); fstyle = NoFrame | Plain; diff --git a/tqtinterface/qt4/src/widgets/tqframe.h b/tqtinterface/qt4/src/widgets/tqframe.h index 8d289d2..d8ae55c 100644 --- a/tqtinterface/qt4/src/widgets/tqframe.h +++ b/tqtinterface/qt4/src/widgets/tqframe.h @@ -62,7 +62,7 @@ class TQ_EXPORT TQFrame : public TQWidget Q_PROPERTY( TQRect frameRect READ frameRect WRITE setFrameRect DESIGNABLE false ) public: - TQFrame( TQWidget* tqparent=0, const char* name=0, WFlags f=0 ); + TQFrame( TQWidget* parent=0, const char* name=0, WFlags f=0 ); int frameStyle() const; virtual void setFrameStyle( int ); @@ -89,12 +89,12 @@ public: LineEditPanel = 0x000a, TabWidgetPanel = 0x000b, GroupBoxPanel = 0x000c, - MShape = 0x000f // tqmask for the tqshape + MShape = 0x000f // mask for the tqshape }; enum Shadow { Plain = 0x0010, // plain line Raised = 0x0020, // raised shadow effect Sunken = 0x0030, // sunken shadow effect - MShadow = 0x00f0 }; // tqmask for the shadow + MShadow = 0x00f0 }; // mask for the shadow Shape frameShape() const; void setFrameShape( Shape ); diff --git a/tqtinterface/qt4/src/widgets/tqgrid.cpp b/tqtinterface/qt4/src/widgets/tqgrid.cpp index 06c6a88..bd66cc2 100644 --- a/tqtinterface/qt4/src/widgets/tqgrid.cpp +++ b/tqtinterface/qt4/src/widgets/tqgrid.cpp @@ -67,14 +67,14 @@ */ /*! - Constructs a grid widget with tqparent \a tqparent, called \a name. + Constructs a grid widget with parent \a parent, called \a name. If \a orient is \c Horizontal, \a n specifies the number of columns. If \a orient is \c Vertical, \a n specifies the number of rows. The widget flags \a f are passed to the TQFrame constructor. */ -TQGrid::TQGrid( int n, Qt::Orientation orient, TQWidget *tqparent, const char *name, +TQGrid::TQGrid( int n, Qt::Orientation orient, TQWidget *parent, const char *name, WFlags f ) - : TQFrame( tqparent, name, f ) + : TQFrame( parent, name, f ) { int nCols, nRows; if ( orient == Qt::Horizontal ) { @@ -91,12 +91,12 @@ TQGrid::TQGrid( int n, Qt::Orientation orient, TQWidget *tqparent, const char *n /*! - Constructs a grid widget with tqparent \a tqparent, called \a name. + Constructs a grid widget with parent \a parent, called \a name. \a n specifies the number of columns. The widget flags \a f are passed to the TQFrame constructor. */ -TQGrid::TQGrid( int n, TQWidget *tqparent, const char *name, WFlags f ) - : TQFrame( tqparent, name, f ) +TQGrid::TQGrid( int n, TQWidget *parent, const char *name, WFlags f ) + : TQFrame( parent, name, f ) { lay = new TQGridLayout( this, -1, n, 0, 0, name ); lay->setAutoAdd( TRUE ); diff --git a/tqtinterface/qt4/src/widgets/tqgrid.h b/tqtinterface/qt4/src/widgets/tqgrid.h index 98ee826..787dbd5 100644 --- a/tqtinterface/qt4/src/widgets/tqgrid.h +++ b/tqtinterface/qt4/src/widgets/tqgrid.h @@ -50,8 +50,8 @@ class TQ_EXPORT TQGrid : public TQFrame Q_OBJECT TQ_OBJECT public: - TQGrid( int n, TQWidget* tqparent=0, const char* name=0, WFlags f = 0 ); - TQGrid( int n, Qt::Orientation orient, TQWidget* tqparent=0, const char* name=0, + TQGrid( int n, TQWidget* parent=0, const char* name=0, WFlags f = 0 ); + TQGrid( int n, Qt::Orientation orient, TQWidget* parent=0, const char* name=0, WFlags f = 0 ); void setSpacing( int ); diff --git a/tqtinterface/qt4/src/widgets/tqgridview.cpp b/tqtinterface/qt4/src/widgets/tqgridview.cpp index 0551c30..d4c1638 100644 --- a/tqtinterface/qt4/src/widgets/tqgridview.cpp +++ b/tqtinterface/qt4/src/widgets/tqgridview.cpp @@ -89,11 +89,11 @@ /*! Constructs a grid view. - The \a tqparent, \a name and widget flag, \a f, arguments are passed + The \a parent, \a name and widget flag, \a f, arguments are passed to the TQScrollView constructor. */ -TQGridView::TQGridView( TQWidget *tqparent, const char *name, WFlags f ) - :TQScrollView( tqparent, name, (WFlags)(f | TQt::WStaticContents) ), +TQGridView::TQGridView( TQWidget *parent, const char *name, WFlags f ) + :TQScrollView( parent, name, (WFlags)(f | TQt::WStaticContents) ), nrows( 5 ), ncols( 5 ), cellw( 12 ), cellh( 12 ) { viewport()->setBackgroundMode( TQt::PaletteBase ); diff --git a/tqtinterface/qt4/src/widgets/tqgridview.h b/tqtinterface/qt4/src/widgets/tqgridview.h index 01e0b1a..d458432 100644 --- a/tqtinterface/qt4/src/widgets/tqgridview.h +++ b/tqtinterface/qt4/src/widgets/tqgridview.h @@ -59,7 +59,7 @@ class TQ_EXPORT TQGridView : public TQScrollView Q_PROPERTY( int cellHeight READ cellHeight WRITE setCellHeight ) public: - TQGridView( TQWidget *tqparent=0, const char *name=0, WFlags f=0 ); + TQGridView( TQWidget *parent=0, const char *name=0, WFlags f=0 ); ~TQGridView(); int numRows() const; diff --git a/tqtinterface/qt4/src/widgets/tqgroupbox.cpp b/tqtinterface/qt4/src/widgets/tqgroupbox.cpp index 228204a..ef877e7 100644 --- a/tqtinterface/qt4/src/widgets/tqgroupbox.cpp +++ b/tqtinterface/qt4/src/widgets/tqgroupbox.cpp @@ -73,7 +73,7 @@ The simplest way to use it is to create a group box with the desired number of columns (or rows) and orientation, and then just - create widgets with the group box as tqparent. + create widgets with the group box as parent. It is also possible to change the orientation() and number of columns() after construction, or to ignore all the automatic @@ -112,14 +112,14 @@ public: /*! Constructs a group box widget with no title. - The \a tqparent and \a name arguments are passed to the TQWidget + The \a parent and \a name arguments are passed to the TQWidget constructor. This constructor does not do automatic tqlayout. */ -TQGroupBox::TQGroupBox( TQWidget *tqparent, const char *name ) - : TQFrame( tqparent, name ) +TQGroupBox::TQGroupBox( TQWidget *parent, const char *name ) + : TQFrame( parent, name ) { init(); } @@ -127,14 +127,14 @@ TQGroupBox::TQGroupBox( TQWidget *tqparent, const char *name ) /*! Constructs a group box with the title \a title. - The \a tqparent and \a name arguments are passed to the TQWidget + The \a parent and \a name arguments are passed to the TQWidget constructor. This constructor does not do automatic tqlayout. */ -TQGroupBox::TQGroupBox( const TQString &title, TQWidget *tqparent, const char *name ) - : TQFrame( tqparent, name ) +TQGroupBox::TQGroupBox( const TQString &title, TQWidget *parent, const char *name ) + : TQFrame( parent, name ) { init(); setTitle( title ); @@ -145,13 +145,13 @@ TQGroupBox::TQGroupBox( const TQString &title, TQWidget *tqparent, const char *n arranged in \a strips rows or columns (depending on \a orientation). - The \a tqparent and \a name arguments are passed to the TQWidget + The \a parent and \a name arguments are passed to the TQWidget constructor. */ TQGroupBox::TQGroupBox( int strips, Qt::Orientation orientation, - TQWidget *tqparent, const char *name ) - : TQFrame( tqparent, name ) + TQWidget *parent, const char *name ) + : TQFrame( parent, name ) { init(); setColumnLayout( strips, orientation ); @@ -162,14 +162,14 @@ TQGroupBox::TQGroupBox( int strips, Qt::Orientation orientation, arranged in \a strips rows or columns (depending on \a orientation). - The \a tqparent and \a name arguments are passed to the TQWidget + The \a parent and \a name arguments are passed to the TQWidget constructor. */ TQGroupBox::TQGroupBox( int strips, Qt::Orientation orientation, - const TQString &title, TQWidget *tqparent, + const TQString &title, TQWidget *parent, const char *name ) - : TQFrame( tqparent, name ) + : TQFrame( parent, name ) { init(); setTitle( title ); diff --git a/tqtinterface/qt4/src/widgets/tqgroupbox.h b/tqtinterface/qt4/src/widgets/tqgroupbox.h index d73403e..ce77add 100644 --- a/tqtinterface/qt4/src/widgets/tqgroupbox.h +++ b/tqtinterface/qt4/src/widgets/tqgroupbox.h @@ -68,13 +68,13 @@ class TQ_EXPORT TQGroupBox : public TQFrame Q_PROPERTY( bool checked READ isChecked WRITE setChecked ) #endif public: - TQGroupBox( TQWidget* tqparent=0, const char* name=0 ); + TQGroupBox( TQWidget* parent=0, const char* name=0 ); TQGroupBox( const TQString &title, - TQWidget* tqparent=0, const char* name=0 ); + TQWidget* parent=0, const char* name=0 ); TQGroupBox( int strips, Qt::Orientation o, - TQWidget* tqparent=0, const char* name=0 ); + TQWidget* parent=0, const char* name=0 ); TQGroupBox( int strips, Qt::Orientation o, const TQString &title, - TQWidget* tqparent=0, const char* name=0 ); + TQWidget* parent=0, const char* name=0 ); ~TQGroupBox(); virtual void setColumnLayout(int strips, Qt::Orientation o); diff --git a/tqtinterface/qt4/src/widgets/tqhbox.cpp b/tqtinterface/qt4/src/widgets/tqhbox.cpp index d25956d..bbd3dfd 100644 --- a/tqtinterface/qt4/src/widgets/tqhbox.cpp +++ b/tqtinterface/qt4/src/widgets/tqhbox.cpp @@ -66,12 +66,12 @@ /*! - Constructs an hbox widget with tqparent \a tqparent, called \a name. - The tqparent, name and widget flags, \a f, are passed to the TQFrame + Constructs an hbox widget with parent \a parent, called \a name. + The parent, name and widget flags, \a f, are passed to the TQFrame constructor. */ -TQHBox::TQHBox( TQWidget *tqparent, const char *name, WFlags f ) - :TQFrame( tqparent, name, f ) +TQHBox::TQHBox( TQWidget *parent, const char *name, WFlags f ) + :TQFrame( parent, name, f ) { lay = new TQHBoxLayout( this, frameWidth(), frameWidth(), name ); lay->setAutoAdd( TRUE ); @@ -85,12 +85,12 @@ TQHBox::TQHBox( TQWidget *tqparent, const char *name, WFlags f ) This constructor is provided for the TQVBox class. You should never need to use it directly. - The \a tqparent, \a name and widget flags, \a f, are passed to the + The \a parent, \a name and widget flags, \a f, are passed to the TQFrame constructor. */ -TQHBox::TQHBox( bool horizontal, TQWidget *tqparent , const char *name, WFlags f ) - :TQFrame( tqparent, name, f ) +TQHBox::TQHBox( bool horizontal, TQWidget *parent , const char *name, WFlags f ) + :TQFrame( parent, name, f ) { lay = new TQBoxLayout( this, horizontal ? TQBoxLayout::LeftToRight : TQBoxLayout::Down, diff --git a/tqtinterface/qt4/src/widgets/tqhbox.h b/tqtinterface/qt4/src/widgets/tqhbox.h index e669eb0..b6a524d 100644 --- a/tqtinterface/qt4/src/widgets/tqhbox.h +++ b/tqtinterface/qt4/src/widgets/tqhbox.h @@ -53,14 +53,14 @@ class TQ_EXPORT TQHBox : public TQFrame Q_OBJECT TQ_OBJECT public: - TQHBox( TQWidget* tqparent=0, const char* name=0, WFlags f=0 ); + TQHBox( TQWidget* parent=0, const char* name=0, WFlags f=0 ); void setSpacing( int ); bool setStretchFactor( TQWidget*, int stretch ); TQSize tqsizeHint() const; protected: - TQHBox( bool horizontal, TQWidget* tqparent, const char* name, WFlags f = 0 ); + TQHBox( bool horizontal, TQWidget* parent, const char* name, WFlags f = 0 ); void frameChanged(); private: diff --git a/tqtinterface/qt4/src/widgets/tqhbuttongroup.cpp b/tqtinterface/qt4/src/widgets/tqhbuttongroup.cpp index 29af0a9..3f02794 100644 --- a/tqtinterface/qt4/src/widgets/tqhbuttongroup.cpp +++ b/tqtinterface/qt4/src/widgets/tqhbuttongroup.cpp @@ -64,24 +64,24 @@ /*! Constructs a horizontal button group with no title. - The \a tqparent and \a name arguments are passed to the TQWidget + The \a parent and \a name arguments are passed to the TQWidget constructor. */ -TQHButtonGroup::TQHButtonGroup( TQWidget *tqparent, const char *name ) - : TQButtonGroup( 1, Qt::Vertical /* sic! */, tqparent, name ) +TQHButtonGroup::TQHButtonGroup( TQWidget *parent, const char *name ) + : TQButtonGroup( 1, Qt::Vertical /* sic! */, parent, name ) { } /*! Constructs a horizontal button group with the title \a title. - The \a tqparent and \a name arguments are passed to the TQWidget + The \a parent and \a name arguments are passed to the TQWidget constructor. */ -TQHButtonGroup::TQHButtonGroup( const TQString &title, TQWidget *tqparent, +TQHButtonGroup::TQHButtonGroup( const TQString &title, TQWidget *parent, const char *name ) - : TQButtonGroup( 1, Qt::Vertical /* sic! */, title, tqparent, name ) + : TQButtonGroup( 1, Qt::Vertical /* sic! */, title, parent, name ) { } diff --git a/tqtinterface/qt4/src/widgets/tqhbuttongroup.h b/tqtinterface/qt4/src/widgets/tqhbuttongroup.h index 0a0cf50..a45e25c 100644 --- a/tqtinterface/qt4/src/widgets/tqhbuttongroup.h +++ b/tqtinterface/qt4/src/widgets/tqhbuttongroup.h @@ -51,8 +51,8 @@ class TQ_EXPORT TQHButtonGroup : public TQButtonGroup { TQ_OBJECT public: - TQHButtonGroup( TQWidget* tqparent=0, const char* name=0 ); - TQHButtonGroup( const TQString &title, TQWidget* tqparent=0, const char* name=0 ); + TQHButtonGroup( TQWidget* parent=0, const char* name=0 ); + TQHButtonGroup( const TQString &title, TQWidget* parent=0, const char* name=0 ); ~TQHButtonGroup(); private: // Disabled copy constructor and operator= diff --git a/tqtinterface/qt4/src/widgets/tqheader.cpp b/tqtinterface/qt4/src/widgets/tqheader.cpp index 18d813d..28be091 100644 --- a/tqtinterface/qt4/src/widgets/tqheader.cpp +++ b/tqtinterface/qt4/src/widgets/tqheader.cpp @@ -217,12 +217,12 @@ public: /*! - Constructs a horizontal header called \a name, with tqparent \a - tqparent. + Constructs a horizontal header called \a name, with parent \a + parent. */ -TQHeader::TQHeader( TQWidget *tqparent, const char *name ) - : TQWidget( tqparent, name, TQt::WStaticContents ) +TQHeader::TQHeader( TQWidget *parent, const char *name ) + : TQWidget( parent, name, TQt::WStaticContents ) { orient = Qt::Horizontal; init( 0 ); @@ -230,11 +230,11 @@ TQHeader::TQHeader( TQWidget *tqparent, const char *name ) /*! Constructs a horizontal header called \a name, with \a n sections - and tqparent \a tqparent. + and parent \a parent. */ -TQHeader::TQHeader( int n, TQWidget *tqparent, const char *name ) - : TQWidget( tqparent, name, TQt::WStaticContents ) +TQHeader::TQHeader( int n, TQWidget *parent, const char *name ) + : TQWidget( parent, name, TQt::WStaticContents ) { orient = Qt::Horizontal; init( n ); diff --git a/tqtinterface/qt4/src/widgets/tqheader.h b/tqtinterface/qt4/src/widgets/tqheader.h index 24fcd25..cfd5491 100644 --- a/tqtinterface/qt4/src/widgets/tqheader.h +++ b/tqtinterface/qt4/src/widgets/tqheader.h @@ -69,8 +69,8 @@ class TQ_EXPORT TQHeader : public TQWidget Q_PROPERTY( bool stretching READ isStretchEnabled WRITE setStretchEnabled ) public: - TQHeader( TQWidget* tqparent=0, const char* name=0 ); - TQHeader( int, TQWidget* tqparent=0, const char* name=0 ); + TQHeader( TQWidget* parent=0, const char* name=0 ); + TQHeader( int, TQWidget* parent=0, const char* name=0 ); ~TQHeader(); int addLabel( const TQString &, int size = -1 ); diff --git a/tqtinterface/qt4/src/widgets/tqhgroupbox.cpp b/tqtinterface/qt4/src/widgets/tqhgroupbox.cpp index 2bac06c..37765df 100644 --- a/tqtinterface/qt4/src/widgets/tqhgroupbox.cpp +++ b/tqtinterface/qt4/src/widgets/tqhgroupbox.cpp @@ -63,24 +63,24 @@ /*! Constructs a horizontal group box with no title. - The \a tqparent and \a name arguments are passed to the TQWidget + The \a parent and \a name arguments are passed to the TQWidget constructor. */ -TQHGroupBox::TQHGroupBox( TQWidget *tqparent, const char *name ) - : TQGroupBox( 1, Qt::Vertical /* sic! */, tqparent, name ) +TQHGroupBox::TQHGroupBox( TQWidget *parent, const char *name ) + : TQGroupBox( 1, Qt::Vertical /* sic! */, parent, name ) { } /*! Constructs a horizontal group box with the title \a title. - The \a tqparent and \a name arguments are passed to the TQWidget + The \a parent and \a name arguments are passed to the TQWidget constructor. */ -TQHGroupBox::TQHGroupBox( const TQString &title, TQWidget *tqparent, +TQHGroupBox::TQHGroupBox( const TQString &title, TQWidget *parent, const char *name ) - : TQGroupBox( 1, Qt::Vertical /* sic! */, title, tqparent, name ) + : TQGroupBox( 1, Qt::Vertical /* sic! */, title, parent, name ) { } diff --git a/tqtinterface/qt4/src/widgets/tqhgroupbox.h b/tqtinterface/qt4/src/widgets/tqhgroupbox.h index 4b52836..bff396c 100644 --- a/tqtinterface/qt4/src/widgets/tqhgroupbox.h +++ b/tqtinterface/qt4/src/widgets/tqhgroupbox.h @@ -52,8 +52,8 @@ class TQ_EXPORT TQHGroupBox : public TQGroupBox Q_OBJECT TQ_OBJECT public: - TQHGroupBox( TQWidget* tqparent=0, const char* name=0 ); - TQHGroupBox( const TQString &title, TQWidget* tqparent=0, const char* name=0 ); + TQHGroupBox( TQWidget* parent=0, const char* name=0 ); + TQHGroupBox( const TQString &title, TQWidget* parent=0, const char* name=0 ); ~TQHGroupBox(); private: // Disabled copy constructor and operator= diff --git a/tqtinterface/qt4/src/widgets/tqlabel.cpp b/tqtinterface/qt4/src/widgets/tqlabel.cpp index 491adab..206a7cd 100644 --- a/tqtinterface/qt4/src/widgets/tqlabel.cpp +++ b/tqtinterface/qt4/src/widgets/tqlabel.cpp @@ -145,14 +145,14 @@ public: /*! Constructs an empty label. - The \a tqparent, \a name and widget flag \a f, arguments are passed + The \a parent, \a name and widget flag \a f, arguments are passed to the TQFrame constructor. \sa tqsetAlignment(), setFrameStyle(), setIndent() */ -TQLabel::TQLabel( TQWidget *tqparent, const char *name, WFlags f ) - : TQFrame( tqparent, name, f | TQt::WMouseNoMask ) +TQLabel::TQLabel( TQWidget *parent, const char *name, WFlags f ) + : TQFrame( parent, name, f | TQt::WMouseNoMask ) { init(); } @@ -161,15 +161,15 @@ TQLabel::TQLabel( TQWidget *tqparent, const char *name, WFlags f ) /*! Constructs a label that displays the text, \a text. - The \a tqparent, \a name and widget flag \a f, arguments are passed + The \a parent, \a name and widget flag \a f, arguments are passed to the TQFrame constructor. \sa setText(), tqsetAlignment(), setFrameStyle(), setIndent() */ -TQLabel::TQLabel( const TQString &text, TQWidget *tqparent, const char *name, +TQLabel::TQLabel( const TQString &text, TQWidget *parent, const char *name, WFlags f ) - : TQFrame( tqparent, name, f | TQt::WMouseNoMask ) + : TQFrame( parent, name, f | TQt::WMouseNoMask ) { init(); setText( text ); @@ -185,15 +185,15 @@ TQLabel::TQLabel( const TQString &text, TQWidget *tqparent, const char *name, user presses Alt+ the underlined letter, focus is passed to the buddy widget. - The \a tqparent, \a name and widget flag, \a f, arguments are passed + The \a parent, \a name and widget flag, \a f, arguments are passed to the TQFrame constructor. \sa setText(), setBuddy(), tqsetAlignment(), setFrameStyle(), setIndent() */ TQLabel::TQLabel( TQWidget *buddy, const TQString &text, - TQWidget *tqparent, const char *name, WFlags f ) - : TQFrame( tqparent, name, f | TQt::WMouseNoMask ) + TQWidget *parent, const char *name, WFlags f ) + : TQFrame( parent, name, f | TQt::WMouseNoMask ) { init(); #ifndef TQT_NO_ACCEL @@ -345,7 +345,7 @@ void TQLabel::setPixmap( const TQPixmap &pixmap ) lpixmap = new TQPixmap( pixmap ); } - if ( lpixmap->depth() == 1 && !lpixmap->tqmask() ) + if ( lpixmap->depth() == 1 && !lpixmap->mask() ) lpixmap->setMask( *((TQBitmap *)lpixmap) ); updateLabel( osh ); @@ -1000,7 +1000,7 @@ void TQLabel::movieUpdated(const TQRect& rect) r.moveBy(rect.x(), rect.y()); r.setWidth(TQMIN(r.width(), rect.width())); r.setHeight(TQMIN(r.height(), rect.height())); - tqrepaint( r, mov->framePixmap().tqmask() != 0 ); + tqrepaint( r, mov->framePixmap().mask() != 0 ); } } diff --git a/tqtinterface/qt4/src/widgets/tqlabel.h b/tqtinterface/qt4/src/widgets/tqlabel.h index 654648e..266b5c5 100644 --- a/tqtinterface/qt4/src/widgets/tqlabel.h +++ b/tqtinterface/qt4/src/widgets/tqlabel.h @@ -63,11 +63,11 @@ class TQ_EXPORT TQLabel : public TQFrame TQ_OVERRIDE( BackgroundMode backgroundMode DESIGNABLE true) public: - TQLabel( TQWidget *tqparent, const char* name=0, WFlags f=0 ); - TQLabel( const TQString &text, TQWidget *tqparent, const char* name=0, + TQLabel( TQWidget *parent, const char* name=0, WFlags f=0 ); + TQLabel( const TQString &text, TQWidget *parent, const char* name=0, WFlags f=0 ); TQLabel( TQWidget *buddy, const TQString &, - TQWidget *tqparent, const char* name=0, WFlags f=0 ); + TQWidget *parent, const char* name=0, WFlags f=0 ); ~TQLabel(); TQString text() const { return ltext; } diff --git a/tqtinterface/qt4/src/widgets/tqlcdnumber.cpp b/tqtinterface/qt4/src/widgets/tqlcdnumber.cpp index e84332c..56d69b0 100644 --- a/tqtinterface/qt4/src/widgets/tqlcdnumber.cpp +++ b/tqtinterface/qt4/src/widgets/tqlcdnumber.cpp @@ -302,14 +302,14 @@ static const char *getSegments( char ch ) // gets list of segments to decimal, the decimal point mode to 'small' and the frame style to a raised box. The segmentStyle() is set to \c Outline. - The \a tqparent and \a name arguments are passed to the TQFrame + The \a parent and \a name arguments are passed to the TQFrame constructor. \sa setNumDigits(), setSmallDecimalPoint() */ -TQLCDNumber::TQLCDNumber( TQWidget *tqparent, const char *name ) - : TQFrame( tqparent, name ) +TQLCDNumber::TQLCDNumber( TQWidget *parent, const char *name ) + : TQFrame( parent, name ) { ndigits = 5; init(); @@ -322,14 +322,14 @@ TQLCDNumber::TQLCDNumber( TQWidget *tqparent, const char *name ) and the frame style to a raised box. The segmentStyle() is set to \c Outline. - The \a tqparent and \a name arguments are passed to the TQFrame + The \a parent and \a name arguments are passed to the TQFrame constructor. \sa setNumDigits(), setSmallDecimalPoint() */ -TQLCDNumber::TQLCDNumber( uint numDigits, TQWidget *tqparent, const char *name ) - : TQFrame( tqparent, name ) +TQLCDNumber::TQLCDNumber( uint numDigits, TQWidget *parent, const char *name ) + : TQFrame( parent, name ) { ndigits = numDigits; init(); diff --git a/tqtinterface/qt4/src/widgets/tqlcdnumber.h b/tqtinterface/qt4/src/widgets/tqlcdnumber.h index e954305..7d9fd5a 100644 --- a/tqtinterface/qt4/src/widgets/tqlcdnumber.h +++ b/tqtinterface/qt4/src/widgets/tqlcdnumber.h @@ -64,8 +64,8 @@ class TQ_EXPORT TQLCDNumber : public TQFrame // LCD number widget Q_PROPERTY( int intValue READ intValue WRITE display ) public: - TQLCDNumber( TQWidget* tqparent=0, const char* name=0 ); - TQLCDNumber( uint numDigits, TQWidget* tqparent=0, const char* name=0 ); + TQLCDNumber( TQWidget* parent=0, const char* name=0 ); + TQLCDNumber( uint numDigits, TQWidget* parent=0, const char* name=0 ); ~TQLCDNumber(); enum Mode { Hex, Dec, Oct, Bin, HEX = Hex, DEC = Dec, OCT = Oct, diff --git a/tqtinterface/qt4/src/widgets/tqlineedit.cpp b/tqtinterface/qt4/src/widgets/tqlineedit.cpp index cca37a7..645c646 100644 --- a/tqtinterface/qt4/src/widgets/tqlineedit.cpp +++ b/tqtinterface/qt4/src/widgets/tqlineedit.cpp @@ -122,7 +122,7 @@ struct TQLineEditPrivate : public TQt const TQValidator* validator; struct MaskInputData { enum Casemode { NoCaseMode, Upper, Lower }; - TQChar maskChar; // either the separator char or the inputtqmask + TQChar maskChar; // either the separator char or the inputmask bool separator; Casemode caseMode; }; @@ -246,7 +246,7 @@ struct TQLineEditPrivate : public TQt // masking void parseInputMask( const TQString &maskFields ); - bool isValidInput( TQChar key, TQChar tqmask ) const; + bool isValidInput( TQChar key, TQChar mask ) const; TQString maskString( uint pos, const TQString &str, bool clear = FALSE ) const; TQString clearString( uint pos, uint len ) const; TQString stripString( const TQString &str ) const; @@ -390,13 +390,13 @@ struct TQLineEditPrivate : public TQt The maximum text length is set to 32767 characters. - The \a tqparent and \a name arguments are sent to the TQWidget constructor. + The \a parent and \a name arguments are sent to the TQWidget constructor. \sa setText(), setMaxLength() */ -TQLineEdit::TQLineEdit( TQWidget* tqparent, const char* name ) - : TQFrame( tqparent, name, TQt::WNoAutoErase ), d(new TQLineEditPrivate( this )) +TQLineEdit::TQLineEdit( TQWidget* parent, const char* name ) + : TQFrame( parent, name, TQt::WNoAutoErase ), d(new TQLineEditPrivate( this )) { d->init( TQString::null ); } @@ -407,14 +407,14 @@ TQLineEdit::TQLineEdit( TQWidget* tqparent, const char* name ) The cursor position is set to the end of the line and the maximum text length to 32767 characters. - The \a tqparent and \a name arguments are sent to the TQWidget + The \a parent and \a name arguments are sent to the TQWidget constructor. \sa text(), setMaxLength() */ -TQLineEdit::TQLineEdit( const TQString& contents, TQWidget* tqparent, const char* name ) - : TQFrame( tqparent, name, TQt::WNoAutoErase ), d(new TQLineEditPrivate( this )) +TQLineEdit::TQLineEdit( const TQString& contents, TQWidget* parent, const char* name ) + : TQFrame( parent, name, TQt::WNoAutoErase ), d(new TQLineEditPrivate( this )) { d->init( contents ); } @@ -424,16 +424,16 @@ TQLineEdit::TQLineEdit( const TQString& contents, TQWidget* tqparent, const char contents. The cursor position is set to the end of the line and the maximum - text length is set to the length of the tqmask (the number of tqmask + text length is set to the length of the mask (the number of mask characters and separators). - The \a tqparent and \a name arguments are sent to the TQWidget + The \a parent and \a name arguments are sent to the TQWidget constructor. \sa setMask() text() */ -TQLineEdit::TQLineEdit( const TQString& contents, const TQString &inputMask, TQWidget* tqparent, const char* name ) - : TQFrame( tqparent, name, TQt::WNoAutoErase ), d(new TQLineEditPrivate( this )) +TQLineEdit::TQLineEdit( const TQString& contents, const TQString &inputMask, TQWidget* parent, const char* name ) + : TQFrame( parent, name, TQt::WNoAutoErase ), d(new TQLineEditPrivate( this )) { d->parseInputMask( inputMask ); if ( d->maskData ) { @@ -519,7 +519,7 @@ TQString TQLineEdit::displayText() const cursor position is set to 0 and the first part of the string is shown. - If the line edit has an input tqmask, the tqmask defines the maximum + If the line edit has an input mask, the mask defines the maximum string length. \sa inputMask @@ -1109,18 +1109,18 @@ bool TQLineEdit::hasAcceptableInput() const /*! \property TQLineEdit::inputMask - \brief The validation input tqmask + \brief The validation input mask - If no tqmask is set, inputMask() returns TQString::null. + If no mask is set, inputMask() returns TQString::null. - Sets the TQLineEdit's validation tqmask. Validators can be used + Sets the TQLineEdit's validation mask. Validators can be used instead of, or in conjunction with masks; see setValidator(). - Unset the tqmask and return to normal TQLineEdit operation by passing + Unset the mask and return to normal TQLineEdit operation by passing an empty string ("") or just calling setInputMask() with no arguments. - The tqmask format understands these tqmask characters: + The mask format understands these mask characters: \table \header \i Character \i Meaning \row \i \c A \i ASCII alphabetic character required. A-Z, a-z. @@ -1142,7 +1142,7 @@ bool TQLineEdit::hasAcceptableInput() const separators. \endtable - The tqmask consists of a string of tqmask characters and separators, + The mask consists of a string of mask characters and separators, optionally followed by a semi-colon and the character used for blanks: the blank characters are always removed from the text after editing. The default blank character is space. @@ -2740,9 +2740,9 @@ void TQLineEditPrivate::parseInputMask( const TQString &maskFields ) /* checks if the key is valid compared to the inputMask */ -bool TQLineEditPrivate::isValidInput( TQChar key, TQChar tqmask ) const +bool TQLineEditPrivate::isValidInput( TQChar key, TQChar mask ) const { - switch ( tqmask ) { + switch ( mask ) { case 'A': if ( key.isLetter() && key != blank ) return TRUE; @@ -2794,7 +2794,7 @@ bool TQLineEditPrivate::isValidInput( TQChar key, TQChar tqmask ) const } /* - Applies the inputMask on \a str starting from position \a pos in the tqmask. \a clear + Applies the inputMask on \a str starting from position \a pos in the mask. \a clear specifies from where characters should be gotten when a separator is met in \a str - TRUE means that blanks will be used, FALSE that previous input is used. Calling this when no inputMask is set is undefined. diff --git a/tqtinterface/qt4/src/widgets/tqlineedit.h b/tqtinterface/qt4/src/widgets/tqlineedit.h index 0b7fd52..62232d9 100644 --- a/tqtinterface/qt4/src/widgets/tqlineedit.h +++ b/tqtinterface/qt4/src/widgets/tqlineedit.h @@ -82,9 +82,9 @@ class TQ_EXPORT TQLineEdit : public TQFrame Q_PROPERTY( bool acceptableInput READ hasAcceptableInput ) public: - TQLineEdit( TQWidget* tqparent, const char* name=0 ); - TQLineEdit( const TQString &, TQWidget* tqparent, const char* name=0 ); - TQLineEdit( const TQString &, const TQString &, TQWidget* tqparent, const char* name=0 ); + TQLineEdit( TQWidget* parent, const char* name=0 ); + TQLineEdit( const TQString &, TQWidget* parent, const char* name=0 ); + TQLineEdit( const TQString &, const TQString &, TQWidget* parent, const char* name=0 ); ~TQLineEdit(); TQString text() const; diff --git a/tqtinterface/qt4/src/widgets/tqlistbox.cpp b/tqtinterface/qt4/src/widgets/tqlistbox.cpp index 3b84d03..331bf26 100644 --- a/tqtinterface/qt4/src/widgets/tqlistbox.cpp +++ b/tqtinterface/qt4/src/widgets/tqlistbox.cpp @@ -992,8 +992,8 @@ int TQListBoxPixmap::rtti() const /*! - Constructs a new empty list box called \a name and with tqparent \a - tqparent. + Constructs a new empty list box called \a name and with parent \a + parent. Performance is boosted by modifying the widget flags \a f so that only part of the TQListBoxItem tqchildren is redrawn. This may be @@ -1004,8 +1004,8 @@ int TQListBoxPixmap::rtti() const \sa TQWidget::clearWFlags() TQt::WidgetFlags */ -TQListBox::TQListBox( TQWidget *tqparent, const char *name, WFlags f ) - : TQScrollView( tqparent, name, (WFlags)(f | TQt::WStaticContents | TQt::WNoAutoErase) ) +TQListBox::TQListBox( TQWidget *parent, const char *name, WFlags f ) + : TQScrollView( parent, name, (WFlags)(f | TQt::WStaticContents | TQt::WNoAutoErase) ) { d = new TQListBoxPrivate( this ); d->updateTimer = new TQTimer( this, "listbox update timer" ); diff --git a/tqtinterface/qt4/src/widgets/tqlistbox.h b/tqtinterface/qt4/src/widgets/tqlistbox.h index 0b464a9..0a5763b 100644 --- a/tqtinterface/qt4/src/widgets/tqlistbox.h +++ b/tqtinterface/qt4/src/widgets/tqlistbox.h @@ -79,7 +79,7 @@ class TQ_EXPORT TQListBox : public TQScrollView Q_PROPERTY( bool variableHeight READ variableHeight WRITE setVariableHeight ) public: - TQListBox( TQWidget* tqparent=0, const char* name=0, WFlags f=0 ); + TQListBox( TQWidget* parent=0, const char* name=0, WFlags f=0 ); ~TQListBox(); virtual void setFont( const TQFont & ); diff --git a/tqtinterface/qt4/src/widgets/tqlistview.cpp b/tqtinterface/qt4/src/widgets/tqlistview.cpp index 506ec60..5b032b0 100644 --- a/tqtinterface/qt4/src/widgets/tqlistview.cpp +++ b/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() && diff --git a/tqtinterface/qt4/src/widgets/tqlistview.h b/tqtinterface/qt4/src/widgets/tqlistview.h index 3d6c997..7c3d68b 100644 --- a/tqtinterface/qt4/src/widgets/tqlistview.h +++ b/tqtinterface/qt4/src/widgets/tqlistview.h @@ -69,28 +69,28 @@ class TQ_EXPORT TQListViewItem : public TQt friend class TQListViewToolTip; public: - TQListViewItem( TQListView * tqparent ); - TQListViewItem( TQListViewItem * tqparent ); - TQListViewItem( TQListView * tqparent, TQListViewItem * after ); - TQListViewItem( TQListViewItem * tqparent, TQListViewItem * after ); + TQListViewItem( TQListView * parent ); + TQListViewItem( TQListViewItem * parent ); + TQListViewItem( TQListView * parent, TQListViewItem * after ); + TQListViewItem( TQListViewItem * parent, TQListViewItem * after ); - TQListViewItem( TQListView * tqparent, + TQListViewItem( TQListView * parent, TQString, TQString = TQString::null, TQString = TQString::null, TQString = TQString::null, TQString = TQString::null, TQString = TQString::null, TQString = TQString::null, TQString = TQString::null ); - TQListViewItem( TQListViewItem * tqparent, + TQListViewItem( TQListViewItem * parent, TQString, TQString = TQString::null, TQString = TQString::null, TQString = TQString::null, TQString = TQString::null, TQString = TQString::null, TQString = TQString::null, TQString = TQString::null ); - TQListViewItem( TQListView * tqparent, TQListViewItem * after, + TQListViewItem( TQListView * parent, TQListViewItem * after, TQString, TQString = TQString::null, TQString = TQString::null, TQString = TQString::null, TQString = TQString::null, TQString = TQString::null, TQString = TQString::null, TQString = TQString::null ); - TQListViewItem( TQListViewItem * tqparent, TQListViewItem * after, + TQListViewItem( TQListViewItem * parent, TQListViewItem * after, TQString, TQString = TQString::null, TQString = TQString::null, TQString = TQString::null, TQString = TQString::null, TQString = TQString::null, @@ -137,7 +137,7 @@ public: TQListViewItem * firstChild() const; TQListViewItem * nextSibling() const { return siblingItem; } - TQListViewItem * tqparent() const; + TQListViewItem * parent() const; TQListViewItem * itemAbove(); TQListViewItem * itemBelow(); @@ -259,7 +259,7 @@ class TQ_EXPORT TQListView: public TQScrollView Q_PROPERTY( RenameAction defaultRenameAction READ defaultRenameAction WRITE setDefaultRenameAction ) public: - TQListView( TQWidget* tqparent=0, const char* name=0, WFlags f = 0 ); + TQListView( TQWidget* parent=0, const char* name=0, WFlags f = 0 ); ~TQListView(); int treeStepSize() const; @@ -483,21 +483,21 @@ public: // ### should be integrated with qbutton in ver4 perhaps enum ToggleState { Off, NoChange, On }; - TQCheckListItem( TQCheckListItem *tqparent, const TQString &text, + TQCheckListItem( TQCheckListItem *parent, const TQString &text, Type = RadioButtonController ); - TQCheckListItem( TQCheckListItem *tqparent, TQListViewItem *after, + TQCheckListItem( TQCheckListItem *parent, TQListViewItem *after, const TQString &text, Type = RadioButtonController ); - TQCheckListItem( TQListViewItem *tqparent, const TQString &text, + TQCheckListItem( TQListViewItem *parent, const TQString &text, Type = RadioButtonController ); - TQCheckListItem( TQListViewItem *tqparent, TQListViewItem *after, + TQCheckListItem( TQListViewItem *parent, TQListViewItem *after, const TQString &text, Type = RadioButtonController ); - TQCheckListItem( TQListView *tqparent, const TQString &text, + TQCheckListItem( TQListView *parent, const TQString &text, Type = RadioButtonController ); - TQCheckListItem( TQListView *tqparent, TQListViewItem *after, + TQCheckListItem( TQListView *parent, TQListViewItem *after, const TQString &text, Type = RadioButtonController ); - TQCheckListItem( TQListViewItem *tqparent, const TQString &text, + TQCheckListItem( TQListViewItem *parent, const TQString &text, const TQPixmap & ); - TQCheckListItem( TQListView *tqparent, const TQString &text, + TQCheckListItem( TQListView *parent, const TQString &text, const TQPixmap & ); ~TQCheckListItem(); diff --git a/tqtinterface/qt4/src/widgets/tqmainwindow.cpp b/tqtinterface/qt4/src/widgets/tqmainwindow.cpp index 6a649bc..446371c 100644 --- a/tqtinterface/qt4/src/widgets/tqmainwindow.cpp +++ b/tqtinterface/qt4/src/widgets/tqmainwindow.cpp @@ -132,7 +132,7 @@ class TQMainWindowLayout : public TQLayout TQ_OBJECT public: - TQMainWindowLayout( TQMainWindow *mw, TQLayout* tqparent = 0 ); + TQMainWindowLayout( TQMainWindow *mw, TQLayout* parent = 0 ); ~TQMainWindowLayout() {} void addItem( QLayoutItem * ); @@ -236,8 +236,8 @@ TQSize TQMainWindowLayout::tqminimumSize() const return TQSize( w, h ); } -TQMainWindowLayout::TQMainWindowLayout( TQMainWindow *mw, TQLayout* tqparent ) - : TQLayout( tqparent ), left( 0 ), right( 0 ), central( 0 ) +TQMainWindowLayout::TQMainWindowLayout( TQMainWindow *mw, TQLayout* parent ) + : TQLayout( parent ), left( 0 ), right( 0 ), central( 0 ) { mainWindow = mw; } @@ -318,7 +318,7 @@ TQLayoutIterator TQMainWindowLayout::iterator() class TQHideToolTip : public TQToolTip { public: - TQHideToolTip( TQWidget *tqparent ) : TQToolTip( tqparent ) {} + TQHideToolTip( TQWidget *parent ) : TQToolTip( parent ) {} ~TQHideToolTip() {} virtual void maybeTip( const TQPoint &pos ); @@ -332,14 +332,14 @@ class TQHideDock : public TQWidget TQ_OBJECT public: - TQHideDock( TQMainWindow *tqparent ) : TQWidget( tqparent, "qt_hide_dock" ) { + TQHideDock( TQMainWindow *parent ) : TQWidget( parent, "qt_hide_dock" ) { hide(); setFixedHeight( tqstyle().tqpixelMetric( TQStyle::PM_DockWindowHandleExtent, this ) + 3 ); pressedHandle = -1; pressed = FALSE; setMouseTracking( TRUE ); - win = tqparent; + win = parent; #ifndef TQT_NO_TOOLTIP tip = new TQHideToolTip( this ); #endif @@ -590,7 +590,7 @@ void TQHideToolTip::maybeTip( const TQPoint &pos ) When subclassing we add the menu items and toolbars in the subclass's constructor. If we've created a TQMainWindow instance directly we can add menu items and toolbars just as easily by - passing the TQMainWindow instance as the tqparent instead of the \e + passing the TQMainWindow instance as the parent instead of the \e this pointer. \quotefile application/application.cpp @@ -615,7 +615,7 @@ void TQHideToolTip::maybeTip( const TQPoint &pos ) default). The slot will be called when the toolbar button is clicked. Any dock window can be added to a dock area either using addDockWindow(), or by creating a dock window with the TQMainWindow - as the tqparent. + as the parent. \quotefile application/application.cpp \skipto editor @@ -669,7 +669,7 @@ void TQHideToolTip::maybeTip( const TQPoint &pos ) The main window will take care of the dock areas, and the tqgeometry of the central widget, but all other aspects of the central widget are left to you. TQMainWindow automatically detects the creation of - a menu bar or status bar if you specify the TQMainWindow as tqparent, + a menu bar or status bar if you specify the TQMainWindow as parent, or you can use the provided menuBar() and statusBar() functions. The functions menuBar() and statusBar() create a suitable widget if one doesn't exist, and update the window's tqlayout to make @@ -914,7 +914,7 @@ void TQHideToolTip::maybeTip( const TQPoint &pos ) */ /*! - Constructs an empty main window. The \a tqparent, \a name and widget + Constructs an empty main window. The \a parent, \a name and widget flags \a f, are passed on to the TQWidget constructor. By default, the widget flags are set to \c WType_TopLevel rather @@ -923,8 +923,8 @@ void TQHideToolTip::maybeTip( const TQPoint &pos ) f to 0. */ -TQMainWindow::TQMainWindow( TQWidget * tqparent, const char * name, WFlags f ) - : TQWidget( tqparent, name, f ) +TQMainWindow::TQMainWindow( TQWidget * parent, const char * name, WFlags f ) + : TQWidget( parent, name, f ) { d = new TQMainWindowPrivate; #ifdef TQ_WS_MACX @@ -1641,11 +1641,11 @@ void TQMainWindow::paintEvent( TQPaintEvent * ) bool TQMainWindow::dockMainWindow( TQObject *dock ) { while ( dock ) { - if ( dock->tqparent() && TQT_BASE_OBJECT(dock->tqparent()) == TQT_BASE_OBJECT(this) ) + if ( dock->parent() && TQT_BASE_OBJECT(dock->parent()) == TQT_BASE_OBJECT(this) ) return TRUE; - if ( ::tqqt_cast<TQMainWindow*>(dock->tqparent()) ) + if ( ::tqqt_cast<TQMainWindow*>(dock->parent()) ) return FALSE; - dock = dock->tqparent(); + dock = dock->parent(); } return FALSE; } diff --git a/tqtinterface/qt4/src/widgets/tqmainwindow.h b/tqtinterface/qt4/src/widgets/tqmainwindow.h index 6cbcc02..b2e2734 100644 --- a/tqtinterface/qt4/src/widgets/tqmainwindow.h +++ b/tqtinterface/qt4/src/widgets/tqmainwindow.h @@ -68,7 +68,7 @@ class TQ_EXPORT TQMainWindow: public TQWidget Q_PROPERTY( bool opaqueMoving READ opaqueMoving WRITE setOpaqueMoving ) public: - TQMainWindow( TQWidget* tqparent=0, const char* name=0, WFlags f = (WFlags)TQt::WType_TopLevel ); + TQMainWindow( TQWidget* parent=0, const char* name=0, WFlags f = (WFlags)TQt::WType_TopLevel ); ~TQMainWindow(); #ifndef TQT_NO_MENUBAR diff --git a/tqtinterface/qt4/src/widgets/tqmenubar.cpp b/tqtinterface/qt4/src/widgets/tqmenubar.cpp index e932f18..eee9314 100644 --- a/tqtinterface/qt4/src/widgets/tqmenubar.cpp +++ b/tqtinterface/qt4/src/widgets/tqmenubar.cpp @@ -99,8 +99,8 @@ extern int qt_xfocusout_grab_counter; // defined in qapplication_x11.cpp setItemEnabled(). There is no need to lay out a menu bar. It automatically sets its - own tqgeometry to the top of the tqparent widget and changes it - appropriately whenever the tqparent is resized. + own tqgeometry to the top of the parent widget and changes it + appropriately whenever the parent is resized. \important insertItem removeItem clear insertSeparator setItemEnabled isItemEnabled setItemVisible isItemVisible @@ -260,10 +260,10 @@ static const int gtkItemVMargin = 8; /*! - Constructs a menu bar called \a name with tqparent \a tqparent. + Constructs a menu bar called \a name with parent \a parent. */ -TQMenuBar::TQMenuBar( TQWidget *tqparent, const char *name ) - : TQFrame( tqparent, name, TQt::WNoAutoErase ) +TQMenuBar::TQMenuBar( TQWidget *parent, const char *name ) + : TQFrame( parent, name, TQt::WNoAutoErase ) { #if defined( TQ_WS_MAC ) && !defined(TQMAC_TQMENUBAR_NO_NATIVE) mac_eaten_menubar = FALSE; @@ -284,13 +284,13 @@ TQMenuBar::TQMenuBar( TQWidget *tqparent, const char *name ) toggleclose = 0; pendingDelayedContentsChanges = 0; pendingDelayedStateChanges = 0; - if ( tqparent ) { - // filter tqparent events for resizing - tqparent->installEventFilter( this ); + if ( parent ) { + // filter parent events for resizing + parent->installEventFilter( this ); // filter top-level-widget events for accelerators TQWidget *tlw = tqtopLevelWidget(); - if ( tlw != tqparent ) + if ( tlw != parent ) tlw->installEventFilter( this ); } installEventFilter( this ); @@ -392,7 +392,7 @@ void TQMenuBar::performDelayedContentsChanged() if ( isVisible() ) { update(); #ifndef TQT_NO_MAINWINDOW - TQMainWindow *mw = ::tqqt_cast<TQMainWindow*>(tqparent()); + TQMainWindow *mw = ::tqqt_cast<TQMainWindow*>(parent()); if ( mw ) { mw->triggerLayout(); mw->update(); @@ -503,17 +503,17 @@ void TQMenuBar::languageChange() \internal This function is used to adjust the menu bar's tqgeometry to the - tqparent widget's tqgeometry. Note that this is \e not part of the + parent widget's tqgeometry. Note that this is \e not part of the public interface - the function is \c public only because TQObject::eventFilter() is. - Resizes the menu bar to fit in the tqparent widget when the tqparent + Resizes the menu bar to fit in the parent widget when the parent receives a resize event. */ bool TQMenuBar::eventFilter( TQObject *object, TQEvent *event ) { - if ( object == tqparent() && object + if ( object == parent() && object #ifndef TQT_NO_TOOLBAR && !::tqqt_cast<TQToolBar*>(object) #endif @@ -568,7 +568,7 @@ bool TQMenuBar::eventFilter( TQObject *object, TQEvent *event ) // this key and don't wait for Alt on this widget if ( waitforalt ) { waitforalt = 0; - if ( object->tqparent() ) + if ( object->parent() ) object->removeEventFilter( this ); ke->accept(); return TRUE; @@ -603,7 +603,7 @@ bool TQMenuBar::eventFilter( TQObject *object, TQEvent *event ) #endif // look for Alt release if ( TQT_TQOBJECT(((TQWidget*)object)->tqfocusWidget()) == object || - (object->tqparent() == 0 && ((TQWidget*)object)->tqfocusWidget() == 0) ) { + (object->parent() == 0 && ((TQWidget*)object)->tqfocusWidget() == 0) ) { if ( waitforalt && event->type() == TQEvent::KeyRelease && ( ke->key() == Qt::Key_Alt || ke->key() == Qt::Key_Meta ) #if defined(TQ_WS_X11) @@ -611,7 +611,7 @@ bool TQMenuBar::eventFilter( TQObject *object, TQEvent *event ) #endif ) { setAltMode( TRUE ); - if ( object->tqparent() ) + if ( object->parent() ) object->removeEventFilter( this ); TQWidget * tlw = ((TQWidget *)object)->tqtopLevelWidget(); if ( tlw ) { @@ -626,7 +626,7 @@ bool TQMenuBar::eventFilter( TQObject *object, TQEvent *event ) } else if ( !hasFocus() && (event->type() == TQEvent::AccelOverride ) && !(((TQKeyEvent *)event)->key() == Qt::Key_Alt || ((TQKeyEvent *)event)->key() == Qt::Key_Meta) ) { - if ( object->tqparent() ) + if ( object->parent() ) object->removeEventFilter( this ); setAltMode( FALSE ); } @@ -767,7 +767,7 @@ void TQMenuBar::openActPopup() return; TQ_ASSERT( popup->parentMenu == 0 ); - popup->parentMenu = this; // set tqparent menu + popup->parentMenu = this; // set parent menu popup->snapToMouse = FALSE; popup->popup( pos ); @@ -843,7 +843,7 @@ void TQMenuBar::show() #endif #ifndef TQT_NO_MAINWINDOW - TQMainWindow *mw = ::tqqt_cast<TQMainWindow*>(tqparent()); + TQMainWindow *mw = ::tqqt_cast<TQMainWindow*>(parent()); if ( mw ) //### ugly workaround mw->triggerLayout(); #endif @@ -861,7 +861,7 @@ void TQMenuBar::hide() setAltMode( FALSE ); hidePopups(); #ifndef TQT_NO_MAINWINDOW - TQMainWindow *mw = ::tqqt_cast<TQMainWindow*>(tqparent()); + TQMainWindow *mw = ::tqqt_cast<TQMainWindow*>(parent()); if ( mw ) //### ugly workaround mw->triggerLayout(); #endif @@ -1064,7 +1064,7 @@ int TQMenuBar::calculateRects( int max_width ) /*! Returns the height that the menu would resize itself to if its - tqparent (and hence itself) resized to the given \a max_width. This + parent (and hence itself) resized to the given \a max_width. This can be useful for simple tqlayout tasks in which the height of the menu bar is needed after items have been inserted. See \l showimg/showimg.cpp for an example of the usage. @@ -1638,7 +1638,7 @@ TQSize TQMenuBar::tqsizeHint() const TQSize TQMenuBar::tqminimumSize() const { #ifndef TQT_NO_TOOLBAR - TQToolBar *tb = ::tqqt_cast<TQToolBar*>(tqparent()); + TQToolBar *tb = ::tqqt_cast<TQToolBar*>(parent()); if ( tb ) return tqsizeHint(); #endif diff --git a/tqtinterface/qt4/src/widgets/tqmenubar.h b/tqtinterface/qt4/src/widgets/tqmenubar.h index 6b32031..c5668a5 100644 --- a/tqtinterface/qt4/src/widgets/tqmenubar.h +++ b/tqtinterface/qt4/src/widgets/tqmenubar.h @@ -60,7 +60,7 @@ class TQ_EXPORT TQMenuBar : public TQFrame, public TQMenuData Q_PROPERTY( bool defaultUp READ isDefaultUp WRITE setDefaultUp ) public: - TQMenuBar( TQWidget* tqparent=0, const char* name=0 ); + TQMenuBar( TQWidget* parent=0, const char* name=0 ); ~TQMenuBar(); void updateItem( int id ); diff --git a/tqtinterface/qt4/src/widgets/tqmenudata.cpp b/tqtinterface/qt4/src/widgets/tqmenudata.cpp index 2061254..925ed22 100644 --- a/tqtinterface/qt4/src/widgets/tqmenudata.cpp +++ b/tqtinterface/qt4/src/widgets/tqmenudata.cpp @@ -469,7 +469,7 @@ int TQMenuData::insertItem( const TQIconSet& icon, be displayed to the left of the text in the item. To look best when being highlighted as a menu item, the pixmap - should provide a tqmask (see TQPixmap::tqmask()). + should provide a mask (see TQPixmap::mask()). Returns the allocated menu identifier number (\a id if \a id >= 0). @@ -500,7 +500,7 @@ int TQMenuData::insertItem( const QPixmap &pixmap, receiver object. To look best when being highlighted as a menu item, the pixmap - should provide a tqmask (see TQPixmap::tqmask()). + should provide a mask (see TQPixmap::mask()). Returns the allocated menu identifier number (\a id if \a id >= 0). @@ -565,7 +565,7 @@ int TQMenuData::insertItem( const TQIconSet& icon, Inserts a menu item with text \a text, submenu \a popup, optional id \a id, and optional \a index position. - The \a popup must be deleted by the programmer or by its tqparent + The \a popup must be deleted by the programmer or by its parent widget. It is not deleted when this menu item is removed or when the menu is deleted. @@ -588,7 +588,7 @@ int TQMenuData::insertItem( const QString &text, TQPopupMenu *popup, popup, optional id \a id, and optional \a index position. The icon will be displayed to the left of the text in the item. - The \a popup must be deleted by the programmer or by its tqparent + The \a popup must be deleted by the programmer or by its parent widget. It is not deleted when this menu item is removed or when the menu is deleted. @@ -611,7 +611,7 @@ int TQMenuData::insertItem( const TQIconSet& icon, optional \a index position. To look best when being highlighted as a menu item, the pixmap - should provide a tqmask (see TQPixmap::tqmask()). + should provide a mask (see TQPixmap::mask()). Returns the allocated menu identifier number (\a id if \a id >= 0). @@ -648,7 +648,7 @@ int TQMenuData::insertItem( const TQIconSet& icon, Inserts a menu item with pixmap \a pixmap, submenu \a popup, optional id \a id, and optional \a index position. - The \a popup must be deleted by the programmer or by its tqparent + The \a popup must be deleted by the programmer or by its parent widget. It is not deleted when this menu item is removed or when the menu is deleted. @@ -671,7 +671,7 @@ int TQMenuData::insertItem( const QPixmap &pixmap, TQPopupMenu *popup, popup, optional id \a id, and optional \a index position. The icon will be displayed to the left of the pixmap in the item. - The \a popup must be deleted by the programmer or by its tqparent + The \a popup must be deleted by the programmer or by its parent widget. It is not deleted when this menu item is removed or when the menu is deleted. @@ -801,9 +801,9 @@ int TQMenuData::insertSeparator( int index ) void TQMenuData::removeItem( int id ) { - TQMenuData *tqparent; - if ( findItem( id, &tqparent ) ) - tqparent->removeItemAt(tqparent->indexOf(id)); + TQMenuData *parent; + if ( findItem( id, &parent ) ) + parent->removeItemAt(parent->indexOf(id)); } /*! @@ -926,11 +926,11 @@ TQKeySequence TQMenuData::accel( int id ) const void TQMenuData::setAccel( const TQKeySequence& key, int id ) { - TQMenuData *tqparent; - TQMenuItem *mi = findItem( id, &tqparent ); + TQMenuData *parent; + TQMenuItem *mi = findItem( id, &parent ); if ( mi ) { mi->accel_key = key; - tqparent->menuContentsChanged(); + parent->menuContentsChanged(); } } @@ -1012,8 +1012,8 @@ TQPixmap *TQMenuData::pixmap( int id ) const void TQMenuData::changeItem( int id, const TQString &text ) { - TQMenuData *tqparent; - TQMenuItem *mi = findItem( id, &tqparent ); + TQMenuData *parent; + TQMenuItem *mi = findItem( id, &parent ); if ( mi ) { // item found if ( mi->text_data == text ) // same string return; @@ -1026,7 +1026,7 @@ void TQMenuData::changeItem( int id, const TQString &text ) if ( !mi->accel_key && text.find( '\t' ) != -1 ) mi->accel_key = TQt::Key_unknown; #endif - tqparent->menuContentsChanged(); + parent->menuContentsChanged(); } } @@ -1041,8 +1041,8 @@ void TQMenuData::changeItem( int id, const TQString &text ) void TQMenuData::changeItem( int id, const TQPixmap &pixmap ) { - TQMenuData *tqparent; - TQMenuItem *mi = findItem( id, &tqparent ); + TQMenuData *parent; + TQMenuItem *mi = findItem( id, &parent ); if ( mi ) { // item found register TQPixmap *i = mi->pixmap_data; bool fast_refresh = i != 0 && @@ -1057,9 +1057,9 @@ void TQMenuData::changeItem( int id, const TQPixmap &pixmap ) mi->pixmap_data = 0; delete i; // old mi->pixmap_data, could be &pixmap if ( fast_refresh ) - tqparent->updateItem( id ); + parent->updateItem( id ); else - tqparent->menuContentsChanged(); + parent->menuContentsChanged(); } } @@ -1103,8 +1103,8 @@ void TQMenuData::changeItem( int id, const TQIconSet &icon, const TQPixmap &pixm void TQMenuData::changeItemIconSet( int id, const TQIconSet &icon ) { - TQMenuData *tqparent; - TQMenuItem *mi = findItem( id, &tqparent ); + TQMenuData *parent; + TQMenuItem *mi = findItem( id, &parent ); if ( mi ) { // item found register TQIconSet *i = mi->iconset_data; bool fast_refresh = i != 0; @@ -1114,9 +1114,9 @@ void TQMenuData::changeItemIconSet( int id, const TQIconSet &icon ) mi->iconset_data = 0; delete i; // old mi->iconset_data, could be &icon if ( fast_refresh ) - tqparent->updateItem( id ); + parent->updateItem( id ); else - tqparent->menuContentsChanged(); + parent->menuContentsChanged(); } } @@ -1143,15 +1143,15 @@ bool TQMenuData::isItemEnabled( int id ) const void TQMenuData::setItemEnabled( int id, bool enable ) { - TQMenuData *tqparent; - TQMenuItem *mi = findItem( id, &tqparent ); + TQMenuData *parent; + TQMenuItem *mi = findItem( id, &parent ); if ( mi && (bool)mi->is_enabled != enable ) { mi->is_enabled = enable; #if !defined(TQT_NO_ACCEL) && !defined(TQT_NO_POPUPMENU) if ( mi->popup() ) mi->popup()->enableAccel( enable ); #endif - tqparent->menuStateChanged(); + parent->menuStateChanged(); } } @@ -1190,15 +1190,15 @@ bool TQMenuData::isItemChecked( int id ) const void TQMenuData::setItemChecked( int id, bool check ) { - TQMenuData *tqparent; - TQMenuItem *mi = findItem( id, &tqparent ); + TQMenuData *parent; + TQMenuItem *mi = findItem( id, &parent ); if ( mi && (bool)mi->is_checked != check ) { mi->is_checked = check; #ifndef TQT_NO_POPUPMENU - if ( tqparent->isPopupMenu && !((TQPopupMenu *)tqparent)->isCheckable() ) - ((TQPopupMenu *)tqparent)->setCheckable( TRUE ); + if ( parent->isPopupMenu && !((TQPopupMenu *)parent)->isCheckable() ) + ((TQPopupMenu *)parent)->setCheckable( TRUE ); #endif - tqparent->menuStateChanged(); + parent->menuStateChanged(); } } @@ -1224,11 +1224,11 @@ bool TQMenuData::isItemVisible( int id ) const void TQMenuData::setItemVisible( int id, bool visible ) { - TQMenuData *tqparent; - TQMenuItem *mi = findItem( id, &tqparent ); + TQMenuData *parent; + TQMenuItem *mi = findItem( id, &parent ); if ( mi && (bool)mi->is_visible != visible ) { mi->is_visible = visible; - tqparent->menuContentsChanged(); + parent->menuContentsChanged(); } } @@ -1255,8 +1255,8 @@ TQMenuItem *TQMenuData::findItem( int id ) const \overload Returns the menu item with identifier \a id, or 0 if there is no - item with this identifier. Changes \a *tqparent to point to the - tqparent of the return value. + item with this identifier. Changes \a *parent to point to the + parent of the return value. Note that TQMenuItem is an internal class, and that you should not need to call this function. Use the higher level functions like @@ -1266,10 +1266,10 @@ TQMenuItem *TQMenuData::findItem( int id ) const \sa indexOf() */ -TQMenuItem * TQMenuData::findItem( int id, TQMenuData ** tqparent ) const +TQMenuItem * TQMenuData::findItem( int id, TQMenuData ** parent ) const { - if ( tqparent ) - *tqparent = (TQMenuData *)this; // ### + if ( parent ) + *parent = (TQMenuData *)this; // ### if ( id == -1 ) // bad identifier return 0; @@ -1288,7 +1288,7 @@ TQMenuItem * TQMenuData::findItem( int id, TQMenuData ** tqparent ) const TQPopupMenu *p = mi->popup_menu; if (!p->avoid_circularity) { p->avoid_circularity = 1; - mi = mi->popup_menu->findItem( id, tqparent ); + mi = mi->popup_menu->findItem( id, parent ); p->avoid_circularity = 0; if ( mi ) // found item return mi; @@ -1441,11 +1441,11 @@ bool TQMenuData::disconnectItem( int id, const TQT_BASE_OBJECT_NAME *receiver, void TQMenuData::setWhatsThis( int id, const TQString& text ) { - TQMenuData *tqparent; - TQMenuItem *mi = findItem( id, &tqparent ); + TQMenuData *parent; + TQMenuItem *mi = findItem( id, &parent ); if ( mi ) { mi->setWhatsThis( text ); - tqparent->menuContentsChanged(); + parent->menuContentsChanged(); } } diff --git a/tqtinterface/qt4/src/widgets/tqmenudata.h b/tqtinterface/qt4/src/widgets/tqmenudata.h index 70f7a43..bc5095f 100644 --- a/tqtinterface/qt4/src/widgets/tqmenudata.h +++ b/tqtinterface/qt4/src/widgets/tqmenudata.h @@ -246,7 +246,7 @@ public: int itemParameter( int id ) const; TQMenuItem *findItem( int id ) const; - TQMenuItem *findItem( int id, TQMenuData ** tqparent ) const; + TQMenuItem *findItem( int id, TQMenuData ** parent ) const; TQMenuItem * findPopup( TQPopupMenu *, int *index = 0 ); virtual void activateItemAt( int index ); diff --git a/tqtinterface/qt4/src/widgets/tqmultilineedit.cpp b/tqtinterface/qt4/src/widgets/tqmultilineedit.cpp index 1dba7ed..4a928a8 100644 --- a/tqtinterface/qt4/src/widgets/tqmultilineedit.cpp +++ b/tqtinterface/qt4/src/widgets/tqmultilineedit.cpp @@ -130,12 +130,12 @@ class TQMultiLineEditData /*! - Constructs a new, empty, TQMultiLineEdit with tqparent \a tqparent called + Constructs a new, empty, TQMultiLineEdit with parent \a parent called \a name. */ -TQMultiLineEdit::TQMultiLineEdit( TQWidget *tqparent , const char *name ) - : TQTextEdit( tqparent, name ) +TQMultiLineEdit::TQMultiLineEdit( TQWidget *parent , const char *name ) + : TQTextEdit( parent, name ) { d = new TQMultiLineEditData; setTextFormat( TQt::PlainText ); diff --git a/tqtinterface/qt4/src/widgets/tqmultilineedit.h b/tqtinterface/qt4/src/widgets/tqmultilineedit.h index f382f78..dc7a669 100644 --- a/tqtinterface/qt4/src/widgets/tqmultilineedit.h +++ b/tqtinterface/qt4/src/widgets/tqmultilineedit.h @@ -62,7 +62,7 @@ class TQ_EXPORT TQMultiLineEdit : public TQTextEdit Q_PROPERTY( bool edited READ edited WRITE setEdited DESIGNABLE false ) public: - TQMultiLineEdit( TQWidget* tqparent=0, const char* name=0 ); + TQMultiLineEdit( TQWidget* parent=0, const char* name=0 ); ~TQMultiLineEdit(); TQString textLine( int line ) const; diff --git a/tqtinterface/qt4/src/widgets/tqpopupmenu.cpp b/tqtinterface/qt4/src/widgets/tqpopupmenu.cpp index a96b67d..b528c8b 100644 --- a/tqtinterface/qt4/src/widgets/tqpopupmenu.cpp +++ b/tqtinterface/qt4/src/widgets/tqpopupmenu.cpp @@ -281,15 +281,15 @@ public: static TQPopupMenu* active_popup_menu = 0; /*! - Constructs a popup menu called \a name with tqparent \a tqparent. + Constructs a popup menu called \a name with parent \a parent. - Although a popup menu is always a top-level widget, if a tqparent is - passed the popup menu will be deleted when that tqparent is + Although a popup menu is always a top-level widget, if a parent is + passed the popup menu will be deleted when that parent is destroyed (as with any other TQObject). */ -TQPopupMenu::TQPopupMenu( TQWidget *tqparent, const char *name ) - : TQFrame( tqparent, name, (WFlags)WType_Popup | TQt::WNoAutoErase ) +TQPopupMenu::TQPopupMenu( TQWidget *parent, const char *name ) + : TQFrame( parent, name, (WFlags)WType_Popup | TQt::WNoAutoErase ) { d = new TQPopupMenuPrivate; d->scroll.scrollableSize = d->scroll.topScrollableIndex = 0; @@ -599,13 +599,13 @@ void TQPopupMenu::popup( const TQPoint &pos, int indexAtPoint ) x11SetWindowTransient( static_cast< TQPopupMenu* >( parentMenu )); if( !parentMenu ) { // hackish ... try to find the main window related to this popup - TQWidget* tqparent = parentWidget() ? parentWidget()->tqtopLevelWidget() : NULL; - if( tqparent == NULL ) - tqparent = TQApplication::widgetAt( pos ); - if( tqparent == NULL ) - tqparent = TQT_TQWIDGET(tqApp->activeWindow()); - if( tqparent != NULL ) - x11SetWindowTransient( tqparent ); + TQWidget* parent = parentWidget() ? parentWidget()->tqtopLevelWidget() : NULL; + if( parent == NULL ) + parent = TQApplication::widgetAt( pos ); + if( parent == NULL ) + parent = TQT_TQWIDGET(tqApp->activeWindow()); + if( parent != NULL ) + x11SetWindowTransient( parent ); } #endif @@ -1267,33 +1267,33 @@ TQSize TQPopupMenu::updateSize(bool force_update, bool do_resize) #ifndef TQT_NO_ACCEL /*! \internal - The \a tqparent is 0 when it is updated when a menu item has + The \a parent is 0 when it is updated when a menu item has changed a state, or it is something else if called from the menu bar. */ -void TQPopupMenu::updateAccel( TQWidget *tqparent ) +void TQPopupMenu::updateAccel( TQWidget *parent ) { TQMenuItemListIt it(*mitems); register TQMenuItem *mi; - if ( tqparent ) { + if ( parent ) { delete autoaccel; autoaccel = 0; } else if ( !autoaccel ) { - // we have no tqparent. Rather than ignoring any accelerators we try to find this popup's main window + // we have no parent. Rather than ignoring any accelerators we try to find this popup's main window if ( tornOff ) { - tqparent = this; + parent = this; } else { TQWidget *w = (TQWidget *) this; - tqparent = w->parentWidget(); - while ( (!w->testWFlags(TQt::WType_TopLevel) || !w->testWFlags(WType_Popup)) && tqparent ) { - w = tqparent; - tqparent = tqparent->parentWidget(); + parent = w->parentWidget(); + while ( (!w->testWFlags(TQt::WType_TopLevel) || !w->testWFlags(WType_Popup)) && parent ) { + w = parent; + parent = parent->parentWidget(); } } } - if ( tqparent == 0 && autoaccel == 0 ) + if ( parent == 0 && autoaccel == 0 ) return; if ( autoaccel ) // build it from scratch @@ -1301,7 +1301,7 @@ void TQPopupMenu::updateAccel( TQWidget *tqparent ) else { // create an autoaccel in any case, even if we might not use // it immediately. Maybe the user needs it later. - autoaccel = new TQAccel( tqparent, this ); + autoaccel = new TQAccel( parent, this ); connect( autoaccel, TQT_SIGNAL(activated(int)), TQT_SLOT(accelActivated(int)) ); connect( autoaccel, TQT_SIGNAL(activatedAmbiguously(int)), @@ -1342,12 +1342,12 @@ void TQPopupMenu::updateAccel( TQWidget *tqparent ) badSize = TRUE; } } - if ( mi->popup() && tqparent ) { // call recursively + if ( mi->popup() && parent ) { // call recursively // reuse TQPopupMenu* popup = mi->popup(); if (!popup->avoid_circularity) { popup->avoid_circularity = 1; - popup->updateAccel( tqparent ); + popup->updateAccel( parent ); popup->avoid_circularity = 0; } } diff --git a/tqtinterface/qt4/src/widgets/tqpopupmenu.h b/tqtinterface/qt4/src/widgets/tqpopupmenu.h index 8863cd5..d7290f4 100644 --- a/tqtinterface/qt4/src/widgets/tqpopupmenu.h +++ b/tqtinterface/qt4/src/widgets/tqpopupmenu.h @@ -55,7 +55,7 @@ class TQ_EXPORT TQPopupMenu : public TQFrame, public TQMenuData TQ_OBJECT Q_PROPERTY( bool checkable READ isCheckable WRITE setCheckable ) public: - TQPopupMenu( TQWidget* tqparent=0, const char* name=0 ); + TQPopupMenu( TQWidget* parent=0, const char* name=0 ); ~TQPopupMenu(); void popup( const TQPoint & pos, int indexAtPoint = -1 ); // open @@ -88,7 +88,7 @@ public: Q_SIGNALS: void activated( int itemId ); void highlighted( int itemId ); - void activatedRedirect( int itemId ); // to tqparent menu + void activatedRedirect( int itemId ); // to parent menu void highlightedRedirect( int itemId ); void aboutToShow(); void aboutToHide(); diff --git a/tqtinterface/qt4/src/widgets/tqprogressbar.cpp b/tqtinterface/qt4/src/widgets/tqprogressbar.cpp index e00d12d..007b2e8 100644 --- a/tqtinterface/qt4/src/widgets/tqprogressbar.cpp +++ b/tqtinterface/qt4/src/widgets/tqprogressbar.cpp @@ -88,14 +88,14 @@ The total number of steps is set to 100 by default. - The \a tqparent, \a name and widget flags, \a f, are passed on to + The \a parent, \a name and widget flags, \a f, are passed on to the TQFrame::TQFrame() constructor. \sa setTotalSteps() */ -TQProgressBar::TQProgressBar( TQWidget *tqparent, const char *name, WFlags f ) - : TQFrame( tqparent, name, f | TQt::WNoAutoErase ), +TQProgressBar::TQProgressBar( TQWidget *parent, const char *name, WFlags f ) + : TQFrame( parent, name, f | TQt::WNoAutoErase ), total_steps( 100 ), progress_val( -1 ), percentage( -1 ), @@ -118,15 +118,15 @@ TQProgressBar::TQProgressBar( TQWidget *tqparent, const char *name, WFlags f ) would be 50. Before examining the first file, call setProgress(0); call setProgress(50) after examining the last file. - The \a tqparent, \a name and widget flags, \a f, are passed to the + The \a parent, \a name and widget flags, \a f, are passed to the TQFrame::TQFrame() constructor. \sa setTotalSteps(), setProgress() */ TQProgressBar::TQProgressBar( int totalSteps, - TQWidget *tqparent, const char *name, WFlags f ) - : TQFrame( tqparent, name, f | TQt::WNoAutoErase ), + TQWidget *parent, const char *name, WFlags f ) + : TQFrame( parent, name, f | TQt::WNoAutoErase ), total_steps( totalSteps ), progress_val( -1 ), percentage( -1 ), diff --git a/tqtinterface/qt4/src/widgets/tqprogressbar.h b/tqtinterface/qt4/src/widgets/tqprogressbar.h index 7b9d191..a380bc0 100644 --- a/tqtinterface/qt4/src/widgets/tqprogressbar.h +++ b/tqtinterface/qt4/src/widgets/tqprogressbar.h @@ -63,8 +63,8 @@ class TQ_EXPORT TQProgressBar : public TQFrame Q_PROPERTY( bool percentageVisible READ percentageVisible WRITE setPercentageVisible ) public: - TQProgressBar( TQWidget* tqparent=0, const char* name=0, WFlags f=0 ); - TQProgressBar( int totalSteps, TQWidget* tqparent=0, const char* name=0, WFlags f=0 ); + TQProgressBar( TQWidget* parent=0, const char* name=0, WFlags f=0 ); + TQProgressBar( int totalSteps, TQWidget* parent=0, const char* name=0, WFlags f=0 ); int totalSteps() const; int progress() const; diff --git a/tqtinterface/qt4/src/widgets/tqpushbutton.cpp b/tqtinterface/qt4/src/widgets/tqpushbutton.cpp index e8583ff..aecc6c7 100644 --- a/tqtinterface/qt4/src/widgets/tqpushbutton.cpp +++ b/tqtinterface/qt4/src/widgets/tqpushbutton.cpp @@ -169,7 +169,7 @@ may have a slightly larger size hint. This property's default is TRUE for buttons that have a TQDialog - tqparent; otherwise it defaults to FALSE. + parent; otherwise it defaults to FALSE. See the \l default property for details of how \l default and auto-default interact. @@ -274,24 +274,24 @@ public: /*! Constructs a push button with no text. - The \a tqparent and \a name arguments are sent on to the TQWidget + The \a parent and \a name arguments are sent on to the TQWidget constructor. */ -TQPushButton::TQPushButton( TQWidget *tqparent, const char *name ) - : TQButton( tqparent, name ) +TQPushButton::TQPushButton( TQWidget *parent, const char *name ) + : TQButton( parent, name ) { init(); } /*! - Constructs a push button called \a name with the tqparent \a tqparent + Constructs a push button called \a name with the parent \a parent and the text \a text. */ -TQPushButton::TQPushButton( const TQString &text, TQWidget *tqparent, +TQPushButton::TQPushButton( const TQString &text, TQWidget *parent, const char *name ) - : TQButton( tqparent, name ) + : TQButton( parent, name ) { init(); setText( text ); @@ -304,13 +304,13 @@ TQPushButton::TQPushButton( const TQString &text, TQWidget *tqparent, Note that you can also pass a TQPixmap object as an icon (thanks to the implicit type conversion provided by C++). - The \a tqparent and \a name arguments are sent to the TQWidget + The \a parent and \a name arguments are sent to the TQWidget constructor. */ #ifndef TQT_NO_ICONSET TQPushButton::TQPushButton( const TQIconSet& icon, const TQString &text, - TQWidget *tqparent, const char *name ) - : TQButton( tqparent, name ) + TQWidget *parent, const char *name ) + : TQButton( parent, name ) { init(); setText( text ); diff --git a/tqtinterface/qt4/src/widgets/tqpushbutton.h b/tqtinterface/qt4/src/widgets/tqpushbutton.h index 92a375d..3af2d76 100644 --- a/tqtinterface/qt4/src/widgets/tqpushbutton.h +++ b/tqtinterface/qt4/src/widgets/tqpushbutton.h @@ -65,10 +65,10 @@ class TQ_EXPORT TQPushButton : public TQButton TQ_OVERRIDE( bool autoMask DESIGNABLE true SCRIPTABLE true ) public: - TQPushButton( TQWidget *tqparent, const char* name=0 ); - TQPushButton( const TQString &text, TQWidget *tqparent, const char* name=0 ); + TQPushButton( TQWidget *parent, const char* name=0 ); + TQPushButton( const TQString &text, TQWidget *parent, const char* name=0 ); #ifndef TQT_NO_ICONSET - TQPushButton( const TQIconSet& icon, const TQString &text, TQWidget *tqparent, const char* name=0 ); + TQPushButton( const TQIconSet& icon, const TQString &text, TQWidget *parent, const char* name=0 ); #endif ~TQPushButton(); diff --git a/tqtinterface/qt4/src/widgets/tqradiobutton.cpp b/tqtinterface/qt4/src/widgets/tqradiobutton.cpp index 13ca866..1c24676 100644 --- a/tqtinterface/qt4/src/widgets/tqradiobutton.cpp +++ b/tqtinterface/qt4/src/widgets/tqradiobutton.cpp @@ -104,12 +104,12 @@ /*! Constructs a radio button with no text. - The \a tqparent and \a name arguments are sent on to the TQWidget + The \a parent and \a name arguments are sent on to the TQWidget constructor. */ -TQRadioButton::TQRadioButton( TQWidget *tqparent, const char *name ) - : TQButton( tqparent, name, TQt::WNoAutoErase | TQt::WMouseNoMask ) +TQRadioButton::TQRadioButton( TQWidget *parent, const char *name ) + : TQButton( parent, name, TQt::WNoAutoErase | TQt::WMouseNoMask ) { init(); } @@ -117,13 +117,13 @@ TQRadioButton::TQRadioButton( TQWidget *tqparent, const char *name ) /*! Constructs a radio button with the text \a text. - The \a tqparent and \a name arguments are sent on to the TQWidget + The \a parent and \a name arguments are sent on to the TQWidget constructor. */ -TQRadioButton::TQRadioButton( const TQString &text, TQWidget *tqparent, +TQRadioButton::TQRadioButton( const TQString &text, TQWidget *parent, const char *name ) - : TQButton( tqparent, name, TQt::WNoAutoErase | TQt::WMouseNoMask ) + : TQButton( parent, name, TQt::WNoAutoErase | TQt::WMouseNoMask ) { init(); setText( text ); diff --git a/tqtinterface/qt4/src/widgets/tqradiobutton.h b/tqtinterface/qt4/src/widgets/tqradiobutton.h index 50f9927..1a27850 100644 --- a/tqtinterface/qt4/src/widgets/tqradiobutton.h +++ b/tqtinterface/qt4/src/widgets/tqradiobutton.h @@ -55,8 +55,8 @@ class TQ_EXPORT TQRadioButton : public TQButton TQ_OVERRIDE( bool autoMask DESIGNABLE true SCRIPTABLE true ) public: - TQRadioButton( TQWidget *tqparent, const char* name=0 ); - TQRadioButton( const TQString &text, TQWidget *tqparent, const char* name=0 ); + TQRadioButton( TQWidget *parent, const char* name=0 ); + TQRadioButton( const TQString &text, TQWidget *parent, const char* name=0 ); bool isChecked() const; diff --git a/tqtinterface/qt4/src/widgets/tqrangecontrol.h b/tqtinterface/qt4/src/widgets/tqrangecontrol.h index ddda65d..d1fb4d4 100644 --- a/tqtinterface/qt4/src/widgets/tqrangecontrol.h +++ b/tqtinterface/qt4/src/widgets/tqrangecontrol.h @@ -132,7 +132,7 @@ class TQ_EXPORT TQSpinWidget : public TQWidget Q_OBJECT TQ_OBJECT public: - TQSpinWidget( TQWidget* tqparent=0, const char* name=0 ); + TQSpinWidget( TQWidget* parent=0, const char* name=0 ); ~TQSpinWidget(); void setEditWidget( TQWidget * widget ); diff --git a/tqtinterface/qt4/src/widgets/tqscrollbar.cpp b/tqtinterface/qt4/src/widgets/tqscrollbar.cpp index de8c74c..959ed28 100644 --- a/tqtinterface/qt4/src/widgets/tqscrollbar.cpp +++ b/tqtinterface/qt4/src/widgets/tqscrollbar.cpp @@ -220,7 +220,7 @@ static const int repeatTime = 50; /*! Constructs a vertical scroll bar. - The \a tqparent and \a name arguments are sent on to the TQWidget + The \a parent and \a name arguments are sent on to the TQWidget constructor. The \c minValue defaults to 0, the \c maxValue to 99, with a \c @@ -228,8 +228,8 @@ static const int repeatTime = 50; \c value of 0. */ -TQScrollBar::TQScrollBar( TQWidget *tqparent, const char *name ) - : TQWidget( tqparent, name ), orient( Qt::Vertical ) +TQScrollBar::TQScrollBar( TQWidget *parent, const char *name ) + : TQWidget( parent, name ), orient( Qt::Vertical ) { init(); } @@ -239,7 +239,7 @@ TQScrollBar::TQScrollBar( TQWidget *tqparent, const char *name ) The \a orientation must be \c Qt::Vertical or \c Qt::Horizontal. - The \a tqparent and \a name arguments are sent on to the TQWidget + The \a parent and \a name arguments are sent on to the TQWidget constructor. The \c minValue defaults to 0, the \c maxValue to 99, with a \c @@ -247,9 +247,9 @@ TQScrollBar::TQScrollBar( TQWidget *tqparent, const char *name ) \c value of 0. */ -TQScrollBar::TQScrollBar( Qt::Orientation orientation, TQWidget *tqparent, +TQScrollBar::TQScrollBar( Qt::Orientation orientation, TQWidget *parent, const char *name ) - : TQWidget( tqparent, name ), orient( orientation ) + : TQWidget( parent, name ), orient( orientation ) { init(); } @@ -264,14 +264,14 @@ TQScrollBar::TQScrollBar( Qt::Orientation orientation, TQWidget *tqparent, If \a orientation is \c Vertical the scroll bar is vertical and if it is \c Horizontal the scroll bar is horizontal. - The \a tqparent and \a name arguments are sent on to the TQWidget + The \a parent and \a name arguments are sent on to the TQWidget constructor. */ TQScrollBar::TQScrollBar( int minValue, int maxValue, int lineStep, int pageStep, int value, Qt::Orientation orientation, - TQWidget *tqparent, const char *name ) - : TQWidget( tqparent, name ), + TQWidget *parent, const char *name ) + : TQWidget( parent, name ), TQRangeControl( minValue, maxValue, lineStep, pageStep, value ), orient( orientation ) { diff --git a/tqtinterface/qt4/src/widgets/tqscrollbar.h b/tqtinterface/qt4/src/widgets/tqscrollbar.h index cf48a05..2d634bd 100644 --- a/tqtinterface/qt4/src/widgets/tqscrollbar.h +++ b/tqtinterface/qt4/src/widgets/tqscrollbar.h @@ -64,10 +64,10 @@ class TQ_EXPORT TQScrollBar : public TQWidget, public TQRangeControl Q_PROPERTY( Orientation orientation READ orientation WRITE setOrientation ) public: - TQScrollBar( TQWidget *tqparent, const char* name = 0 ); - TQScrollBar( Qt::Orientation, TQWidget *tqparent, const char* name = 0 ); + TQScrollBar( TQWidget *parent, const char* name = 0 ); + TQScrollBar( Qt::Orientation, TQWidget *parent, const char* name = 0 ); TQScrollBar( int minValue, int maxValue, int lineStep, int pageStep, - int value, Qt::Orientation, TQWidget *tqparent, const char* name = 0 ); + int value, Qt::Orientation, TQWidget *parent, const char* name = 0 ); ~TQScrollBar(); virtual void setOrientation( Qt::Orientation ); diff --git a/tqtinterface/qt4/src/widgets/tqscrollview.cpp b/tqtinterface/qt4/src/widgets/tqscrollview.cpp index dba2bc0..f2dbfd6 100644 --- a/tqtinterface/qt4/src/widgets/tqscrollview.cpp +++ b/tqtinterface/qt4/src/widgets/tqscrollview.cpp @@ -104,8 +104,8 @@ class TQViewportWidget : public TQWidget TQ_OBJECT public: - TQViewportWidget( TQScrollView* tqparent=0, const char* name=0, WFlags f = 0 ) - : TQWidget( tqparent, name, f ) {} + TQViewportWidget( TQScrollView* parent=0, const char* name=0, WFlags f = 0 ) + : TQWidget( parent, name, f ) {} }; class TQClipperWidget : public TQWidget @@ -113,26 +113,26 @@ class TQClipperWidget : public TQWidget TQ_OBJECT public: - TQClipperWidget( TQWidget * tqparent=0, const char * name=0, WFlags f=0 ) - : TQWidget ( tqparent,name,f) {} + TQClipperWidget( TQWidget * parent=0, const char * name=0, WFlags f=0 ) + : TQWidget ( parent,name,f) {} }; #include "tqscrollview.tqmoc" class TQScrollViewData { public: - TQScrollViewData(TQScrollView* tqparent, int vpwflags) : - hbar( new TQScrollBar( Qt::Horizontal, tqparent, "qt_hbar" ) ), - vbar( new TQScrollBar( Qt::Vertical, tqparent, "qt_vbar" ) ), - viewport( new TQViewportWidget( tqparent, "qt_viewport", (WFlags)vpwflags ) ), + TQScrollViewData(TQScrollView* parent, int vpwflags) : + hbar( new TQScrollBar( Qt::Horizontal, parent, "qt_hbar" ) ), + vbar( new TQScrollBar( Qt::Vertical, parent, "qt_vbar" ) ), + viewport( new TQViewportWidget( parent, "qt_viewport", (WFlags)vpwflags ) ), clipped_viewport( 0 ), flags( vpwflags ), vx( 0 ), vy( 0 ), vwidth( 1 ), vheight( 1 ), #ifndef TQT_NO_DRAGANDDROP - autoscroll_timer( tqparent, "scrollview autoscroll timer" ), + autoscroll_timer( parent, "scrollview autoscroll timer" ), drag_autoscroll( TRUE ), #endif - scrollbar_timer( tqparent, "scrollview scrollbar timer" ), + scrollbar_timer( parent, "scrollview scrollbar timer" ), inresize( FALSE ), use_cached_size_hint( TRUE ) { l_marg = r_marg = t_marg = b_marg = 0; @@ -142,7 +142,7 @@ public: vMode = TQScrollView::Auto; hMode = TQScrollView::Auto; corner = 0; - defaultCorner = new TQWidget( tqparent, "qt_default_corner" ); + defaultCorner = new TQWidget( parent, "qt_default_corner" ); defaultCorner->hide(); vbar->setSteps( 20, 1/*set later*/ ); hbar->setSteps( 20, 1/*set later*/ ); @@ -473,7 +473,7 @@ void TQScrollViewData::viewportResized( int w, int h ) To enable drag-and-drop, you would setAcceptDrops(TRUE) on the TQScrollView (because drag-and-drop events propagate to the - tqparent). But to work out the logical position in the view, you + parent). But to work out the logical position in the view, you would need to map the drop co-ordinate from being relative to the TQScrollView to being relative to the contents; use the function viewportToContents() for this. @@ -571,16 +571,16 @@ void TQScrollViewData::viewportResized( int w, int h ) //#### is received /*! - Constructs a TQScrollView called \a name with tqparent \a tqparent and + Constructs a TQScrollView called \a name with parent \a parent and widget flags \a f. The widget flags \c WStaticContents, \c WNoAutoErase and \c WPaintClever are propagated to the viewport() widget. The other - widget flags are propagated to the tqparent constructor as usual. + widget flags are propagated to the parent constructor as usual. */ -TQScrollView::TQScrollView( TQWidget *tqparent, const char *name, WFlags f ) : - TQFrame( tqparent, name, f & (~TQt::WStaticContents) & (~TQt::WResizeNoErase) ) +TQScrollView::TQScrollView( TQWidget *parent, const char *name, WFlags f ) : + TQFrame( parent, name, f & (~TQt::WStaticContents) & (~TQt::WResizeNoErase) ) { WFlags flags = (WFlags)(TQt::WResizeNoErase | (f&TQt::WPaintClever) | (f&WRepaintNoErase) | (f&TQt::WStaticContents)); d = new TQScrollViewData( this, flags ); @@ -1304,7 +1304,7 @@ TQWidget* TQScrollView::cornerWidget() const destroyed unless you separately reparent the widget after setting some other corner widget (or 0). - Any \e newly set widget should have no current tqparent. + Any \e newly set widget should have no current parent. By default, no corner widget is present. diff --git a/tqtinterface/qt4/src/widgets/tqscrollview.h b/tqtinterface/qt4/src/widgets/tqscrollview.h index caa86bb..3f65776 100644 --- a/tqtinterface/qt4/src/widgets/tqscrollview.h +++ b/tqtinterface/qt4/src/widgets/tqscrollview.h @@ -68,7 +68,7 @@ class TQ_EXPORT TQScrollView : public TQFrame #endif public: - TQScrollView(TQWidget* tqparent=0, const char* name=0, WFlags f=0); + TQScrollView(TQWidget* parent=0, const char* name=0, WFlags f=0); ~TQScrollView(); enum ResizePolicy { Default, Manual, AutoOne, AutoOneFit }; diff --git a/tqtinterface/qt4/src/widgets/tqslider.cpp b/tqtinterface/qt4/src/widgets/tqslider.cpp index 4ba2515..38dd7cc 100644 --- a/tqtinterface/qt4/src/widgets/tqslider.cpp +++ b/tqtinterface/qt4/src/widgets/tqslider.cpp @@ -115,12 +115,12 @@ struct TQSliderPrivate /*! Constructs a vertical slider. - The \a tqparent and \a name arguments are sent on to the TQWidget + The \a parent and \a name arguments are sent on to the TQWidget constructor. */ -TQSlider::TQSlider( TQWidget *tqparent, const char *name ) - : TQWidget( tqparent, name ) +TQSlider::TQSlider( TQWidget *parent, const char *name ) + : TQWidget( parent, name ) { orient = Qt::Vertical; init(); @@ -131,12 +131,12 @@ TQSlider::TQSlider( TQWidget *tqparent, const char *name ) The \a orientation must be \l Qt::Vertical or \l Qt::Horizontal. - The \a tqparent and \a name arguments are sent on to the TQWidget + The \a parent and \a name arguments are sent on to the TQWidget constructor. */ -TQSlider::TQSlider( Qt::Orientation orientation, TQWidget *tqparent, const char *name ) - : TQWidget( tqparent, name ) +TQSlider::TQSlider( Qt::Orientation orientation, TQWidget *parent, const char *name ) + : TQWidget( parent, name ) { orient = orientation; init(); @@ -151,14 +151,14 @@ TQSlider::TQSlider( Qt::Orientation orientation, TQWidget *tqparent, const char If \a orientation is \c Qt::Vertical the slider is vertical and if it is \c Qt::Horizontal the slider is horizontal. - The \a tqparent and \a name arguments are sent on to the TQWidget + The \a parent and \a name arguments are sent on to the TQWidget constructor. */ TQSlider::TQSlider( int minValue, int maxValue, int pageStep, int value, Qt::Orientation orientation, - TQWidget *tqparent, const char *name ) - : TQWidget( tqparent, name ), + TQWidget *parent, const char *name ) + : TQWidget( parent, name ), TQRangeControl( minValue, maxValue, 1, pageStep, value ) { orient = orientation; diff --git a/tqtinterface/qt4/src/widgets/tqslider.h b/tqtinterface/qt4/src/widgets/tqslider.h index ac6177d..76191aa 100644 --- a/tqtinterface/qt4/src/widgets/tqslider.h +++ b/tqtinterface/qt4/src/widgets/tqslider.h @@ -71,10 +71,10 @@ public: enum TickSetting { NoMarks = 0, Above = 1, Left = Above, Below = 2, Right = Below, Both = 3 }; - TQSlider( TQWidget *tqparent, const char* name = 0 ); - TQSlider( Qt::Orientation, TQWidget *tqparent, const char* name = 0 ); + TQSlider( TQWidget *parent, const char* name = 0 ); + TQSlider( Qt::Orientation, TQWidget *parent, const char* name = 0 ); TQSlider( int minValue, int maxValue, int pageStep, int value, Qt::Orientation, - TQWidget *tqparent, const char* name = 0 ); + TQWidget *parent, const char* name = 0 ); ~TQSlider(); virtual void setOrientation( Qt::Orientation ); diff --git a/tqtinterface/qt4/src/widgets/tqspinbox.cpp b/tqtinterface/qt4/src/widgets/tqspinbox.cpp index 8ea1775..51cf8ed 100644 --- a/tqtinterface/qt4/src/widgets/tqspinbox.cpp +++ b/tqtinterface/qt4/src/widgets/tqspinbox.cpp @@ -227,13 +227,13 @@ TQValidator::State TQSpinBoxValidator::validate( TQString& str, int& pos ) const /*! Constructs a spin box with the default TQRangeControl range and - step values. It is called \a name and has tqparent \a tqparent. + step values. It is called \a name and has parent \a parent. \sa minValue(), maxValue(), setRange(), lineStep(), setSteps() */ -TQSpinBox::TQSpinBox( TQWidget * tqparent , const char *name ) - : TQWidget( tqparent, name, TQt::WNoAutoErase ), +TQSpinBox::TQSpinBox( TQWidget * parent , const char *name ) + : TQWidget( parent, name, TQt::WNoAutoErase ), TQRangeControl() { initSpinBox(); @@ -245,14 +245,14 @@ TQSpinBox::TQSpinBox( TQWidget * tqparent , const char *name ) maxValue inclusive, with step amount \a step. The value is initially set to \a minValue. - The spin box is called \a name and has tqparent \a tqparent. + The spin box is called \a name and has parent \a parent. \sa minValue(), maxValue(), setRange(), lineStep(), setSteps() */ -TQSpinBox::TQSpinBox( int minValue, int maxValue, int step, TQWidget* tqparent, +TQSpinBox::TQSpinBox( int minValue, int maxValue, int step, TQWidget* parent, const char* name ) - : TQWidget( tqparent, name, TQt::WNoAutoErase ), + : TQWidget( parent, name, TQt::WNoAutoErase ), TQRangeControl( minValue, maxValue, step, step, minValue ) { initSpinBox(); @@ -356,7 +356,7 @@ TQString TQSpinBox::cleanText() const automatically choose a good margin width, you can set up the spin box like this: \code - TQSpinBox marginBox( -1, 20, 1, tqparent, "marginBox" ); + TQSpinBox marginBox( -1, 20, 1, parent, "marginBox" ); marginBox->setSuffix( " mm" ); marginBox->setSpecialValueText( "Auto" ); \endcode diff --git a/tqtinterface/qt4/src/widgets/tqspinbox.h b/tqtinterface/qt4/src/widgets/tqspinbox.h index 2e18cef..1013c11 100644 --- a/tqtinterface/qt4/src/widgets/tqspinbox.h +++ b/tqtinterface/qt4/src/widgets/tqspinbox.h @@ -70,9 +70,9 @@ class TQ_EXPORT TQSpinBox: public TQWidget, public TQRangeControl Q_PROPERTY( int value READ value WRITE setValue ) public: - TQSpinBox( TQWidget* tqparent=0, const char* name=0 ); + TQSpinBox( TQWidget* parent=0, const char* name=0 ); TQSpinBox( int minValue, int maxValue, int step = 1, - TQWidget* tqparent=0, const char* name=0 ); + TQWidget* parent=0, const char* name=0 ); ~TQSpinBox(); TQString text() const; diff --git a/tqtinterface/qt4/src/widgets/tqspinwidget.cpp b/tqtinterface/qt4/src/widgets/tqspinwidget.cpp index f035c13..b134180 100644 --- a/tqtinterface/qt4/src/widgets/tqspinwidget.cpp +++ b/tqtinterface/qt4/src/widgets/tqspinwidget.cpp @@ -78,13 +78,13 @@ public: \internal - Constructs an empty range control widget with tqparent \a tqparent + Constructs an empty range control widget with parent \a parent called \a name. */ -TQSpinWidget::TQSpinWidget( TQWidget* tqparent, const char* name ) - : TQWidget( tqparent, name ) +TQSpinWidget::TQSpinWidget( TQWidget* parent, const char* name ) + : TQWidget( parent, name ) { d = new TQSpinWidgetPrivate(); connect( &d->auRepTimer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( timerDone() ) ); diff --git a/tqtinterface/qt4/src/widgets/tqsplitter.cpp b/tqtinterface/qt4/src/widgets/tqsplitter.cpp index b5a159b..18cf11c 100644 --- a/tqtinterface/qt4/src/widgets/tqsplitter.cpp +++ b/tqtinterface/qt4/src/widgets/tqsplitter.cpp @@ -86,11 +86,11 @@ static TQPoint bottomRight( TQWidget *w ) } } -TQSplitterHandle::TQSplitterHandle( Qt::Orientation o, TQSplitter *tqparent, +TQSplitterHandle::TQSplitterHandle( Qt::Orientation o, TQSplitter *parent, const char * name ) - : TQWidget( tqparent, name ) + : TQWidget( parent, name ) { - s = tqparent; + s = parent; setOrientation( o ); } @@ -172,7 +172,7 @@ TQCOORD TQSplitterLayoutStruct::getSizer( Qt::Orientation orient ) To show a TQListBox, a TQListView and a TQTextEdit side by side: \code - TQSplitter *split = new TQSplitter( tqparent ); + TQSplitter *split = new TQSplitter( parent ); TQListBox *lb = new TQListBox( split ); TQListView *lv = new TQListView( split ); TQTextEdit *ed = new TQTextEdit( split ); @@ -209,12 +209,12 @@ TQCOORD TQSplitterLayoutStruct::getSizer( Qt::Orientation orient ) /*! - Constructs a horizontal splitter with the \a tqparent and \a name + Constructs a horizontal splitter with the \a parent and \a name arguments being passed on to the TQFrame constructor. */ -TQSplitter::TQSplitter( TQWidget *tqparent, const char *name ) - : TQFrame( tqparent, name, TQt::WPaintUnclipped ) +TQSplitter::TQSplitter( TQWidget *parent, const char *name ) + : TQFrame( parent, name, TQt::WPaintUnclipped ) { orient = Qt::Horizontal; init(); @@ -222,12 +222,12 @@ TQSplitter::TQSplitter( TQWidget *tqparent, const char *name ) /*! - Constructs a splitter with orientation \a o with the \a tqparent and + Constructs a splitter with orientation \a o with the \a parent and \a name arguments being passed on to the TQFrame constructor. */ -TQSplitter::TQSplitter( Qt::Orientation o, TQWidget *tqparent, const char *name ) - : TQFrame( tqparent, name, TQt::WPaintUnclipped ) +TQSplitter::TQSplitter( Qt::Orientation o, TQWidget *parent, const char *name ) + : TQFrame( parent, name, TQt::WPaintUnclipped ) { orient = o; init(); diff --git a/tqtinterface/qt4/src/widgets/tqsplitter.h b/tqtinterface/qt4/src/widgets/tqsplitter.h index 18d62f9..5ab15b0 100644 --- a/tqtinterface/qt4/src/widgets/tqsplitter.h +++ b/tqtinterface/qt4/src/widgets/tqsplitter.h @@ -96,8 +96,8 @@ public: // ### TQt 4.0: remove Auto from public API enum ResizeMode { Stretch, KeepSize, FollowSizeHint, Auto }; - TQSplitter( TQWidget* tqparent = 0, const char* name = 0 ); - TQSplitter( Qt::Orientation, TQWidget* tqparent = 0, const char* name = 0 ); + TQSplitter( TQWidget* parent = 0, const char* name = 0 ); + TQSplitter( Qt::Orientation, TQWidget* parent = 0, const char* name = 0 ); ~TQSplitter(); virtual void setOrientation( Qt::Orientation ); @@ -196,7 +196,7 @@ class TQSplitterHandle : public TQWidget TQ_OBJECT public: TQSplitterHandle( Qt::Orientation o, - TQSplitter *tqparent, const char* name=0 ); + TQSplitter *parent, const char* name=0 ); void setOrientation( Qt::Orientation o ); Qt::Orientation orientation() const { return orient; } diff --git a/tqtinterface/qt4/src/widgets/tqstatusbar.cpp b/tqtinterface/qt4/src/widgets/tqstatusbar.cpp index 6dbe4a4..2a424d4 100644 --- a/tqtinterface/qt4/src/widgets/tqstatusbar.cpp +++ b/tqtinterface/qt4/src/widgets/tqstatusbar.cpp @@ -136,13 +136,13 @@ public: /*! - Constructs a status bar called \a name with tqparent \a tqparent and + Constructs a status bar called \a name with parent \a parent and with a size grip. \sa setSizeGripEnabled() */ -TQStatusBar::TQStatusBar( TQWidget * tqparent, const char *name ) - : TQWidget( tqparent, name ) +TQStatusBar::TQStatusBar( TQWidget * parent, const char *name ) + : TQWidget( parent, name ) { d = new TQStatusBarPrivate; d->items.setAutoDelete( TRUE ); diff --git a/tqtinterface/qt4/src/widgets/tqstatusbar.h b/tqtinterface/qt4/src/widgets/tqstatusbar.h index 8fc6cfc..73929cb 100644 --- a/tqtinterface/qt4/src/widgets/tqstatusbar.h +++ b/tqtinterface/qt4/src/widgets/tqstatusbar.h @@ -58,7 +58,7 @@ class TQ_EXPORT TQStatusBar: public TQWidget Q_PROPERTY( bool sizeGripEnabled READ isSizeGripEnabled WRITE setSizeGripEnabled ) public: - TQStatusBar( TQWidget* tqparent=0, const char* name=0 ); + TQStatusBar( TQWidget* parent=0, const char* name=0 ); virtual ~TQStatusBar(); virtual void addWidget( TQWidget *, int stretch = 0, bool = FALSE ); diff --git a/tqtinterface/qt4/src/widgets/tqtabbar.cpp b/tqtinterface/qt4/src/widgets/tqtabbar.cpp index fd02625..bcbd41a 100644 --- a/tqtinterface/qt4/src/widgets/tqtabbar.cpp +++ b/tqtinterface/qt4/src/widgets/tqtabbar.cpp @@ -255,8 +255,8 @@ struct TQTabPrivate { class TQTabBarToolTip : public TQToolTip { public: - TQTabBarToolTip( TQWidget * tqparent ) - : TQToolTip( tqparent ) {} + TQTabBarToolTip( TQWidget * parent ) + : TQToolTip( parent ) {} virtual ~TQTabBarToolTip() {} void add( TQTab * tab, const TQString & tip ) @@ -330,12 +330,12 @@ private: */ /*! - Constructs a new, empty tab bar; the \a tqparent and \a name + Constructs a new, empty tab bar; the \a parent and \a name arguments are passed on to the TQWidget constructor. */ -TQTabBar::TQTabBar( TQWidget * tqparent, const char *name ) - : TQWidget( tqparent, name, (WFlags)(TQt::WNoAutoErase | TQt::WNoMousePropagation) ) +TQTabBar::TQTabBar( TQWidget * parent, const char *name ) + : TQWidget( parent, name, (WFlags)(TQt::WNoAutoErase | TQt::WNoMousePropagation) ) { d = new TQTabPrivate; d->pressed = 0; diff --git a/tqtinterface/qt4/src/widgets/tqtabbar.h b/tqtinterface/qt4/src/widgets/tqtabbar.h index 1b0fa76..021e13e 100644 --- a/tqtinterface/qt4/src/widgets/tqtabbar.h +++ b/tqtinterface/qt4/src/widgets/tqtabbar.h @@ -96,7 +96,7 @@ class TQ_EXPORT TQTabBar: public TQWidget Q_PROPERTY( int keyboardFocusTab READ keyboardFocusTab ) public: - TQTabBar( TQWidget* tqparent=0, const char* name=0 ); + TQTabBar( TQWidget* parent=0, const char* name=0 ); ~TQTabBar(); enum Shape { RoundedAbove, RoundedBelow, diff --git a/tqtinterface/qt4/src/widgets/tqtabwidget.cpp b/tqtinterface/qt4/src/widgets/tqtabwidget.cpp index e1afe3d..b4275db 100644 --- a/tqtinterface/qt4/src/widgets/tqtabwidget.cpp +++ b/tqtinterface/qt4/src/widgets/tqtabwidget.cpp @@ -175,12 +175,12 @@ class TQTabBarBase : public TQWidget { public: - TQTabBarBase( TQTabWidget* tqparent=0, const char* name=0 ) - : TQWidget( tqparent, name ) {}; + TQTabBarBase( TQTabWidget* parent=0, const char* name=0 ) + : TQWidget( parent, name ) {}; protected: void paintEvent( TQPaintEvent * ) { - TQObject * obj = tqparent(); + TQObject * obj = parent(); if( obj ){ TQTabWidget * t = (TQTabWidget *) obj; TQPainter p( this ); @@ -219,11 +219,11 @@ public: }; /*! - Constructs a tabbed widget called \a name with tqparent \a tqparent, + Constructs a tabbed widget called \a name with parent \a parent, and widget flags \a f. */ -TQTabWidget::TQTabWidget( TQWidget *tqparent, const char *name, WFlags f ) - : TQWidget( tqparent, name, f ) +TQTabWidget::TQTabWidget( TQWidget *parent, const char *name, WFlags f ) + : TQWidget( parent, name, f ) { d = new TQTabWidgetData; d->stack = new TQWidgetStack( this, "tab pages" ); diff --git a/tqtinterface/qt4/src/widgets/tqtabwidget.h b/tqtinterface/qt4/src/widgets/tqtabwidget.h index eb11988..14e5a84 100644 --- a/tqtinterface/qt4/src/widgets/tqtabwidget.h +++ b/tqtinterface/qt4/src/widgets/tqtabwidget.h @@ -68,7 +68,7 @@ class TQ_EXPORT TQTabWidget : public TQWidget TQ_OVERRIDE( bool autoMask DESIGNABLE true SCRIPTABLE true ) public: - TQTabWidget( TQWidget *tqparent = 0, const char *name = 0, WFlags f = 0 ); + TQTabWidget( TQWidget *parent = 0, const char *name = 0, WFlags f = 0 ); ~TQTabWidget(); virtual void addTab( TQWidget *, const TQString & ); // ### make these inline in 4.0 diff --git a/tqtinterface/qt4/src/widgets/tqtextbrowser.cpp b/tqtinterface/qt4/src/widgets/tqtextbrowser.cpp index 81cf7de..a022136 100644 --- a/tqtinterface/qt4/src/widgets/tqtextbrowser.cpp +++ b/tqtinterface/qt4/src/widgets/tqtextbrowser.cpp @@ -132,11 +132,11 @@ public: /*! - Constructs an empty TQTextBrowser called \a name, with tqparent \a - tqparent. + Constructs an empty TQTextBrowser called \a name, with parent \a + parent. */ -TQTextBrowser::TQTextBrowser(TQWidget *tqparent, const char *name) - : TQTextEdit( tqparent, name ) +TQTextBrowser::TQTextBrowser(TQWidget *parent, const char *name) + : TQTextEdit( parent, name ) { setReadOnly( TRUE ); d = new TQTextBrowserData; diff --git a/tqtinterface/qt4/src/widgets/tqtextbrowser.h b/tqtinterface/qt4/src/widgets/tqtextbrowser.h index 91bff50..b2319a4 100644 --- a/tqtinterface/qt4/src/widgets/tqtextbrowser.h +++ b/tqtinterface/qt4/src/widgets/tqtextbrowser.h @@ -64,7 +64,7 @@ class TQ_EXPORT TQTextBrowser : public TQTextEdit TQ_OVERRIDE( bool undoRedoEnabled DESIGNABLE false SCRIPTABLE false ) public: - TQTextBrowser( TQWidget* tqparent=0, const char* name=0 ); + TQTextBrowser( TQWidget* parent=0, const char* name=0 ); ~TQTextBrowser(); TQString source() const; diff --git a/tqtinterface/qt4/src/widgets/tqtextedit.cpp b/tqtinterface/qt4/src/widgets/tqtextedit.cpp index 7900d3c..fe1dbbf 100644 --- a/tqtinterface/qt4/src/widgets/tqtextedit.cpp +++ b/tqtinterface/qt4/src/widgets/tqtextedit.cpp @@ -891,19 +891,19 @@ static bool block_set_tqalignment = FALSE; */ /*! - Constructs an empty TQTextEdit called \a name, with tqparent \a - tqparent. + Constructs an empty TQTextEdit called \a name, with parent \a + parent. */ -TQTextEdit::TQTextEdit( TQWidget *tqparent, const char *name ) - : TQScrollView( tqparent, name, (WFlags)(TQt::WStaticContents | TQt::WNoAutoErase) ), +TQTextEdit::TQTextEdit( TQWidget *parent, const char *name ) + : TQScrollView( parent, name, (WFlags)(TQt::WStaticContents | TQt::WNoAutoErase) ), doc( new TQTextDocument( 0 ) ), undoRedoInfo( doc ) { init(); } /*! - Constructs a TQTextEdit called \a name, with tqparent \a tqparent. The + Constructs a TQTextEdit called \a name, with parent \a parent. The text edit will display the text \a text using context \a context. The \a context is a path which the text edit's TQMimeSourceFactory @@ -923,8 +923,8 @@ TQTextEdit::TQTextEdit( TQWidget *tqparent, const char *name ) */ TQTextEdit::TQTextEdit( const TQString& text, const TQString& context, - TQWidget *tqparent, const char *name) - : TQScrollView( tqparent, name, (WFlags)(TQt::WStaticContents | TQt::WNoAutoErase) ), + TQWidget *parent, const char *name) + : TQScrollView( parent, name, (WFlags)(TQt::WStaticContents | TQt::WNoAutoErase) ), doc( new TQTextDocument( 0 ) ), undoRedoInfo( doc ) { init(); @@ -3421,14 +3421,14 @@ void TQTextEdit::repaintChanged() } #ifndef TQT_NO_MIME -TQTextDrag *TQTextEdit::dragObject( TQWidget *tqparent ) const +TQTextDrag *TQTextEdit::dragObject( TQWidget *parent ) const { if ( !doc->hasSelection( TQTextDocument::Standard ) || doc->selectedText( TQTextDocument::Standard ).isEmpty() ) return 0; if ( textFormat() != TQt::RichText ) - return new TQTextDrag( doc->selectedText( TQTextDocument::Standard ), tqparent ); - TQRichTextDrag *drag = new TQRichTextDrag( tqparent ); + return new TQTextDrag( doc->selectedText( TQTextDocument::Standard ), parent ); + TQRichTextDrag *drag = new TQRichTextDrag( parent ); drag->setPlainText( doc->selectedText( TQTextDocument::Standard ) ); drag->setRichText( doc->selectedText( TQTextDocument::Standard, TRUE ) ); return drag; @@ -6278,7 +6278,7 @@ TQTextEditOptimPrivate::Tag * TQTextEdit::optimAppendTag( int index, const TQStr t->index = index; t->tag = tag; t->leftTag = 0; - t->tqparent = 0; + t->parent = 0; t->prev = d->od->lastTag; if ( d->od->lastTag ) d->od->lastTag->next = t; @@ -6307,7 +6307,7 @@ TQTextEditOptimPrivate::Tag *TQTextEdit::optimInsertTag(int line, int index, con t->index = index; t->tag = tag; t->leftTag = 0; - t->tqparent = 0; + t->parent = 0; t->next = 0; t->prev = 0; @@ -6448,7 +6448,7 @@ void TQTextEdit::optimParseTags( TQString * line, int lineNo, int indexOffset ) : TQTextEditOptimPrivate::Color; if ( tagStr[0] == '/' ) { // this is a right-tag - search for the left-tag - // and possible tqparent tag + // and possible parent tag cur = tag->prev; if ( !cur ) { #ifdef TQT_CHECK_RANGE @@ -6464,13 +6464,13 @@ void TQTextEdit::optimParseTags( TQString * line, int lineNo, int indexOffset ) if ( !tmp ) { if ( (("/" + cur->tag) == tag->tag) || (tag->tag == "/font" && cur->tag.left(4) == "font") ) { - // set up the left and tqparent of this tag + // set up the left and parent of this tag tag->leftTag = cur; tmp = cur->prev; - if ( tmp && tmp->tqparent ) { - tag->tqparent = tmp->tqparent; + if ( tmp && tmp->parent ) { + tag->parent = tmp->parent; } else if ( tmp && !tmp->leftTag ) { - tag->tqparent = tmp; + tag->parent = tmp; } break; } else if ( !cur->leftTag ) { @@ -6489,7 +6489,7 @@ void TQTextEdit::optimParseTags( TQString * line, int lineNo, int indexOffset ) tag->underline = underline > 0; tmp = tag->prev; while ( tmp && tmp->leftTag ) { - tmp = tmp->leftTag->tqparent; + tmp = tmp->leftTag->parent; } if ( tmp ) { tag->bold |= tmp->bold; @@ -6812,9 +6812,9 @@ TQTextEditOptimPrivate::Tag * TQTextEdit::optimPreviousLeftTag( int line ) } if ( ftag ) { - if ( ftag && ftag->tqparent ) // use the open tqparent tag - ftag = ftag->tqparent; - else if ( ftag && ftag->leftTag ) // this is a right-tag with no tqparent + if ( ftag && ftag->parent ) // use the open parent tag + ftag = ftag->parent; + else if ( ftag && ftag->leftTag ) // this is a right-tag with no parent ftag = 0; } return ftag; @@ -6848,7 +6848,7 @@ void TQTextEdit::optimSetTextFormat( TQTextDocument * td, TQTextCursor * cur, tag = tag->prev; while ( tag && (tag->type == TQTextEditOptimPrivate::Format || tag->leftTag) ) { - tag = tag->leftTag ? tag->tqparent : tag->prev; + tag = tag->leftTag ? tag->parent : tag->prev; } } if ( tag ) { @@ -6934,8 +6934,8 @@ void TQTextEdit::optimDrawContents( TQPainter * p, int clipx, int clipy, tmp = 0; if ( tag->prev && !tag->prev->leftTag ) { tmp = tag->prev; - } else if ( tag->prev && tag->prev->tqparent ) { - tmp = tag->prev->tqparent; + } else if ( tag->prev && tag->prev->parent ) { + tmp = tag->prev->parent; } if ( (tag->index - lastIndex) > 0 && tmp ) { optimSetTextFormat( td, &cur, &f, lastIndex, tag->index, tmp ); @@ -6945,8 +6945,8 @@ void TQTextEdit::optimDrawContents( TQPainter * p, int clipx, int clipy, tag = tag->next; } // Step 3 - color last part of the line - if necessary - if ( tmp && tmp->tqparent ) - tmp = tmp->tqparent; + if ( tmp && tmp->parent ) + tmp = tmp->parent; if ( (cur.paragraph()->length()-1 - lastIndex) > 0 && tmp && !tmp->leftTag ) { optimSetTextFormat( td, &cur, &f, lastIndex, cur.paragraph()->length() - 1, tmp ); @@ -6958,8 +6958,8 @@ void TQTextEdit::optimDrawContents( TQPainter * p, int clipx, int clipy, // tag = d->od->tags; // qWarning("###"); // while ( tag ) { -// qWarning( "Tag: %p, tqparent: %09p, leftTag: %09p, Name: %-15s, ParentName: %s, %d%d%d", tag, -// tag->tqparent, tag->leftTag, tag->tag.latin1(), tag->tqparent ? tag->tqparent->tag.latin1():"<none>", +// qWarning( "Tag: %p, parent: %09p, leftTag: %09p, Name: %-15s, ParentName: %s, %d%d%d", tag, +// tag->parent, tag->leftTag, tag->tag.latin1(), tag->parent ? tag->parent->tag.latin1():"<none>", // tag->bold, tag->italic, tag->underline ); // tag = tag->next; // } @@ -7404,8 +7404,8 @@ void TQTextEdit::optimCheckLimit( const TQString& str ) itr = d->od->tags; while ( itr ){ for ( tmp = lst.first(); tmp; tmp = lst.next() ) { - if ( itr->tqparent == tmp ) - itr->tqparent = 0; + if ( itr->parent == tmp ) + itr->parent = 0; if ( itr->leftTag == tmp ) itr->leftTag = 0; } diff --git a/tqtinterface/qt4/src/widgets/tqtextedit.h b/tqtinterface/qt4/src/widgets/tqtextedit.h index a69b434..26d5f4f 100644 --- a/tqtinterface/qt4/src/widgets/tqtextedit.h +++ b/tqtinterface/qt4/src/widgets/tqtextedit.h @@ -80,7 +80,7 @@ class TQSyntaxHighlighter; class TQTextEditOptimPrivate { public: - // Note: no left-tag has any value for leftTag or tqparent, and + // Note: no left-tag has any value for leftTag or parent, and // no right-tag has any formatting flags set. enum TagType { Color = 0, Format = 1 }; struct Tag { @@ -91,7 +91,7 @@ public: int line; int index; Tag * leftTag; // ptr to left-tag in a left-right tag pair - Tag * tqparent; // ptr to tqparent left-tag in a nested tag + Tag * parent; // ptr to parent left-tag in a nested tag Tag * prev; Tag * next; TQString tag; @@ -222,8 +222,8 @@ public: }; TQTextEdit( const TQString& text, const TQString& context = TQString::null, - TQWidget* tqparent=0, const char* name=0); - TQTextEdit( TQWidget* tqparent=0, const char* name=0 ); + TQWidget* parent=0, const char* name=0); + TQTextEdit( TQWidget* parent=0, const char* name=0 ); virtual ~TQTextEdit(); void setPalette( const TQPalette & ); @@ -511,7 +511,7 @@ private: void copyToClipboard(); #ifndef TQT_NO_MIME TQCString pickSpecial(TQMimeSource* ms, bool always_ask, const TQPoint&); - TQTextDrag *dragObject( TQWidget *tqparent = 0 ) const; + TQTextDrag *dragObject( TQWidget *parent = 0 ) const; #endif #ifndef TQT_NO_MIMECLIPBOARD void pasteSpecial(const TQPoint&); diff --git a/tqtinterface/qt4/src/widgets/tqtextview.cpp b/tqtinterface/qt4/src/widgets/tqtextview.cpp index 286ae12..a262dfb 100644 --- a/tqtinterface/qt4/src/widgets/tqtextview.cpp +++ b/tqtinterface/qt4/src/widgets/tqtextview.cpp @@ -55,16 +55,16 @@ /*! \reimp */ TQTextView::TQTextView( const TQString& text, const TQString& context, - TQWidget *tqparent, const char *name ) - : TQTextEdit( text, context, tqparent, name ) + TQWidget *parent, const char *name ) + : TQTextEdit( text, context, parent, name ) { setReadOnly( TRUE ); } /*! \reimp */ -TQTextView::TQTextView( TQWidget *tqparent, const char *name ) - : TQTextEdit( tqparent, name ) +TQTextView::TQTextView( TQWidget *parent, const char *name ) + : TQTextEdit( parent, name ) { setReadOnly( TRUE ); } diff --git a/tqtinterface/qt4/src/widgets/tqtextview.h b/tqtinterface/qt4/src/widgets/tqtextview.h index b8f74c3..f8a4a89 100644 --- a/tqtinterface/qt4/src/widgets/tqtextview.h +++ b/tqtinterface/qt4/src/widgets/tqtextview.h @@ -59,8 +59,8 @@ class TQ_EXPORT TQTextView : public TQTextEdit public: TQTextView( const TQString& text, const TQString& context = TQString::null, - TQWidget* tqparent=0, const char* name=0); - TQTextView( TQWidget* tqparent=0, const char* name=0 ); + TQWidget* parent=0, const char* name=0); + TQTextView( TQWidget* parent=0, const char* name=0 ); virtual ~TQTextView(); diff --git a/tqtinterface/qt4/src/widgets/tqtitlebar.cpp b/tqtinterface/qt4/src/widgets/tqtitlebar.cpp index 84ec7b9..bb5e052 100644 --- a/tqtinterface/qt4/src/widgets/tqtitlebar.cpp +++ b/tqtinterface/qt4/src/widgets/tqtitlebar.cpp @@ -66,7 +66,7 @@ class TQTitleBarTip : public TQToolTip { public: - TQTitleBarTip( TQWidget * tqparent ) : TQToolTip( tqparent ) { } + TQTitleBarTip( TQWidget * parent ) : TQToolTip( parent ) { } void maybeTip( const TQPoint &pos ) { @@ -154,8 +154,8 @@ public: #endif }; -TQTitleBar::TQTitleBar(TQWidget* w, TQWidget* tqparent, const char* name) - : TQWidget( tqparent, name, (WFlags)(WStyle_Customize | TQt::WStyle_NoBorder | TQt::WNoAutoErase) ) +TQTitleBar::TQTitleBar(TQWidget* w, TQWidget* parent, const char* name) + : TQWidget( parent, name, (WFlags)(WStyle_Customize | TQt::WStyle_NoBorder | TQt::WNoAutoErase) ) { d = new TQTitleBarPrivate(); diff --git a/tqtinterface/qt4/src/widgets/tqtitlebar_p.h b/tqtinterface/qt4/src/widgets/tqtitlebar_p.h index 44cac81..8e10ed1 100644 --- a/tqtinterface/qt4/src/widgets/tqtitlebar_p.h +++ b/tqtinterface/qt4/src/widgets/tqtitlebar_p.h @@ -74,7 +74,7 @@ class TQ_EXPORT TQTitleBar : public TQWidget Q_PROPERTY( bool movable READ isMovable WRITE setMovable ) public: - TQTitleBar (TQWidget* w, TQWidget* tqparent, const char* name=0); + TQTitleBar (TQWidget* w, TQWidget* parent, const char* name=0); ~TQTitleBar(); bool isActive() const; diff --git a/tqtinterface/qt4/src/widgets/tqtoolbar.cpp b/tqtinterface/qt4/src/widgets/tqtoolbar.cpp index e7ff8f4..771a332 100644 --- a/tqtinterface/qt4/src/widgets/tqtoolbar.cpp +++ b/tqtinterface/qt4/src/widgets/tqtoolbar.cpp @@ -104,7 +104,7 @@ class TQToolBarSeparator : public TQWidget Q_OBJECT TQ_OBJECT public: - TQToolBarSeparator( Qt::Orientation, TQToolBar *tqparent, const char* name=0 ); + TQToolBarSeparator( Qt::Orientation, TQToolBar *parent, const char* name=0 ); TQSize tqsizeHint() const; Qt::Orientation orientation() const { return orient; } @@ -164,14 +164,14 @@ void TQToolBarExtensionWidget::layOut() tb->setGeometry( 2, 2, width() - 4, height() - 4 ); } -TQToolBarSeparator::TQToolBarSeparator(Qt::Orientation o , TQToolBar *tqparent, +TQToolBarSeparator::TQToolBarSeparator(Qt::Orientation o , TQToolBar *parent, const char* name ) - : TQWidget( tqparent, name ) + : TQWidget( parent, name ) { - connect( tqparent, TQT_SIGNAL(orientationChanged(Qt::Orientation)), + connect( parent, TQT_SIGNAL(orientationChanged(Qt::Orientation)), this, TQT_SLOT(setOrientation(Qt::Orientation)) ); setOrientation( o ); - setBackgroundMode( tqparent->backgroundMode() ); + setBackgroundMode( parent->backgroundMode() ); setBackgroundOrigin( ParentOrigin ); tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Minimum ) ); } @@ -303,29 +303,29 @@ void TQToolBarSeparator::paintEvent( TQPaintEvent * ) /*! Constructs an empty toolbar. - The toolbar is called \a name and is a child of \a tqparent and is - managed by \a tqparent. It is initially located in dock area \a dock + The toolbar is called \a name and is a child of \a parent and is + managed by \a parent. It is initially located in dock area \a dock and is labeled \a label. If \a newLine is TRUE the toolbar will be placed on a new line in the dock area. */ TQToolBar::TQToolBar( const TQString &label, - TQMainWindow * tqparent, TQt::ToolBarDock dock, + TQMainWindow * parent, TQt::ToolBarDock dock, bool newLine, const char * name ) - : TQDockWindow( InDock, tqparent, name, 0, TRUE ) + : TQDockWindow( InDock, parent, name, 0, TRUE ) { - mw = tqparent; + mw = parent; init(); - if ( tqparent ) - tqparent->addToolBar( this, label, dock, newLine ); + if ( parent ) + parent->addToolBar( this, label, dock, newLine ); } /*! Constructs an empty horizontal toolbar. - The toolbar is called \a name and is a child of \a tqparent and is + The toolbar is called \a name and is a child of \a parent and is managed by \a mainWindow. The \a label and \a newLine parameters are passed straight to TQMainWindow::addDockWindow(). \a name and the widget flags \a f are passed on to the TQDockWindow constructor. @@ -336,15 +336,15 @@ TQToolBar::TQToolBar( const TQString &label, */ TQToolBar::TQToolBar( const TQString &label, TQMainWindow * mainWindow, - TQWidget * tqparent, bool newLine, const char * name, + TQWidget * parent, bool newLine, const char * name, WFlags f ) - : TQDockWindow( InDock, tqparent, name, f, TRUE ) + : TQDockWindow( InDock, parent, name, f, TRUE ) { mw = mainWindow; init(); clearWFlags( (WFlags)(TQt::WType_Dialog | WStyle_Customize | TQt::WStyle_NoBorder) ); - reparent( tqparent, TQPoint( 0, 0 ), FALSE ); + reparent( parent, TQPoint( 0, 0 ), FALSE ); if ( mainWindow ) mainWindow->addToolBar( this, label, TQt::DockUnmanaged, newLine ); @@ -354,19 +354,19 @@ TQToolBar::TQToolBar( const TQString &label, TQMainWindow * mainWindow, /*! \overload - Constructs an empty toolbar called \a name, with tqparent \a tqparent, - in its \a tqparent's top dock area, without any label and without + Constructs an empty toolbar called \a name, with parent \a parent, + in its \a parent's top dock area, without any label and without requiring a newline. */ -TQToolBar::TQToolBar( TQMainWindow * tqparent, const char * name ) - : TQDockWindow( InDock, tqparent, name, 0, TRUE ) +TQToolBar::TQToolBar( TQMainWindow * parent, const char * name ) + : TQDockWindow( InDock, parent, name, 0, TRUE ) { - mw = tqparent; + mw = parent; init(); - if ( tqparent ) - tqparent->addToolBar( this, TQString(), TQt::DockTop ); + if ( parent ) + parent->addToolBar( this, TQString(), TQt::DockTop ); } /*! @@ -521,7 +521,7 @@ bool TQToolBar::event( TQEvent * e ) if ( e->type() == TQEvent::ChildInserted ) { TQObject * child = TQT_TQOBJECT(((TQChildEvent*)e)->child()); if ( child && child->isWidgetType() && !(TQT_TQWIDGET(child)->isTopLevel()) - && TQT_BASE_OBJECT(child->tqparent()) == TQT_BASE_OBJECT(this) + && TQT_BASE_OBJECT(child->parent()) == TQT_BASE_OBJECT(this) && tqstrcmp("qt_dockwidget_internal", child->name()) != 0 ) { boxLayout()->addWidget( (TQWidget*)child ); if ( isVisible() ) { diff --git a/tqtinterface/qt4/src/widgets/tqtoolbar.h b/tqtinterface/qt4/src/widgets/tqtoolbar.h index 92f6d9f..a741eb0 100644 --- a/tqtinterface/qt4/src/widgets/tqtoolbar.h +++ b/tqtinterface/qt4/src/widgets/tqtoolbar.h @@ -64,7 +64,7 @@ public: bool newLine = FALSE, const char* name=0 ); TQToolBar( const TQString &label, TQMainWindow *, TQWidget *, bool newLine = FALSE, const char* name=0, WFlags f = 0 ); - TQToolBar( TQMainWindow* tqparent=0, const char* name=0 ); + TQToolBar( TQMainWindow* parent=0, const char* name=0 ); ~TQToolBar(); void addSeparator(); diff --git a/tqtinterface/qt4/src/widgets/tqtoolbox.cpp b/tqtinterface/qt4/src/widgets/tqtoolbox.cpp index b082f56..aa38123 100644 --- a/tqtinterface/qt4/src/widgets/tqtoolbox.cpp +++ b/tqtinterface/qt4/src/widgets/tqtoolbox.cpp @@ -264,11 +264,11 @@ void TQToolBoxButton::drawButton( TQPainter *p ) */ /*! - Constructs a toolbox called \a name with tqparent \a tqparent and flags \a f. + Constructs a toolbox called \a name with parent \a parent and flags \a f. */ -TQToolBox::TQToolBox( TQWidget *tqparent, const char *name, WFlags f ) - : TQFrame( tqparent, name, f ) +TQToolBox::TQToolBox( TQWidget *parent, const char *name, WFlags f ) + : TQFrame( parent, name, f ) { d = new TQToolBoxPrivate; d->tqlayout = new TQVBoxLayout( this ); diff --git a/tqtinterface/qt4/src/widgets/tqtoolbox.h b/tqtinterface/qt4/src/widgets/tqtoolbox.h index 0ca8c38..973f81c 100644 --- a/tqtinterface/qt4/src/widgets/tqtoolbox.h +++ b/tqtinterface/qt4/src/widgets/tqtoolbox.h @@ -60,7 +60,7 @@ class TQ_EXPORT TQToolBox : public TQFrame Q_PROPERTY( int count READ count ) public: - TQToolBox( TQWidget *tqparent = 0, const char *name = 0, WFlags f = 0 ); + TQToolBox( TQWidget *parent = 0, const char *name = 0, WFlags f = 0 ); ~TQToolBox(); int addItem( TQWidget *item, const TQString &label ); @@ -131,8 +131,8 @@ class TQToolBoxButton : public TQButton Q_OBJECT TQ_OBJECT public: - TQToolBoxButton( TQWidget *tqparent, const char *name ) - : TQButton( tqparent, name ), selected( FALSE ) + TQToolBoxButton( TQWidget *parent, const char *name ) + : TQButton( parent, name ), selected( FALSE ) { setBackgroundMode(TQt::PaletteBackground); tqsetSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Minimum); diff --git a/tqtinterface/qt4/src/widgets/tqtoolbutton.cpp b/tqtinterface/qt4/src/widgets/tqtoolbutton.cpp index 8c84a59..9f392ca 100644 --- a/tqtinterface/qt4/src/widgets/tqtoolbutton.cpp +++ b/tqtinterface/qt4/src/widgets/tqtoolbutton.cpp @@ -135,16 +135,16 @@ public: /*! - Constructs an empty tool button called \a name, with tqparent \a - tqparent. + Constructs an empty tool button called \a name, with parent \a + parent. */ -TQToolButton::TQToolButton( TQWidget * tqparent, const char *name ) - : TQButton( tqparent, name ) +TQToolButton::TQToolButton( TQWidget * parent, const char *name ) + : TQButton( parent, name ) { init(); #ifndef TQT_NO_TOOLBAR - TQToolBar* tb = ::tqqt_cast<TQToolBar*>(tqparent); + TQToolBar* tb = ::tqqt_cast<TQToolBar*>(parent); if ( tb ) { setAutoRaise( TRUE ); if ( tb->mainWindow() ) { @@ -172,11 +172,11 @@ TQToolButton::TQToolButton( TQWidget * tqparent, const char *name ) An arrow button has auto-repeat turned on by default. - The \a tqparent and \a name arguments are sent to the TQWidget + The \a parent and \a name arguments are sent to the TQWidget constructor. */ -TQToolButton::TQToolButton( TQt::ArrowType type, TQWidget *tqparent, const char *name ) - : TQButton( tqparent, name ) +TQToolButton::TQToolButton( TQt::ArrowType type, TQWidget *parent, const char *name ) + : TQButton( parent, name ) { init(); setUsesBigPixmap( FALSE ); @@ -219,7 +219,7 @@ void TQToolButton::init() /*! Constructs a tool button called \a name, that is a child of \a - tqparent (which must be a TQToolBar). + parent (which must be a TQToolBar). The tool button will display \a iconSet, with its text label and tool tip set to \a textLabel and its status bar message set to \a @@ -230,8 +230,8 @@ void TQToolButton::init() TQToolButton::TQToolButton( const TQIconSet& iconSet, const TQString &textLabel, const TQString& grouptext, TQT_BASE_OBJECT_NAME * receiver, const char *slot, - TQToolBar * tqparent, const char *name ) - : TQButton( tqparent, name ) + TQToolBar * parent, const char *name ) + : TQButton( parent, name ) { init(); setAutoRaise( TRUE ); @@ -239,26 +239,26 @@ TQToolButton::TQToolButton( const TQIconSet& iconSet, const TQString &textLabel, setTextLabel( textLabel ); if ( receiver && slot ) connect( this, TQT_SIGNAL(clicked()), receiver, slot ); - if ( tqparent->mainWindow() ) { - connect( tqparent->mainWindow(), TQT_SIGNAL(pixmapSizeChanged(bool)), + if ( parent->mainWindow() ) { + connect( parent->mainWindow(), TQT_SIGNAL(pixmapSizeChanged(bool)), this, TQT_SLOT(setUsesBigPixmap(bool)) ); - setUsesBigPixmap( tqparent->mainWindow()->usesBigPixmaps() ); - connect( tqparent->mainWindow(), TQT_SIGNAL(usesTextLabelChanged(bool)), + setUsesBigPixmap( parent->mainWindow()->usesBigPixmaps() ); + connect( parent->mainWindow(), TQT_SIGNAL(usesTextLabelChanged(bool)), this, TQT_SLOT(setUsesTextLabel(bool)) ); - setUsesTextLabel( tqparent->mainWindow()->usesTextLabel() ); + setUsesTextLabel( parent->mainWindow()->usesTextLabel() ); } else { setUsesBigPixmap( FALSE ); } #ifndef TQT_NO_TOOLTIP if ( !textLabel.isEmpty() ) { - if ( !grouptext.isEmpty() && tqparent->mainWindow() ) + if ( !grouptext.isEmpty() && parent->mainWindow() ) TQToolTip::add( this, textLabel, - tqparent->mainWindow()->toolTipGroup(), grouptext ); + parent->mainWindow()->toolTipGroup(), grouptext ); else TQToolTip::add( this, textLabel ); - } else if ( !grouptext.isEmpty() && tqparent->mainWindow() ) + } else if ( !grouptext.isEmpty() && parent->mainWindow() ) TQToolTip::add( this, TQString::null, - tqparent->mainWindow()->toolTipGroup(), grouptext ); + parent->mainWindow()->toolTipGroup(), grouptext ); #endif } diff --git a/tqtinterface/qt4/src/widgets/tqtoolbutton.h b/tqtinterface/qt4/src/widgets/tqtoolbutton.h index 3cdb9c0..0d8c015 100644 --- a/tqtinterface/qt4/src/widgets/tqtoolbutton.h +++ b/tqtinterface/qt4/src/widgets/tqtoolbutton.h @@ -82,14 +82,14 @@ public: Right = BesideIcon, // obsolete Under = BelowIcon // obsolete }; - TQToolButton( TQWidget * tqparent, const char* name=0 ); + TQToolButton( TQWidget * parent, const char* name=0 ); #ifndef TQT_NO_TOOLBAR TQToolButton( const TQIconSet& s, const TQString &textLabel, const TQString& grouptext, TQT_BASE_OBJECT_NAME * receiver, const char* slot, - TQToolBar * tqparent, const char* name=0 ); + TQToolBar * parent, const char* name=0 ); #endif - TQToolButton( TQt::ArrowType type, TQWidget *tqparent, const char* name=0 ); + TQToolButton( TQt::ArrowType type, TQWidget *parent, const char* name=0 ); ~TQToolButton(); TQSize tqsizeHint() const; diff --git a/tqtinterface/qt4/src/widgets/tqtooltip.cpp b/tqtinterface/qt4/src/widgets/tqtooltip.cpp index 411487d..5213e58 100644 --- a/tqtinterface/qt4/src/widgets/tqtooltip.cpp +++ b/tqtinterface/qt4/src/widgets/tqtooltip.cpp @@ -64,7 +64,7 @@ class TQTipLabel : public TQLabel Q_OBJECT TQ_OBJECT public: - TQTipLabel( TQWidget* tqparent, const TQString& text) : TQLabel( tqparent, "toolTipTip", + TQTipLabel( TQWidget* parent, const TQString& text) : TQLabel( parent, "toolTipTip", (WFlags)(TQt::WStyle_StaysOnTop | WStyle_Customize | TQt::WStyle_NoBorder | TQt::WStyle_Tool | WX11BypassWM) ) { setMargin(1); @@ -1067,7 +1067,7 @@ void TQToolTip::tip( const TQRect &rect, const TQString &text, const TQString& g /*! - Immediately removes all tool tips for this tooltip's tqparent + Immediately removes all tool tips for this tooltip's parent widget. */ @@ -1083,7 +1083,7 @@ void TQToolTip::clear() Returns the widget this TQToolTip applies to. - The tool tip is destroyed automatically when the tqparent widget is + The tool tip is destroyed automatically when the parent widget is destroyed. \sa group() @@ -1159,11 +1159,11 @@ void TQToolTip::clear() /*! - Constructs a tool tip group called \a name, with tqparent \a tqparent. + Constructs a tool tip group called \a name, with parent \a parent. */ -TQToolTipGroup::TQToolTipGroup( TQObject *tqparent, const char *name ) - : TQObject( tqparent, name ) +TQToolTipGroup::TQToolTipGroup( TQObject *parent, const char *name ) + : TQObject( parent, name ) { del = TRUE; ena = TRUE; diff --git a/tqtinterface/qt4/src/widgets/tqtooltip.h b/tqtinterface/qt4/src/widgets/tqtooltip.h index e9afb22..c5c13f8 100644 --- a/tqtinterface/qt4/src/widgets/tqtooltip.h +++ b/tqtinterface/qt4/src/widgets/tqtooltip.h @@ -61,7 +61,7 @@ class TQ_EXPORT TQToolTipGroup: public TQObject Q_PROPERTY( bool enabled READ enabled WRITE setEnabled ) public: - TQToolTipGroup( TQObject *tqparent, const char *name = 0 ); + TQToolTipGroup( TQObject *parent, const char *name = 0 ); ~TQToolTipGroup(); bool delay() const; diff --git a/tqtinterface/qt4/src/widgets/tqvalidator.cpp b/tqtinterface/qt4/src/widgets/tqvalidator.cpp index 423e837..18fffc7 100644 --- a/tqtinterface/qt4/src/widgets/tqvalidator.cpp +++ b/tqtinterface/qt4/src/widgets/tqvalidator.cpp @@ -124,12 +124,12 @@ /*! - Sets up the validator. The \a tqparent and \a name parameters are + Sets up the validator. The \a parent and \a name parameters are passed on to the TQObject constructor. */ -TQValidator::TQValidator( TQObject * tqparent, const char *name ) - : TQObject( tqparent, name ) +TQValidator::TQValidator( TQObject * parent, const char *name ) + : TQObject( parent, name ) { } @@ -234,12 +234,12 @@ void TQValidator::fixup( TQString & ) const /*! - Constructs a validator called \a name with tqparent \a tqparent, that + Constructs a validator called \a name with parent \a parent, that accepts all integers. */ -TQIntValidator::TQIntValidator( TQObject * tqparent, const char *name ) - : TQValidator( tqparent, name ) +TQIntValidator::TQIntValidator( TQObject * parent, const char *name ) + : TQValidator( parent, name ) { b = INT_MIN; t = INT_MAX; @@ -247,13 +247,13 @@ TQIntValidator::TQIntValidator( TQObject * tqparent, const char *name ) /*! - Constructs a validator called \a name with tqparent \a tqparent, that + Constructs a validator called \a name with parent \a parent, that accepts integers from \a minimum to \a maximum inclusive. */ TQIntValidator::TQIntValidator( int minimum, int maximum, - TQObject * tqparent, const char* name ) - : TQValidator( tqparent, name ) + TQObject * parent, const char* name ) + : TQValidator( parent, name ) { b = minimum; t = maximum; @@ -369,12 +369,12 @@ void TQIntValidator::setTop( int top ) */ /*! - Constructs a validator object with tqparent \a tqparent, called \a + Constructs a validator object with parent \a parent, called \a name, which accepts any double. */ -TQDoubleValidator::TQDoubleValidator( TQObject * tqparent, const char *name ) - : TQValidator( tqparent, name ) +TQDoubleValidator::TQDoubleValidator( TQObject * parent, const char *name ) + : TQValidator( parent, name ) { b = -HUGE_VAL; t = HUGE_VAL; @@ -383,14 +383,14 @@ TQDoubleValidator::TQDoubleValidator( TQObject * tqparent, const char *name ) /*! - Constructs a validator object with tqparent \a tqparent, called \a + Constructs a validator object with parent \a parent, called \a name. This validator will accept doubles from \a bottom to \a top inclusive, with up to \a decimals digits after the decimal point. */ TQDoubleValidator::TQDoubleValidator( double bottom, double top, int decimals, - TQObject * tqparent, const char* name ) - : TQValidator( tqparent, name ) + TQObject * parent, const char* name ) + : TQValidator( parent, name ) { b = bottom; t = top; @@ -587,27 +587,27 @@ void TQDoubleValidator::setDecimals( int decimals ) /*! Constructs a validator that accepts any string (including an empty - one) as valid. The object's tqparent is \a tqparent and its name is \a + one) as valid. The object's parent is \a parent and its name is \a name. */ -TQRegExpValidator::TQRegExpValidator( TQObject *tqparent, const char *name ) - : TQValidator( tqparent, name ), r( TQString::tqfromLatin1(".*") ) +TQRegExpValidator::TQRegExpValidator( TQObject *parent, const char *name ) + : TQValidator( parent, name ), r( TQString::tqfromLatin1(".*") ) { } /*! Constructs a validator which accepts all strings that match the - regular expression \a rx. The object's tqparent is \a tqparent and its + regular expression \a rx. The object's parent is \a parent and its name is \a name. The match is made against the entire string, e.g. if the regexp is <b>[A-Fa-f0-9]+</b> it will be treated as <b>^[A-Fa-f0-9]+$</b>. */ -TQRegExpValidator::TQRegExpValidator( const TQRegExp& rx, TQObject *tqparent, +TQRegExpValidator::TQRegExpValidator( const TQRegExp& rx, TQObject *parent, const char *name ) - : TQValidator( tqparent, name ), r( rx ) + : TQValidator( parent, name ), r( rx ) { } diff --git a/tqtinterface/qt4/src/widgets/tqvalidator.h b/tqtinterface/qt4/src/widgets/tqvalidator.h index 16f9db1..5e18f6b 100644 --- a/tqtinterface/qt4/src/widgets/tqvalidator.h +++ b/tqtinterface/qt4/src/widgets/tqvalidator.h @@ -55,7 +55,7 @@ class TQ_EXPORT TQValidator : public TQObject Q_OBJECT TQ_OBJECT public: - TQValidator( TQObject * tqparent, const char *name = 0 ); + TQValidator( TQObject * parent, const char *name = 0 ); ~TQValidator(); enum State { Invalid, Intermediate, Valid=Intermediate, Acceptable }; @@ -79,9 +79,9 @@ class TQ_EXPORT TQIntValidator : public TQValidator Q_PROPERTY( int top READ top WRITE setTop ) public: - TQIntValidator( TQObject * tqparent, const char *name = 0 ); + TQIntValidator( TQObject * parent, const char *name = 0 ); TQIntValidator( int bottom, int top, - TQObject * tqparent, const char *name = 0 ); + TQObject * parent, const char *name = 0 ); ~TQIntValidator(); TQValidator::State validate( TQString &, int & ) const; @@ -113,9 +113,9 @@ class TQ_EXPORT TQDoubleValidator : public TQValidator Q_PROPERTY( int decimals READ decimals WRITE setDecimals ) public: - TQDoubleValidator( TQObject * tqparent, const char *name = 0 ); + TQDoubleValidator( TQObject * parent, const char *name = 0 ); TQDoubleValidator( double bottom, double top, int decimals, - TQObject * tqparent, const char *name = 0 ); + TQObject * parent, const char *name = 0 ); ~TQDoubleValidator(); TQValidator::State validate( TQString &, int & ) const; @@ -147,8 +147,8 @@ class TQ_EXPORT TQRegExpValidator : public TQValidator // Q_PROPERTY( TQRegExp regExp READ regExp WRITE setRegExp ) public: - TQRegExpValidator( TQObject *tqparent, const char *name = 0 ); - TQRegExpValidator( const TQRegExp& rx, TQObject *tqparent, + TQRegExpValidator( TQObject *parent, const char *name = 0 ); + TQRegExpValidator( const TQRegExp& rx, TQObject *parent, const char *name = 0 ); ~TQRegExpValidator(); diff --git a/tqtinterface/qt4/src/widgets/tqvbox.cpp b/tqtinterface/qt4/src/widgets/tqvbox.cpp index fbfba79..11e273f 100644 --- a/tqtinterface/qt4/src/widgets/tqvbox.cpp +++ b/tqtinterface/qt4/src/widgets/tqvbox.cpp @@ -61,11 +61,11 @@ /*! - Constructs a vbox widget called \a name with tqparent \a tqparent and + Constructs a vbox widget called \a name with parent \a parent and widget flags \a f. */ -TQVBox::TQVBox( TQWidget *tqparent, const char *name, WFlags f ) - :TQHBox( FALSE, tqparent, name, f ) +TQVBox::TQVBox( TQWidget *parent, const char *name, WFlags f ) + :TQHBox( FALSE, parent, name, f ) { } #endif diff --git a/tqtinterface/qt4/src/widgets/tqvbox.h b/tqtinterface/qt4/src/widgets/tqvbox.h index cccad24..8d0ab7d 100644 --- a/tqtinterface/qt4/src/widgets/tqvbox.h +++ b/tqtinterface/qt4/src/widgets/tqvbox.h @@ -52,7 +52,7 @@ class TQ_EXPORT TQVBox : public TQHBox Q_OBJECT TQ_OBJECT public: - TQVBox( TQWidget* tqparent=0, const char* name=0, WFlags f=0 ); + TQVBox( TQWidget* parent=0, const char* name=0, WFlags f=0 ); private: // Disabled copy constructor and operator= #if defined(TQ_DISABLE_COPY) diff --git a/tqtinterface/qt4/src/widgets/tqvbuttongroup.cpp b/tqtinterface/qt4/src/widgets/tqvbuttongroup.cpp index d7a4490..01a807b 100644 --- a/tqtinterface/qt4/src/widgets/tqvbuttongroup.cpp +++ b/tqtinterface/qt4/src/widgets/tqvbuttongroup.cpp @@ -62,24 +62,24 @@ /*! Constructs a vertical button group with no title. - The \a tqparent and \a name arguments are passed on to the TQWidget + The \a parent and \a name arguments are passed on to the TQWidget constructor. */ -TQVButtonGroup::TQVButtonGroup( TQWidget *tqparent, const char *name ) - : TQButtonGroup( 1, Qt::Horizontal /* sic! */, tqparent, name ) +TQVButtonGroup::TQVButtonGroup( TQWidget *parent, const char *name ) + : TQButtonGroup( 1, Qt::Horizontal /* sic! */, parent, name ) { } /*! Constructs a vertical button group with the title \a title. - The \a tqparent and \a name arguments are passed on to the TQWidget + The \a parent and \a name arguments are passed on to the TQWidget constructor. */ -TQVButtonGroup::TQVButtonGroup( const TQString &title, TQWidget *tqparent, +TQVButtonGroup::TQVButtonGroup( const TQString &title, TQWidget *parent, const char *name ) - : TQButtonGroup( 1, Qt::Horizontal /* sic! */, title, tqparent, name ) + : TQButtonGroup( 1, Qt::Horizontal /* sic! */, title, parent, name ) { } diff --git a/tqtinterface/qt4/src/widgets/tqvbuttongroup.h b/tqtinterface/qt4/src/widgets/tqvbuttongroup.h index faccef2..99cd8b0 100644 --- a/tqtinterface/qt4/src/widgets/tqvbuttongroup.h +++ b/tqtinterface/qt4/src/widgets/tqvbuttongroup.h @@ -52,8 +52,8 @@ class TQ_EXPORT TQVButtonGroup : public TQButtonGroup Q_OBJECT TQ_OBJECT public: - TQVButtonGroup( TQWidget* tqparent=0, const char* name=0 ); - TQVButtonGroup( const TQString &title, TQWidget* tqparent=0, const char* name=0 ); + TQVButtonGroup( TQWidget* parent=0, const char* name=0 ); + TQVButtonGroup( const TQString &title, TQWidget* parent=0, const char* name=0 ); ~TQVButtonGroup(); diff --git a/tqtinterface/qt4/src/widgets/tqvgroupbox.cpp b/tqtinterface/qt4/src/widgets/tqvgroupbox.cpp index 38ccfa1..7c50c3a 100644 --- a/tqtinterface/qt4/src/widgets/tqvgroupbox.cpp +++ b/tqtinterface/qt4/src/widgets/tqvgroupbox.cpp @@ -61,24 +61,24 @@ /*! Constructs a vertical group box with no title. - The \a tqparent and \a name arguments are passed on to the TQWidget + The \a parent and \a name arguments are passed on to the TQWidget constructor. */ -TQVGroupBox::TQVGroupBox( TQWidget *tqparent, const char *name ) - : TQGroupBox( 1, Qt::Horizontal, tqparent, name ) +TQVGroupBox::TQVGroupBox( TQWidget *parent, const char *name ) + : TQGroupBox( 1, Qt::Horizontal, parent, name ) { } /*! Constructs a vertical group box with the title \a title. - The \a tqparent and \a name arguments are passed on to the TQWidget + The \a parent and \a name arguments are passed on to the TQWidget constructor. */ -TQVGroupBox::TQVGroupBox( const TQString &title, TQWidget *tqparent, +TQVGroupBox::TQVGroupBox( const TQString &title, TQWidget *parent, const char *name ) - : TQGroupBox( 1, Qt::Horizontal, title, tqparent, name ) + : TQGroupBox( 1, Qt::Horizontal, title, parent, name ) { } diff --git a/tqtinterface/qt4/src/widgets/tqvgroupbox.h b/tqtinterface/qt4/src/widgets/tqvgroupbox.h index 142172d..be82c4a 100644 --- a/tqtinterface/qt4/src/widgets/tqvgroupbox.h +++ b/tqtinterface/qt4/src/widgets/tqvgroupbox.h @@ -52,8 +52,8 @@ class TQ_EXPORT TQVGroupBox : public TQGroupBox Q_OBJECT TQ_OBJECT public: - TQVGroupBox( TQWidget* tqparent=0, const char* name=0 ); - TQVGroupBox( const TQString &title, TQWidget* tqparent=0, const char* name=0 ); + TQVGroupBox( TQWidget* parent=0, const char* name=0 ); + TQVGroupBox( const TQString &title, TQWidget* parent=0, const char* name=0 ); ~TQVGroupBox(); diff --git a/tqtinterface/qt4/src/widgets/tqwhatsthis.cpp b/tqtinterface/qt4/src/widgets/tqwhatsthis.cpp index 3ada619..a3275b2 100644 --- a/tqtinterface/qt4/src/widgets/tqwhatsthis.cpp +++ b/tqtinterface/qt4/src/widgets/tqwhatsthis.cpp @@ -135,7 +135,7 @@ class TQWhatsThisButton: public TQToolButton TQ_OBJECT public: - TQWhatsThisButton( TQWidget * tqparent, const char * name ); + TQWhatsThisButton( TQWidget * parent, const char * name ); ~TQWhatsThisButton(); public Q_SLOTS: @@ -149,7 +149,7 @@ class TQWhatsThat : public TQWidget Q_OBJECT TQ_OBJECT public: - TQWhatsThat( TQWidget* w, const TQString& txt, TQWidget* tqparent, const char* name ); + TQWhatsThat( TQWidget* w, const TQString& txt, TQWidget* parent, const char* name ); ~TQWhatsThat() ; public Q_SLOTS: @@ -243,8 +243,8 @@ void qWhatsThisBDH() } -TQWhatsThat::TQWhatsThat( TQWidget* w, const TQString& txt, TQWidget* tqparent, const char* name ) - : TQWidget( tqparent, name, WType_Popup ), text( txt ), pressed( FALSE ), widget( w ) +TQWhatsThat::TQWhatsThat( TQWidget* w, const TQString& txt, TQWidget* parent, const char* name ) + : TQWidget( parent, name, WType_Popup ), text( txt ), pressed( FALSE ), widget( w ) { setBackgroundMode( TQt::NoBackground ); @@ -448,8 +448,8 @@ static const char * const button_image[] = { " ooo "}; // the button class -TQWhatsThisButton::TQWhatsThisButton( TQWidget * tqparent, const char * name ) - : TQToolButton( tqparent, name ) +TQWhatsThisButton::TQWhatsThisButton( TQWidget * parent, const char * name ) + : TQToolButton( parent, name ) { TQPixmap p( (const char**)button_image ); setPixmap( p ); @@ -808,7 +808,7 @@ void TQWhatsThis::remove( TQWidget * widget ) the mouse position; this is useful, for example, if you've subclassed to make the text that is displayed position dependent. - If \a includeParents is TRUE, tqparent widgets are taken into + If \a includeParents is TRUE, parent widgets are taken into consideration as well when looking for what's this help text. \sa add() @@ -838,15 +838,15 @@ TQString TQWhatsThis::textFor( TQWidget * w, const TQPoint& pos, bool includePar /*! Creates a TQToolButton preconfigured to enter "What's this?" mode when clicked. You will often use this with a tool bar as \a - tqparent: + parent: \code (void) TQWhatsThis::whatsThisButton( my_help_tool_bar ); \endcode */ -TQToolButton * TQWhatsThis::whatsThisButton( TQWidget * tqparent ) +TQToolButton * TQWhatsThis::whatsThisButton( TQWidget * parent ) { TQWhatsThisPrivate::setUpWhatsThis(); - return new TQWhatsThisButton( tqparent, + return new TQWhatsThisButton( parent, "automatic what's this? button" ); } diff --git a/tqtinterface/qt4/src/widgets/tqwhatsthis.h b/tqtinterface/qt4/src/widgets/tqwhatsthis.h index 7ef3e8d..dbc1259 100644 --- a/tqtinterface/qt4/src/widgets/tqwhatsthis.h +++ b/tqtinterface/qt4/src/widgets/tqwhatsthis.h @@ -67,7 +67,7 @@ public: static void remove( TQWidget * ); static TQString textFor( TQWidget *, const TQPoint & pos = TQPoint(), bool includeParents = FALSE ); - static TQToolButton * whatsThisButton( TQWidget * tqparent ); + static TQToolButton * whatsThisButton( TQWidget * parent ); static void enterWhatsThisMode(); static bool inWhatsThisMode(); diff --git a/tqtinterface/qt4/src/widgets/tqwidgetinterface_p.h b/tqtinterface/qt4/src/widgets/tqwidgetinterface_p.h index 022294d..008fb3e 100644 --- a/tqtinterface/qt4/src/widgets/tqwidgetinterface_p.h +++ b/tqtinterface/qt4/src/widgets/tqwidgetinterface_p.h @@ -76,8 +76,8 @@ struct TQWidgetFactoryInterface : public TQFeatureListInterface public: /*! In the implementation create and return the widget \a widget - here, use \a tqparent and \a name when creating the widget */ - virtual TQWidget* create( const TQString &widget, TQWidget* tqparent = 0, const char* name = 0 ) = 0; + here, use \a parent and \a name when creating the widget */ + virtual TQWidget* create( const TQString &widget, TQWidget* parent = 0, const char* name = 0 ) = 0; /*! In the implementation return the name of the group of the widget \a widget */ diff --git a/tqtinterface/qt4/src/widgets/tqwidgetplugin.cpp b/tqtinterface/qt4/src/widgets/tqwidgetplugin.cpp index 9b4d106..57eed86 100644 --- a/tqtinterface/qt4/src/widgets/tqwidgetplugin.cpp +++ b/tqtinterface/qt4/src/widgets/tqwidgetplugin.cpp @@ -91,7 +91,7 @@ public: TQ_REFCOUNT; TQStringList featureList() const; - TQWidget *create( const TQString &key, TQWidget *tqparent, const char *name ); + TQWidget *create( const TQString &key, TQWidget *parent, const char *name ); TQString group( const TQString &widget ) const; TQIconSet iconSet( const TQString &widget ) const; TQString includeFile( const TQString &widget ) const; @@ -166,7 +166,7 @@ TQRESULT TQWidgetPluginPrivate::queryInterface( const TQUuid &iid, TQUnknownInte Creates and returns a TQWidget object for the widget key \a key. The widget key is the class name of the required widget. The \a - name and \a tqparent arguments are passed to the custom widget's + name and \a parent arguments are passed to the custom widget's constructor. \sa keys() @@ -182,9 +182,9 @@ TQStringList TQWidgetPluginPrivate::featureList() const return plugin->keys(); } -TQWidget *TQWidgetPluginPrivate::create( const TQString &key, TQWidget *tqparent, const char *name ) +TQWidget *TQWidgetPluginPrivate::create( const TQString &key, TQWidget *parent, const char *name ) { - TQWidget *w = plugin->create( key, tqparent, name ); + TQWidget *w = plugin->create( key, parent, name ); widgets.add( TQT_TQOBJECT(w) ); return w; } diff --git a/tqtinterface/qt4/src/widgets/tqwidgetplugin.h b/tqtinterface/qt4/src/widgets/tqwidgetplugin.h index 5544677..b879396 100644 --- a/tqtinterface/qt4/src/widgets/tqwidgetplugin.h +++ b/tqtinterface/qt4/src/widgets/tqwidgetplugin.h @@ -70,7 +70,7 @@ public: ~TQWidgetPlugin(); virtual TQStringList keys() const = 0; - virtual TQWidget *create( const TQString &key, TQWidget *tqparent = 0, const char *name = 0 ) = 0; + virtual TQWidget *create( const TQString &key, TQWidget *parent = 0, const char *name = 0 ) = 0; virtual TQString group( const TQString &key ) const; virtual TQIconSet iconSet( const TQString &key ) const; diff --git a/tqtinterface/qt4/src/widgets/tqwidgetresizehandler.cpp b/tqtinterface/qt4/src/widgets/tqwidgetresizehandler.cpp index d09353d..beaf51f 100644 --- a/tqtinterface/qt4/src/widgets/tqwidgetresizehandler.cpp +++ b/tqtinterface/qt4/src/widgets/tqwidgetresizehandler.cpp @@ -54,8 +54,8 @@ static bool resizeHorizontalDirectionFixed = FALSE; static bool resizeVerticalDirectionFixed = FALSE; -TQWidgetResizeHandler::TQWidgetResizeHandler( TQWidget *tqparent, TQWidget *cw, const char *name ) - : TQObject( tqparent, name ), widget( tqparent ), childWidget( cw ? cw : tqparent ), +TQWidgetResizeHandler::TQWidgetResizeHandler( TQWidget *parent, TQWidget *cw, const char *name ) + : TQObject( parent, name ), widget( parent ), childWidget( cw ? cw : parent ), extrahei( 0 ), buttonDown( FALSE ), moveResizeMode( FALSE ), sizeprotect( TRUE ), moving( TRUE ) { mode = Nowhere; diff --git a/tqtinterface/qt4/src/widgets/tqwidgetresizehandler_p.h b/tqtinterface/qt4/src/widgets/tqwidgetresizehandler_p.h index bb2b1cb..472f3e3 100644 --- a/tqtinterface/qt4/src/widgets/tqwidgetresizehandler_p.h +++ b/tqtinterface/qt4/src/widgets/tqwidgetresizehandler_p.h @@ -72,7 +72,7 @@ public: Any = Move|Resize }; - TQWidgetResizeHandler( TQWidget *tqparent, TQWidget *cw = 0, const char *name = 0 ); + TQWidgetResizeHandler( TQWidget *parent, TQWidget *cw = 0, const char *name = 0 ); void setActive( bool b ) { setActive( Any, b ); } void setActive( Action ac, bool b ); bool isActive() const { return isActive( Any ); } diff --git a/tqtinterface/qt4/src/widgets/tqwidgetstack.cpp b/tqtinterface/qt4/src/widgets/tqwidgetstack.cpp index ff78a7b..93be95f 100644 --- a/tqtinterface/qt4/src/widgets/tqwidgetstack.cpp +++ b/tqtinterface/qt4/src/widgets/tqwidgetstack.cpp @@ -200,7 +200,7 @@ int TQWidgetStack::addWidget(TQWidget * w, int id) } w->hide(); - if (w->parent() != this) + if (w->QWidget::parent() != this) w->reparent(this, contentsRect().topLeft(), false); w->setGeometry(contentsRect()); updateGeometry(); @@ -271,7 +271,7 @@ static bool isChildOf(TQWidget* child, TQWidget *parent) void TQWidgetStack::raiseWidget(TQWidget *w) { - if (!w || w == invisible || w->parent() != this || w == topWidget) + if (!w || w == invisible || w->QWidget::parent() != this || w == topWidget) return; if (id(w) == -1) @@ -629,7 +629,7 @@ public: class Invisible: public TQWidget { public: - Invisible( TQWidgetStack * tqparent ): TQWidget( tqparent, "qt_invisible_widgetstack" ) + Invisible( TQWidgetStack * parent ): TQWidget( parent, "qt_invisible_widgetstack" ) { setBackgroundMode( TQt::NoBackground ); } @@ -655,14 +655,14 @@ class TQWidgetStackEventFilter : public TQObject bool TQWidgetStack::event( TQEvent* e ) { if ( e->type() == TQEvent::LayoutHint ) - updateGeometry(); // propgate tqlayout hints to tqparent + updateGeometry(); // propgate tqlayout hints to parent return TQFrame::event( e ); } */ public: - TQWidgetStackEventFilter( TQObject *tqparent = 0, const char * name = 0 ) - : TQObject( tqparent, name ) {} + TQWidgetStackEventFilter( TQObject *parent = 0, const char * name = 0 ) + : TQObject( parent, name ) {} bool eventFilter( TQObject *o, TQEvent * e ) { if ( e->type() == TQEvent::LayoutHint && o->isWidgetType() ) ((TQWidget*)o)->updateGeometry(); @@ -682,7 +682,7 @@ public: The application programmer can move any widget to the top of the stack at any time using raiseWidget(), and add or remove widgets using addWidget() and removeWidget(). It is not sufficient to pass - the widget stack as tqparent to a widget which should be inserted into + the widget stack as parent to a widget which should be inserted into the widgetstack. visibleWidget() is the \e get equivalent of raiseWidget(); it @@ -709,12 +709,12 @@ public: /*! Constructs an empty widget stack. - The \a tqparent and \a name arguments are passed to the TQFrame + The \a parent and \a name arguments are passed to the TQFrame constructor. */ -TQWidgetStack::TQWidgetStack( TQWidget * tqparent, const char *name ) - : TQFrame( tqparent, name ) +TQWidgetStack::TQWidgetStack( TQWidget * parent, const char *name ) + : TQFrame( parent, name ) { init(); } @@ -722,11 +722,11 @@ TQWidgetStack::TQWidgetStack( TQWidget * tqparent, const char *name ) /*! Constructs an empty widget stack. - The \a tqparent, \a name and \a f arguments are passed to the TQFrame + The \a parent, \a name and \a f arguments are passed to the TQFrame constructor. */ -TQWidgetStack::TQWidgetStack( TQWidget * tqparent, const char *name, WFlags f ) - : TQFrame( tqparent, name, f ) //## merge constructors in 4.0 +TQWidgetStack::TQWidgetStack( TQWidget * parent, const char *name, WFlags f ) + : TQFrame( parent, name, f ) //## merge constructors in 4.0 { init(); } @@ -808,7 +808,7 @@ int TQWidgetStack::addWidget( TQWidget * w, int id ) } w->hide(); - if ( w->tqparent() != TQT_TQOBJECT(this) ) + if ( w->parent() != TQT_TQOBJECT(this) ) w->reparent( this, contentsRect().topLeft(), FALSE ); w->setGeometry( contentsRect() ); updateGeometry(); @@ -855,11 +855,11 @@ void TQWidgetStack::raiseWidget( int id ) raiseWidget( w ); } -static bool isChildOf( TQWidget* child, TQWidget *tqparent ) +static bool isChildOf( TQWidget* child, TQWidget *parent ) { - if ( !child || !tqparent->childrenListObject().isEmpty() ) + if ( !child || !parent->childrenListObject().isEmpty() ) return FALSE; - TQObjectListIt it(tqparent->childrenListObject()); + TQObjectListIt it(parent->childrenListObject()); TQObject *obj; while ( (obj = it.current()) ) { ++it; @@ -880,7 +880,7 @@ static bool isChildOf( TQWidget* child, TQWidget *tqparent ) void TQWidgetStack::raiseWidget( TQWidget *w ) { - if ( !w || w == invisible || w->tqparent() != TQT_TQOBJECT(this) || w == topWidget ) + if ( !w || w == invisible || w->parent() != TQT_TQOBJECT(this) || w == topWidget ) return; if ( id(w) == -1 ) diff --git a/tqtinterface/qt4/src/widgets/tqwidgetstack.h b/tqtinterface/qt4/src/widgets/tqwidgetstack.h index 5c0acfd..ce0347f 100644 --- a/tqtinterface/qt4/src/widgets/tqwidgetstack.h +++ b/tqtinterface/qt4/src/widgets/tqwidgetstack.h @@ -178,8 +178,8 @@ class TQ_EXPORT TQWidgetStack: public TQFrame Q_OBJECT TQ_OBJECT public: - TQWidgetStack( TQWidget* tqparent=0, const char* name=0 ); - TQWidgetStack( TQWidget* tqparent, const char* name, WFlags f); + TQWidgetStack( TQWidget* parent=0, const char* name=0 ); + TQWidgetStack( TQWidget* parent, const char* name, WFlags f); ~TQWidgetStack(); |