|
|
|
@ -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 ) ) )
|
|
|
|
|