From 7346aee26bf190a7e70333c40fab4caca847cd27 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:22:56 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1157634 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- ksig/siggenerator.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'ksig/siggenerator.cpp') diff --git a/ksig/siggenerator.cpp b/ksig/siggenerator.cpp index b232cb3..abd2430 100644 --- a/ksig/siggenerator.cpp +++ b/ksig/siggenerator.cpp @@ -23,13 +23,13 @@ #include #include -#include -#include +#include +#include SigGenerator::SigGenerator() { - QString dir = KGlobal::dirs()->saveLocation("appdata"); - QFile file(dir + "sigs.sigml"); + TQString dir = KGlobal::dirs()->saveLocation("appdata"); + TQFile file(dir + "sigs.sigml"); if(file.open(IO_ReadOnly) && doc.setContent(&file)) { signatures = doc.elementsByTagName("signature"); @@ -50,33 +50,33 @@ SigGenerator::~SigGenerator() } -QString SigGenerator::random() const +TQString SigGenerator::random() const { if(signatures.count() <= 0) - return(QString::null); + return(TQString::null); int i = KApplication::random() % signatures.count(); - QString text; + TQString text; SigListViewItem::nodeToText(signatures.item(i), text); return attachStandard(text); } -QString SigGenerator::daily() const +TQString SigGenerator::daily() const { if(signatures.count() <= 0) - return(QString::null); + return(TQString::null); - QDate date; + TQDate date; int i = date.dayOfYear() % signatures.count(); - QString text; + TQString text; SigListViewItem::nodeToText(signatures.item(i), text); return attachStandard(text); } -QString SigGenerator::attachStandard(const QString &text) const +TQString SigGenerator::attachStandard(const TQString &text) const { - QString s = text; + TQString s = text; if(!header.isEmpty()) s = header + "\n" + s; -- cgit v1.2.1