summaryrefslogtreecommitdiffstats
path: root/ksirc/KSTicker/ksttest.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /ksirc/KSTicker/ksttest.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksirc/KSTicker/ksttest.cpp')
-rw-r--r--ksirc/KSTicker/ksttest.cpp24
1 files changed, 12 insertions, 12 deletions
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 <kapplication.h>
#include <kconfig.h>
-#include <qapplication.h>
-#include <qsocketnotifier.h>
-#include <qregexp.h>
+#include <tqapplication.h>
+#include <tqsocketnotifier.h>
+#include <tqregexp.h>
#include <kaboutdata.h>
#include <kcmdlineargs.h>
#include <klocale.h>
@@ -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();