diff options
Diffstat (limited to 'src/knutupsdata.cpp')
-rw-r--r-- | src/knutupsdata.cpp | 10 |
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 |