From 47c8a359c5276062c4bc17f0e82410f29081b502 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:48:06 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- ksirc/KSTicker/ksttest.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'ksirc/KSTicker/ksttest.cpp') diff --git a/ksirc/KSTicker/ksttest.cpp b/ksirc/KSTicker/ksttest.cpp index 81373bd8..36ad249a 100644 --- a/ksirc/KSTicker/ksttest.cpp +++ b/ksirc/KSTicker/ksttest.cpp @@ -1,8 +1,8 @@ #include #include -#include -#include -#include +#include +#include +#include #include #include #include @@ -19,7 +19,7 @@ StdInTicker::StdInTicker() : KSTicker() { kConfig->setGroup("defaults"); - QFont font; + TQFont font; font = kConfig->readFontEntry("font"); font.setFixedPitch(TRUE); setFont(font); @@ -45,8 +45,8 @@ void StdInTicker::readsocket(int socket) char buf[1024]; int bytes = read(socket, buf, 1024); if(bytes){ - QCString str(buf, bytes); - str.replace(QRegExp("\n"), " // "); + TQCString str(buf, bytes); + str.replace(TQRegExp("\n"), " // "); mergeString(str); } } @@ -56,7 +56,7 @@ void StdInTicker::end() delete this; } -void StdInTicker::closeEvent ( QCloseEvent *e ) +void StdInTicker::closeEvent ( TQCloseEvent *e ) { KSTicker::closeEvent(e); delete this; @@ -79,11 +79,11 @@ int main(int argc, char **argv){ opts.load(); StdInTicker *kst = new StdInTicker(); - QSocketNotifier *sn = new QSocketNotifier(0, QSocketNotifier::Read); - QObject::connect(sn, SIGNAL(activated(int)), - kst, SLOT(readsocket(int))); - QObject::connect(kst, SIGNAL(doubleClick()), kst, SLOT(end())); - QObject::connect(kst, SIGNAL(closing()), kst, SLOT(end())); + TQSocketNotifier *sn = new TQSocketNotifier(0, TQSocketNotifier::Read); + TQObject::connect(sn, TQT_SIGNAL(activated(int)), + kst, TQT_SLOT(readsocket(int))); + TQObject::connect(kst, TQT_SIGNAL(doubleClick()), kst, TQT_SLOT(end())); + TQObject::connect(kst, TQT_SIGNAL(closing()), kst, TQT_SLOT(end())); a.setMainWidget(kst); kst->show(); return a.exec(); -- cgit v1.2.1