From cbecd3a8a71c92976314479c9ce892ee8138da5d Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 2 Apr 2011 21:48:09 +0000 Subject: Update kdebase inherits() to use new object name defines instead of string literals git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1226899 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- konqueror/konq_actions.cc | 2 +- konqueror/konq_mainwindow.cc | 2 +- konqueror/konq_view.cc | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'konqueror') diff --git a/konqueror/konq_actions.cc b/konqueror/konq_actions.cc index 047066040..c67d27c8f 100644 --- a/konqueror/konq_actions.cc +++ b/konqueror/konq_actions.cc @@ -94,7 +94,7 @@ int KonqBidiHistoryAction::plug( TQWidget *widget, int index ) return -1; // Go menu - if ( widget->inherits("QPopupMenu") ) + if ( widget->inherits(TQPOPUPMENU_OBJECT_NAME_STRING) ) { m_goMenu = (TQPopupMenu*)widget; // Forward signal (to main view) diff --git a/konqueror/konq_mainwindow.cc b/konqueror/konq_mainwindow.cc index f162c0b60..79b88daa3 100644 --- a/konqueror/konq_mainwindow.cc +++ b/konqueror/konq_mainwindow.cc @@ -1044,7 +1044,7 @@ TQObject *KonqMainWindow::lastFrame( KonqView *view ) TQObject *nextFrame, *viewFrame; nextFrame = TQT_TQOBJECT(view->frame()); viewFrame = 0; - while ( nextFrame != 0 && ! nextFrame->inherits( "QWidgetStack" ) ) { + while ( nextFrame != 0 && ! nextFrame->inherits( TQWIDGETSTACK_OBJECT_NAME_STRING ) ) { viewFrame = nextFrame; nextFrame = nextFrame->tqparent(); } diff --git a/konqueror/konq_view.cc b/konqueror/konq_view.cc index 873ba8242..a064e3116 100644 --- a/konqueror/konq_view.cc +++ b/konqueror/konq_view.cc @@ -472,7 +472,7 @@ void KonqView::connectPart( ) m_pPart->widget()->installEventFilter( this ); - if (m_bBackRightClick && m_pPart->widget()->inherits("QScrollView") ) + if (m_bBackRightClick && m_pPart->widget()->inherits(TQSCROLLVIEW_OBJECT_NAME_STRING) ) { (static_cast(m_pPart->widget()))->viewport()->installEventFilter( this ); } @@ -1220,7 +1220,7 @@ void KonqView::reparseConfiguration() bool b = KonqSettings::backRightClick(); if ( m_bBackRightClick != b ) { - if (m_bBackRightClick && m_pPart->widget()->inherits("QScrollView") ) + if (m_bBackRightClick && m_pPart->widget()->inherits(TQSCROLLVIEW_OBJECT_NAME_STRING) ) { (static_cast(m_pPart->widget()))->viewport()->installEventFilter( this ); } -- cgit v1.2.1