diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:22:56 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:22:56 +0000 |
commit | 7346aee26bf190a7e70333c40fab4caca847cd27 (patch) | |
tree | 4b019b434f88dcc3eeaafe1d3f26240b4c4718e8 /ksig/siggenerator.cpp | |
parent | 23a3d3aa5b44cbdf305495919866d9dbf4f6da54 (diff) | |
download | tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.tar.gz tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1157634 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksig/siggenerator.cpp')
-rw-r--r-- | ksig/siggenerator.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
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 <kconfig.h> #include <kdebug.h> -#include <qfile.h> -#include <qdatetime.h> +#include <tqfile.h> +#include <tqdatetime.h> 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; |