summaryrefslogtreecommitdiffstats
path: root/kwordquiz/src/paukerreader.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:39:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:39:55 +0000
commit0a6e0958c03e41c87b15557b6f407874f20c2f8d (patch)
tree2cdd58c4013b1be09cfcbb4ddae2b05712b9aeee /kwordquiz/src/paukerreader.cpp
parent83f9dfafc157ff7823804b3ff457b43d021a5b4b (diff)
downloadtdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.tar.gz
tdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1157642 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kwordquiz/src/paukerreader.cpp')
-rw-r--r--kwordquiz/src/paukerreader.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kwordquiz/src/paukerreader.cpp b/kwordquiz/src/paukerreader.cpp
index 95bcf7cc..df34a8d7 100644
--- a/kwordquiz/src/paukerreader.cpp
+++ b/kwordquiz/src/paukerreader.cpp
@@ -18,8 +18,8 @@
#include "paukerreader.h"
-#include <qiodevice.h>
-#include <qfile.h>
+#include <tqiodevice.h>
+#include <tqfile.h>
#include <kdebug.h>
#include <kfilterdev.h>
@@ -28,7 +28,7 @@ PaukerDataItem::PaukerDataItem()
{
}
-PaukerDataItem::PaukerDataItem(QDomElement &entry)
+PaukerDataItem::PaukerDataItem(TQDomElement &entry)
{
domElement = entry;
}
@@ -37,37 +37,37 @@ PaukerDataItem::~PaukerDataItem()
{
}
-QString PaukerDataItem::frontSide() const
+TQString PaukerDataItem::frontSide() const
{
return getText("FrontSide");
}
-QString PaukerDataItem::backSide() const
+TQString PaukerDataItem::backSide() const
{
return getText("BackSide");
}
-QString PaukerDataItem::getText(const QString &tagName) const
+TQString PaukerDataItem::getText(const TQString &tagName) const
{
if(!domElement.isNull()) {
- QDomNodeList list = domElement.elementsByTagName(tagName);
+ TQDomNodeList list = domElement.elementsByTagName(tagName);
if(list.count() > 0) {
- QDomElement element = list.item(0).toElement();
+ TQDomElement element = list.item(0).toElement();
if(!element.isNull()) {
return element.text();
}
else
- return QString::null;
+ return TQString::null;
}
else
- return QString::null;
+ return TQString::null;
}
else
- return QString::null;
+ return TQString::null;
}
/*!
@@ -75,23 +75,23 @@ QString PaukerDataItem::getText(const QString &tagName) const
*/
PaukerData::PaukerData()
{
- document = new QDomDocument();
+ document = new TQDomDocument();
}
-PaukerDataItemList PaukerData::parse(const QString &fileName)
+PaukerDataItemList PaukerData::parse(const TQString &fileName)
{
PaukerDataItemList list;
- QIODevice * file = KFilterDev::deviceForFile(fileName);
+ TQIODevice * file = KFilterDev::deviceForFile(fileName);
document->setContent(file);
- QDomNodeList entries = document->elementsByTagName("Card");
+ TQDomNodeList entries = document->elementsByTagName("Card");
// loop through the "Card" tags looking for data
for(uint i = 0 ; i < entries.count() ; i++) {
// get an entry to operate on
- QDomElement entry = entries.item(i).toElement();
+ TQDomElement entry = entries.item(i).toElement();
// if the "node" is in fact an element -- i.e. not null
if(!entry.isNull()) {