summaryrefslogtreecommitdiffstats
path: root/src/sources/batterysrc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sources/batterysrc.cpp')
-rw-r--r--src/sources/batterysrc.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sources/batterysrc.cpp b/src/sources/batterysrc.cpp
index b8f73ac..a6d4ee8 100644
--- a/src/sources/batterysrc.cpp
+++ b/src/sources/batterysrc.cpp
@@ -33,7 +33,7 @@
} \
} while(0)
-BatterySrc::BatterySrc(QWidget* inParent, QString inUDI):
+BatterySrc::BatterySrc(TQWidget* inParent, TQString inUDI):
LabelSource(inParent),
mTrigger(this, 5000),
mUDI(inUDI),
@@ -70,7 +70,7 @@ BatterySrc::~BatterySrc(){
}
}
-std::list<Source*>BatterySrc::createInstances(QWidget* inParent){
+std::list<Source*>BatterySrc::createInstances(TQWidget* inParent){
std::list<Source*> list;
LibHalContext* libHalContext;
@@ -117,8 +117,8 @@ std::list<Source*>BatterySrc::createInstances(QWidget* inParent){
return list;
}
-QString BatterySrc::fetchValue() {
- QString s = "n/a";
+TQString BatterySrc::fetchValue() {
+ TQString s = "n/a";
if(mLibHalContext != NULL){
int last_full = 0;
int current = 0;
@@ -135,7 +135,7 @@ QString BatterySrc::fetchValue() {
dbus_error_free(&mDBusError);
return s;
}
- s = QString::number(qRound((current * 100.0) / last_full)) + " %";
+ s = TQString::number(tqRound((current * 100.0) / last_full)) + " %";
}
return s;
}