From 496ef854d662079ff8c901e9a3073245eb92ab46 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 7 Mar 2012 21:10:36 -0600 Subject: [PATCH] Rename additional members for tqt3 --- src/katemdi.cpp | 4 ++-- src/textdocument.cpp | 2 +- src/textview.cpp | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/katemdi.cpp b/src/katemdi.cpp index 4c817ea..460de99 100644 --- a/src/katemdi.cpp +++ b/src/katemdi.cpp @@ -181,8 +181,8 @@ bool ToolView::visible () const void ToolView::childEvent ( TQChildEvent *ev ) { // set the widget to be focus proxy if possible - if (ev->inserted() && ev->child() && TQT_TQOBJECT(ev->child())->qt_cast(TQWIDGET_OBJECT_NAME_STRING)) - setFocusProxy ((TQWidget *)(TQT_TQOBJECT(ev->child())->qt_cast(TQWIDGET_OBJECT_NAME_STRING))); + if (ev->inserted() && ev->child() && TQT_TQOBJECT(ev->child())->tqt_cast(TQWIDGET_OBJECT_NAME_STRING)) + setFocusProxy ((TQWidget *)(TQT_TQOBJECT(ev->child())->tqt_cast(TQWIDGET_OBJECT_NAME_STRING))); TQVBox::childEvent (ev); } diff --git a/src/textdocument.cpp b/src/textdocument.cpp index 53d98e4..d31dc6f 100644 --- a/src/textdocument.cpp +++ b/src/textdocument.cpp @@ -145,7 +145,7 @@ View * TextDocument::createView( ViewContainer *viewContainer, uint viewAreaId, Kate::View* TextDocument::createKateView( TQWidget *parent, const char *name ) { - return static_cast((m_doc->createView( parent, name ))->qt_cast("Kate::View")); + return static_cast((m_doc->createView( parent, name ))->tqt_cast("Kate::View")); } diff --git a/src/textview.cpp b/src/textview.cpp index e5c4648..c8c0b95 100644 --- a/src/textview.cpp +++ b/src/textview.cpp @@ -321,7 +321,7 @@ void TextView::slotWordHoveredOver( const TQString & word, int line, int col ) } // Find out if the word that we are hovering over is the operand data - KTextEditor::EditInterface * e = (KTextEditor::EditInterface*)textDocument()->kateDocument()->qt_cast("KTextEditor::EditInterface"); + KTextEditor::EditInterface * e = (KTextEditor::EditInterface*)textDocument()->kateDocument()->tqt_cast("KTextEditor::EditInterface"); InstructionParts parts( e->textLine( unsigned(line) ) ); if ( !parts.operandData().contains( word ) ) return; @@ -373,7 +373,7 @@ TextViewEventFilter::TextViewEventFilter( TextView * textView ) m_pTextView = textView; m_lastLine = m_lastCol = -1; - ((KTextEditor::TextHintInterface*)textView->kateView()->qt_cast("KTextEditor::TextHintInterface"))->enableTextHints(0); + ((KTextEditor::TextHintInterface*)textView->kateView()->tqt_cast("KTextEditor::TextHintInterface"))->enableTextHints(0); connect( textView->kateView(), TQT_SIGNAL(needTextHint(int, int, TQString &)), this, TQT_SLOT(slotNeedTextHint( int, int, TQString& )) ); m_pHoverTimer = new TQTimer( this ); @@ -465,7 +465,7 @@ void TextViewEventFilter::slotNeedTextHint( int line, int col, TQString & ) { m_pNoWordTimer->stop(); - KTextEditor::EditInterface * e = (KTextEditor::EditInterface*)m_pTextView->textDocument()->kateDocument()->qt_cast("KTextEditor::EditInterface"); + KTextEditor::EditInterface * e = (KTextEditor::EditInterface*)m_pTextView->textDocument()->kateDocument()->tqt_cast("KTextEditor::EditInterface"); // Return if we aren't currently in a word if ( !isWordLetter( e->text( line, col, line, col+1 ) ) )