summaryrefslogtreecommitdiffstats
path: root/ksirc/topic.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:33:51 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:33:51 -0600
commit089118c18533dfa3e6ce5065dbebdd4db94051f1 (patch)
treece014fb2326a80fcfafa2362b7ff88486aa17c96 /ksirc/topic.cpp
parent83677e35509b4dafac63b76995652bdf3b49f209 (diff)
downloadtdenetwork-089118c18533dfa3e6ce5065dbebdd4db94051f1.tar.gz
tdenetwork-089118c18533dfa3e6ce5065dbebdd4db94051f1.zip
Rename old tq methods that no longer need a unique name
Diffstat (limited to 'ksirc/topic.cpp')
-rw-r--r--ksirc/topic.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/ksirc/topic.cpp b/ksirc/topic.cpp
index a470c3c7..91754dd8 100644
--- a/ksirc/topic.cpp
+++ b/ksirc/topic.cpp
@@ -34,13 +34,13 @@ KSircTopic::KSircTopic( TQWidget *parent, const char *name )
m_editor = 0;
m_doEdit = false;
m_height = 0;
-// setBackgroundColor( tqcolorGroup().light() );
+// setBackgroundColor( colorGroup().light() );
setFrameStyle( TQFrame::Panel | TQFrame::Sunken );
- tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed ) );
+ setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed ) );
setTextFormat( RichText );
setWordWrap(TQTextEdit::NoWrap);
doResize();
-// tqsetAlignment( tqalignment() | WordBreak );
+// setAlignment( tqalignment() | WordBreak );
}
void KSircTopic::setText( const TQString &_text)
@@ -65,11 +65,11 @@ void KSircTopic::setText( const TQString &_text)
// '<nick message<' , which is supposedly a bug in TQt's reordering. The
// same is done for [nick] and >nick< to catch queries.
TQRegExp bidiRe( "^(&lt;\\S+&gt;)(.+)$" );
- text.replace( bidiRe, TQString::tqfromLatin1( "<span>\\1</span>\\2" ) );
+ text.replace( bidiRe, TQString::fromLatin1( "<span>\\1</span>\\2" ) );
TQRegExp bidiRe2( "^(\\[\\S+\\])(.+)$" );
- text.replace( bidiRe2, TQString::tqfromLatin1( "<span>\\1</span>\\2" ) );
+ text.replace( bidiRe2, TQString::fromLatin1( "<span>\\1</span>\\2" ) );
TQRegExp bidiRe3( "^(&gt;\\S+&lt;)(.+)$" );
- text.replace( bidiRe3, TQString::tqfromLatin1( "<span>\\1</span>\\2" ) );
+ text.replace( bidiRe3, TQString::fromLatin1( "<span>\\1</span>\\2" ) );
KSParser parser;
richText += parser.parse( text );
@@ -211,7 +211,7 @@ void KSircTopicEditor::focusOutEvent( TQFocusEvent * fe )
// menu
if ( fe->reason() == TQFocusEvent::Popup )
{
- TQWidget *focusw = tqApp->tqfocusWidget();
+ TQWidget *focusw = tqApp->focusWidget();
if ( focusw && m_popup && focusw == m_popup )
return;
}