diff --git a/knights/tabbox.cpp b/knights/tabbox.cpp index bc103f4..4e8d9ce 100644 --- a/knights/tabbox.cpp +++ b/knights/tabbox.cpp @@ -108,7 +108,7 @@ void TabBox::removeTab( TQWidget *child, bool deleteChild ) else { emit saveTabGeometry( TQString( child->className() ), size() ); - myTabs->removePage( child->tqparentWidget() ); + myTabs->removePage( child->parentWidget() ); } /* Delete it if requested */ @@ -125,7 +125,7 @@ void TabBox::removeTab( TQWidget *child, bool deleteChild ) void TabBox::showTab( TQWidget *child ) { if( isChild( child ) ) - myTabs->showPage( child->tqparentWidget() ); + myTabs->showPage( child->parentWidget() ); } /////////////////////////////////////// // @@ -201,8 +201,8 @@ void TabBox::changeCaption( TQWidget *child, const TQString &caption ) } else if( isChild( child ) ) { - ((TabPage*)child->tqparentWidget())->setCaption( caption ); - myTabs->setTabLabel( child->tqparentWidget(), caption ); + ((TabPage*)child->parentWidget())->setCaption( caption ); + myTabs->setTabLabel( child->parentWidget(), caption ); } changeMyCaption( myTabs->currentPage() ); } diff --git a/knights/tabpage.cpp b/knights/tabpage.cpp index e532a81..959373e 100644 --- a/knights/tabpage.cpp +++ b/knights/tabpage.cpp @@ -75,7 +75,7 @@ TabPage::~TabPage() /////////////////////////////////////// void TabPage::tabDragged( const TQPoint &dest, const TQPoint &offset ) { - TabBox *myParent = tqparentTabBox(); + TabBox *myParent = parentTabBox(); if( myParent != NULL ) { TQWidget *destWidget = TQApplication::widgetAt( dest, TRUE ); @@ -108,7 +108,7 @@ void TabPage::tabDragged( const TQPoint &dest, const TQPoint &offset ) break; } } - destWidget = destWidget->tqparentWidget(); + destWidget = destWidget->parentWidget(); } if( myParent->count() == 0 ) { @@ -132,18 +132,18 @@ void TabPage::setCaption( const TQString &caption ) } /////////////////////////////////////// // -// TabPage::tqparentTabBox +// TabPage::parentTabBox // /////////////////////////////////////// -TabBox* TabPage::tqparentTabBox( void ) +TabBox* TabPage::parentTabBox( void ) { - TQWidget *myParent = this->tqparentWidget(); + TQWidget *myParent = this->parentWidget(); if( TQString( myParent->className() ) == TQWIDGETSTACK_OBJECT_NAME_STRING ) { - myParent = myParent->tqparentWidget(); + myParent = myParent->parentWidget(); if( TQString( myParent->className() ) == TQTABWIDGET_OBJECT_NAME_STRING ) { - myParent = myParent->tqparentWidget(); + myParent = myParent->parentWidget(); if( TQString( myParent->className() ) == "TabBox" ) { return ((TabBox*)myParent); diff --git a/knights/tabpage.h b/knights/tabpage.h index ba1388c..47f6b9c 100644 --- a/knights/tabpage.h +++ b/knights/tabpage.h @@ -50,7 +50,7 @@ class TabPage : public TQVBox void requestDestruction( void ); protected: - TabBox* tqparentTabBox( void ); + TabBox* parentTabBox( void ); private: TQString myCaption;