summaryrefslogtreecommitdiffstats
path: root/src/knutprintupsvar.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/knutprintupsvar.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/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;