summaryrefslogtreecommitdiffstats
path: root/src/knutprintupsvar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/knutprintupsvar.cpp')
-rw-r--r--src/knutprintupsvar.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/knutprintupsvar.cpp b/src/knutprintupsvar.cpp
index bfd09e4..7a38c2f 100644
--- a/src/knutprintupsvar.cpp
+++ b/src/knutprintupsvar.cpp
@@ -22,13 +22,13 @@
#include <kglobal.h>
#include <kiconloader.h>
-#include <qgroupbox.h>
-#include <qscrollview.h>
-#include <qtooltip.h>
-#include <qlabel.h>
-#include <qframe.h>
-#include <qpixmap.h>
-#include <qstring.h>
+#include <tqgroupbox.h>
+#include <tqscrollview.h>
+#include <tqtooltip.h>
+#include <tqlabel.h>
+#include <tqframe.h>
+#include <tqpixmap.h>
+#include <tqstring.h>
@@ -37,8 +37,8 @@
// od verze 0.6.0 nebudeme vytvaret vlastni spojeni
-KNutPrintUpsVar::KNutPrintUpsVar(KNutNet* const upsNet, const bool useDescription, QWidget* parent, const char* name, const bool modal )
-: KDialogBase(Plain, i18n("Variables"),User1|Cancel,Ok, parent, name, modal, true), myUpsNet(upsNet){
+KNutPrintUpsVar::KNutPrintUpsVar(KNutNet* const upsNet, const bool useDescription, TQWidget* tqparent, const char* name, const bool modal )
+: KDialogBase(Plain, i18n("Variables"),User1|Cancel,Ok, tqparent, name, modal, true), myUpsNet(upsNet){
upsVarDef upsVar;
upsICommDef upsIComm;
@@ -67,7 +67,7 @@ KNutPrintUpsVar::KNutPrintUpsVar(KNutNet* const upsNet, const bool useDescriptio
dirPixmap=loader->loadIcon ("folder_open",KIcon::Small,16);
page = plainPage();
- QHBoxLayout* upsVarsMainLayout = new QHBoxLayout(page);
+ TQHBoxLayout* upsVarsMainLayout = new TQHBoxLayout(page);
table = new KListView(page);
table->setRootIsDecorated(true);
@@ -135,7 +135,7 @@ KNutPrintUpsVar::KNutPrintUpsVar(KNutNet* const upsNet, const bool useDescriptio
}
}
- connect (this,SIGNAL(user1Clicked()),this,SLOT(slotReloadVars()));
+ connect (this,TQT_SIGNAL(user1Clicked()),this,TQT_SLOT(slotReloadVars()));
} // end else
}
@@ -155,7 +155,7 @@ void KNutPrintUpsVar::slotReloadVars (void) {
KNutVarData::showError (myUpsNet->getError());
else {
- QValueVector<dataVar>::const_iterator it;
+ TQValueVector<dataVar>::const_iterator it;
for (it = dataList.begin(); it != dataList.end(); it++) {
myUpsNet->readVars((*it).myName, upsVar);
(*it).myValue->setText (1, upsVar.upsValue);
@@ -163,15 +163,15 @@ void KNutPrintUpsVar::slotReloadVars (void) {
}
}
- KListViewItem* KNutPrintUpsVar::addListItem (KListViewItem* table, QString varName, QString value) {
+ KListViewItem* KNutPrintUpsVar::addListItem (KListViewItem* table, TQString varName, TQString value) {
KListViewItem* myListItem;
KListViewItem* helpListItem;
- QString left;
+ TQString left;
int n;
myListItem = table;
do {
- n = varName.find(".");
+ n = varName.tqfind(".");
if (n > 0) {
left = varName.left(n);
varName = varName.mid(n+1);
@@ -192,7 +192,7 @@ void KNutPrintUpsVar::slotReloadVars (void) {
}
- KListViewItem* KNutPrintUpsVar::existListItem (KListViewItem* listItem, QString name) {
+ KListViewItem* KNutPrintUpsVar::existListItem (KListViewItem* listItem, TQString name) {
KListViewItem* myItem;
if (!(myItem = (KListViewItem *)listItem->firstChild())) return 0l;