summaryrefslogtreecommitdiffstats
path: root/ksig/siggenerator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ksig/siggenerator.cpp')
-rw-r--r--ksig/siggenerator.cpp26
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;