summaryrefslogtreecommitdiffstats
path: root/src/knutupsdata.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 19:37:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 19:37:06 +0000
commit968af1d235ac30d737991b269156bee5dc99d318 (patch)
tree19b118fa5380087e10cb728be545760791ce0676 /src/knutupsdata.cpp
parentaea4882f3b37f17c5b56bc77667e683c52254c30 (diff)
downloadknutclient-968af1d235ac30d737991b269156bee5dc99d318.tar.gz
knutclient-968af1d235ac30d737991b269156bee5dc99d318.zip
TQt4 port knutclient
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/knutclient@1238881 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/knutupsdata.cpp')
-rw-r--r--src/knutupsdata.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/knutupsdata.cpp b/src/knutupsdata.cpp
index 9a4a0b5..b5868fb 100644
--- a/src/knutupsdata.cpp
+++ b/src/knutupsdata.cpp
@@ -18,7 +18,7 @@
#include "knutupsdata.h"
#include "knutvardata.h"
-#include <qstring.h>
+#include <tqstring.h>
KNutUpsData::KNutUpsData() {
@@ -47,7 +47,7 @@ void KNutUpsData::get (const int index, upsRecordDef& upsRecord ) {
if ((index > -1 ) && (index < m_countUpsRecords)) upsRecord=m_listRecords[index];
}
-QString KNutUpsData::getName (const int index) {
+TQString KNutUpsData::getName (const int index) {
if ((index > -1 ) && (index < m_countUpsRecords)) return m_listRecords[index].name;
else return 0L;
}
@@ -55,7 +55,7 @@ QString KNutUpsData::getName (const int index) {
void KNutUpsData::deleteName (const int index) {
if ((index > -1 ) && (index < m_countUpsRecords)) {
- QValueList<upsRecordDef>::Iterator it = m_listRecords.begin();
+ TQValueList<upsRecordDef>::Iterator it = m_listRecords.begin();
for (int i =0; i < index; i++) it++;
m_listRecords.remove(it);
m_countUpsRecords--;
@@ -66,8 +66,8 @@ void KNutUpsData::deleteName (const int index) {
int KNutUpsData::getCount ( void ) { return m_countUpsRecords; }
-KNutUpsData::upsRecordDef* KNutUpsData::findName (const QString name) {
- QValueList<upsRecordDef>::Iterator it;
+KNutUpsData::upsRecordDef* KNutUpsData::findName (const TQString name) {
+ TQValueList<upsRecordDef>::Iterator it;
for (it = m_listRecords.begin(); it != m_listRecords.end(); it++) {
if ((*it).name == name) {
return &(*it); // vratime adresu