diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-02-15 19:15:16 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-02-15 19:15:16 +0000 |
commit | cc0ad49c75d6cf6b4e63eb8c6012afe55c1589f9 (patch) | |
tree | 2a29ccab4d3cea34b87bfcbc38e64a8e25d25bb0 /kate/app/kateexternaltools.cpp | |
parent | 107dd1f98367d07df7cbe2042786511e44706d3a (diff) | |
download | tdebase-cc0ad49c75d6cf6b4e63eb8c6012afe55c1589f9.tar.gz tdebase-cc0ad49c75d6cf6b4e63eb8c6012afe55c1589f9.zip |
Allow kdebase to (mostly) function correctly with TQt for Qt4
Fix kicker tackbar handling under Classic mode (thanks to Ilya Chernykh for the patch)
Fix a newly invalidated section of code under GCC 4.5.2 (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47723#c6)
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1220927 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kate/app/kateexternaltools.cpp')
-rw-r--r-- | kate/app/kateexternaltools.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kate/app/kateexternaltools.cpp b/kate/app/kateexternaltools.cpp index a7b1f2afd..1a2d60a53 100644 --- a/kate/app/kateexternaltools.cpp +++ b/kate/app/kateexternaltools.cpp @@ -186,12 +186,12 @@ void KateExternalToolsCommand::reload () { } bool KateExternalToolsCommand::exec (Kate::View *view, const TQString &cmd, TQString &) { - TQWidget *wv=dynamic_cast<TQWidget*>(view); + TQWidget *wv=tqt_dynamic_cast<TQWidget*>(view); if (!wv) { // kdDebug(13001)<<"KateExternalToolsCommand::exec: Could not get view widget"<<endl; return false; } - KateMDI::MainWindow *dmw=dynamic_cast<KateMDI::MainWindow*>(wv->tqtopLevelWidget()); + KateMDI::MainWindow *dmw=tqt_dynamic_cast<KateMDI::MainWindow*>(wv->tqtopLevelWidget()); if (!dmw) { // kdDebug(13001)<<"KateExternalToolsCommand::exec: Could not get main window"<<endl; return false; @@ -201,7 +201,7 @@ bool KateExternalToolsCommand::exec (Kate::View *view, const TQString &cmd, TQSt if (actionName.isEmpty()) return false; // kdDebug(13001)<<"actionName is not empty:"<<actionName<<endl; KateExternalToolsMenuAction *a= - dynamic_cast<KateExternalToolsMenuAction*>(dmw->action("tools_external")); + tqt_dynamic_cast<KateExternalToolsMenuAction*>(dmw->action("tools_external")); if (!a) return false; // kdDebug(13001)<<"trying to find action"<<endl; KAction *a1=a->actionCollection()->action(static_cast<const char *>(actionName.utf8())); @@ -390,7 +390,7 @@ void KateExternalToolsMenuAction::slotDocumentChanged() KActionPtrList actions = m_actionCollection->actions(); for (KActionPtrList::iterator it = actions.begin(); it != actions.end(); ++it ) { - KateExternalToolAction *action = dynamic_cast<KateExternalToolAction*>(*it); + KateExternalToolAction *action = tqt_dynamic_cast<KateExternalToolAction*>(*it); if ( action ) { l = action->tool->mimetypes; |