From 374d939d8af431477ce2601815f0ba121b66871c Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 15 Feb 2011 19:11:41 +0000 Subject: Allow kdelibs to function correctly with TQt for Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1220926 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdeui/ktoolbarbutton.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kdeui/ktoolbarbutton.cpp') diff --git a/kdeui/ktoolbarbutton.cpp b/kdeui/ktoolbarbutton.cpp index 42f0d9b90..e5dd0c736 100644 --- a/kdeui/ktoolbarbutton.cpp +++ b/kdeui/ktoolbarbutton.cpp @@ -118,7 +118,7 @@ KToolBarButton::KToolBarButton( const TQString& _icon, int _id, TQToolButton::setTextLabel(_txt); d->m_instance = _instance; - d->m_parent = dynamic_cast(_parent); + d->m_parent = tqt_dynamic_cast(_parent); if (d->m_parent) { connect(d->m_parent, TQT_SIGNAL( modechange() ), this, TQT_SLOT( modeChange() )); @@ -151,7 +151,7 @@ KToolBarButton::KToolBarButton( const TQPixmap& pixmap, int _id, d->m_id = _id; TQToolButton::setTextLabel(txt); - d->m_parent = dynamic_cast(_parent); + d->m_parent = tqt_dynamic_cast(_parent); if (d->m_parent) { connect(d->m_parent, TQT_SIGNAL( modechange() ), this, TQT_SLOT( modeChange() )); @@ -405,7 +405,7 @@ void KToolBarButton::enterEvent(TQEvent *) bool KToolBarButton::eventFilter(TQObject *o, TQEvent *ev) { - if ((KToolBarButton *)o == this) + if (TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(this)) { // Popup the menu when the left mousebutton is pressed and the mouse -- cgit v1.2.3