From 6803a8bb7fb8dbc6b4dab1215bfa601c4ecb6245 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 24 Feb 2011 07:08:32 +0000 Subject: Fix a number of runtime object identification problems which led to an even larger array of minor glitches NOTE: kdevelop and kdewebdev still need to be fully repaired git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1222475 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kpovmodeler/pmdockwidget.cpp | 4 ++-- kuickshow/src/kuickshow.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/kpovmodeler/pmdockwidget.cpp b/kpovmodeler/pmdockwidget.cpp index 499d1cef..67fbc1c7 100644 --- a/kpovmodeler/pmdockwidget.cpp +++ b/kpovmodeler/pmdockwidget.cpp @@ -1310,7 +1310,7 @@ void PMDockManager::activate() obj->show(); } } - if ( !main->inherits("TQDialog") ) main->show(); + if ( !main->inherits(TQDIALOG_OBJECT_NAME_STRING) ) main->show(); } bool PMDockManager::eventFilter( TQObject *obj, TQEvent *event ) @@ -2466,7 +2466,7 @@ void PMDockArea::resizeEvent(TQResizeEvent *rsize) #ifndef NO_KDE2 kdDebug()<<"PMDockArea::resize"<view() ) { TQWidget *widget = fileWidget->view()->widget(); - if ( widget->inherits( "TQIconView" ) || widget->child(0, "TQIconView" ) ){ + if ( widget->inherits( TQICONVIEW_OBJECT_NAME_STRING ) || widget->child(0, TQICONVIEW_OBJECT_NAME_STRING ) ){ fileWidget->setSorting( fileWidget->sorting() ); } } @@ -1320,7 +1320,7 @@ void KuickShow::replayAdvance(DelayedRepeatEvent *event) // rely on sorting to be correct before the TQIconView has been show()n. if ( fileWidget && fileWidget->view() ) { TQWidget *widget = fileWidget->view()->widget(); - if ( widget->inherits( "TQIconView" ) || widget->child(0, "TQIconView" ) ){ + if ( widget->inherits( TQICONVIEW_OBJECT_NAME_STRING ) || widget->child(0, TQICONVIEW_OBJECT_NAME_STRING ) ){ fileWidget->setSorting( fileWidget->sorting() ); } } -- cgit v1.2.1