summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--knights/tabpage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/knights/tabpage.cpp b/knights/tabpage.cpp
index 48f3656..8c2752f 100644
--- a/knights/tabpage.cpp
+++ b/knights/tabpage.cpp
@@ -138,10 +138,10 @@ void TabPage::setCaption( const TQString &caption )
TabBox* TabPage::parentTabBox( void )
{
TQWidget *myParent = this->parentWidget();
- if( TQString( myParent->className() ) == TQWIDGETSTACK_OBJECT_NAME_STRING )
+ if( TQString( myParent->className() ) == "TQWidgetStack" )
{
myParent = myParent->parentWidget();
- if( TQString( myParent->className() ) == TQTABWIDGET_OBJECT_NAME_STRING )
+ if( TQString( myParent->className() ) == "TQTabWidget" )
{
myParent = myParent->parentWidget();
if( TQString( myParent->className() ) == "TabBox" )