From 4304e8d9dab8e20513e38e71b0debdf6937b630c Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 16 Apr 2011 23:01:29 +0000 Subject: Finish TQt4 port of kpowersave This enables both Qt3 and Qt4 builds git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kpowersave@1228282 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/hardware_batteryCollection.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/hardware_batteryCollection.cpp') diff --git a/src/hardware_batteryCollection.cpp b/src/hardware_batteryCollection.cpp index a9b00e4..0d3fe63 100644 --- a/src/hardware_batteryCollection.cpp +++ b/src/hardware_batteryCollection.cpp @@ -68,11 +68,11 @@ void BatteryCollection::initDefault() { /*! * This function refresh the information of the collection from the given * batterylist. - * \param BatteryList QPtrList with battery objects + * \param BatteryList TQPtrList with battery objects * \param force_level_recheck boolean with info if the the check for the current * battery warning level should get forced */ -bool BatteryCollection::refreshInfo(QPtrList BatteryList, bool force_level_recheck) { +bool BatteryCollection::refreshInfo(TQPtrList BatteryList, bool force_level_recheck) { kdDebugFuncIn(trace); int _charging_state = UNKNOWN_STATE; @@ -203,13 +203,13 @@ bool BatteryCollection::refreshInfo(QPtrList BatteryList, bool force_le } //! check if the given udi is already handled by this collection -bool BatteryCollection::isBatteryHandled( QString udi ) { - return udis.contains( udi ); +bool BatteryCollection::isBatteryHandled( TQString udi ) { + return udis.tqcontains( udi ); } // ---> write private members SECTION : START <---- //! get the unit for charge level stuff -QString BatteryCollection::getChargeLevelUnit() const { +TQString BatteryCollection::getChargeLevelUnit() const { return present_rate_unit; } -- cgit v1.2.1