summaryrefslogtreecommitdiffstats
path: root/ksirc/kstextviewtest.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
commit69cac65817d949cda2672ec4f0aa73d5e66a0ba1 (patch)
tree073fde0496ea90eb5bf5cffe66a8da43a9f55fbc /ksirc/kstextviewtest.cpp
parent3467e6464beac3a162839bf7078e22e3a74d73e7 (diff)
downloadtdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.tar.gz
tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.zip
TQt4 port kdenetwork
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksirc/kstextviewtest.cpp')
-rw-r--r--ksirc/kstextviewtest.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/ksirc/kstextviewtest.cpp b/ksirc/kstextviewtest.cpp
index d20e6e50..fd5133ac 100644
--- a/ksirc/kstextviewtest.cpp
+++ b/ksirc/kstextviewtest.cpp
@@ -3,7 +3,7 @@
#include "kstextview.h"
-class Timer : public QObject
+class Timer : public TQObject
{
public:
Timer( KSirc::TextView *view )
@@ -16,8 +16,8 @@ public:
m_lines++;
if ( m_lines > 15 )
m_view->removeParag( m_view->firstParag() );
- m_view->appendParag( TQString::fromLatin1( "<font color=#0000ff>color test</font><font color=#00ff00>color test</font><font color=#ff0000>color test</font><font color=#000088>color test</font><font color=#008800>color test</font><font color=#880000>color test</font><font color=#0000ff>color test</font><font color=#02ff00>color test</font><font color=#2000ff>color test</font>" ) );
- m_view->appendParag( TQString::fromLatin1( "<r>aaaaaa</r> bbbbbb cccccccc ddddddddd eeeeeee " ) );
+ m_view->appendParag( TQString::tqfromLatin1( "<font color=#0000ff>color test</font><font color=#00ff00>color test</font><font color=#ff0000>color test</font><font color=#000088>color test</font><font color=#008800>color test</font><font color=#880000>color test</font><font color=#0000ff>color test</font><font color=#02ff00>color test</font><font color=#2000ff>color test</font>" ) );
+ m_view->appendParag( TQString::tqfromLatin1( "<r>aaaaaa</r> bbbbbb cccccccc ddddddddd eeeeeee " ) );
m_view->setContentsPos( 0, m_view->contentsHeight() );
}
private:
@@ -33,17 +33,17 @@ int main( int argc, char **argv )
app.setMainWidget( &view );
view.show();
- view.appendParag( TQString::fromLatin1( "<b>bold</b>Normal<i>Italic hey!</i><r>reverse!</r>" ) );
- view.appendParag( TQString::fromLatin1( "bleh foo hey bar schubidu bliep blop" ) );
- view.appendParag( TQString::fromLatin1( "more longish paragraphs .. yaddayadda yadda" ) );
- view.appendParag( TQString::fromLatin1( "&lt;tronical&gt; hah! &amp;" ) );
- view.appendParag( TQString::fromLatin1( "<a href=\"http://www.kde.org/\">url</a>" ) );
- view.appendParag( TQString::fromLatin1( "<font color=#0000ff bgcolor=#ff0000>color test</font>" ) );
- view.appendParag( TQString::fromLatin1( "<font color=\"#00ff00\">another color test</font>" ) );
- view.appendParag( TQString::fromLatin1( "<font color=\"#00ff00\" bgcolor=\"#ff0000\">another color test</font>" ) );
- view.appendParag( TQString::fromLatin1( "<i bleh>simple attr test</i><b leh foo=15 doo=\"&amp; > 123 \" oof>complicated attr test</b>" ) );
- view.appendParag( TQString::fromLatin1( "\"<b doo=\"&amp; > 123 \" oof>\"third attr test 2</b>\"" ) );
- view.appendParag( TQString::fromLatin1( "aaaaaa bbbbbb cccccccc ddddddddd eeeeeee" ) );
+ view.appendParag( TQString::tqfromLatin1( "<b>bold</b>Normal<i>Italic hey!</i><r>reverse!</r>" ) );
+ view.appendParag( TQString::tqfromLatin1( "bleh foo hey bar schubidu bliep blop" ) );
+ view.appendParag( TQString::tqfromLatin1( "more longish paragraphs .. yaddayadda yadda" ) );
+ view.appendParag( TQString::tqfromLatin1( "&lt;tronical&gt; hah! &amp;" ) );
+ view.appendParag( TQString::tqfromLatin1( "<a href=\"http://www.kde.org/\">url</a>" ) );
+ view.appendParag( TQString::tqfromLatin1( "<font color=#0000ff bgcolor=#ff0000>color test</font>" ) );
+ view.appendParag( TQString::tqfromLatin1( "<font color=\"#00ff00\">another color test</font>" ) );
+ view.appendParag( TQString::tqfromLatin1( "<font color=\"#00ff00\" bgcolor=\"#ff0000\">another color test</font>" ) );
+ view.appendParag( TQString::tqfromLatin1( "<i bleh>simple attr test</i><b leh foo=15 doo=\"&amp; > 123 \" oof>complicated attr test</b>" ) );
+ view.appendParag( TQString::tqfromLatin1( "\"<b doo=\"&amp; > 123 \" oof>\"third attr test 2</b>\"" ) );
+ view.appendParag( TQString::tqfromLatin1( "aaaaaa bbbbbb cccccccc ddddddddd eeeeeee" ) );
Timer t( &view );
return app.exec();