summaryrefslogtreecommitdiffstats
path: root/kcontrol/kio/fakeuaprovider.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 20:16:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 20:16:47 +0000
commit495d08bc2db58ee7fc4ea55a7158f2f61b82fc56 (patch)
treedaabcb652c07b9a17cad88ca50b63a2d91ead4a3 /kcontrol/kio/fakeuaprovider.cpp
parent50001f1757f97510e80cb1990e2f2d5b00144c2a (diff)
downloadtdebase-495d08bc2db58ee7fc4ea55a7158f2f61b82fc56.tar.gz
tdebase-495d08bc2db58ee7fc4ea55a7158f2f61b82fc56.zip
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1211357 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcontrol/kio/fakeuaprovider.cpp')
-rw-r--r--kcontrol/kio/fakeuaprovider.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kcontrol/kio/fakeuaprovider.cpp b/kcontrol/kio/fakeuaprovider.cpp
index 00a87567e..1920ddad9 100644
--- a/kcontrol/kio/fakeuaprovider.cpp
+++ b/kcontrol/kio/fakeuaprovider.cpp
@@ -27,14 +27,14 @@
#include "fakeuaprovider.h"
#define UA_PTOS(x) (*it)->property(x).toString()
-#define QFL(x) TQString::fromLatin1(x)
+#define QFL(x) TQString::tqfromLatin1(x)
FakeUASProvider::FakeUASProvider()
{
m_bIsDirty = true;
}
-FakeUASProvider::StatusCode FakeUASProvider::createNewUAProvider( const TQString& uaStr )
+FakeUASProvider::tqStatusCode FakeUASProvider::createNewUAProvider( const TQString& uaStr )
{
TQStringList split;
int pos = (uaStr).find("::");
@@ -53,7 +53,7 @@ FakeUASProvider::StatusCode FakeUASProvider::createNewUAProvider( const TQString
split = TQStringList::split("::", uaStr);
}
- if ( m_lstIdentity.contains(split[1]) )
+ if ( m_lstIdentity.tqcontains(split[1]) )
return DUPLICATE_ENTRY;
else
{
@@ -90,29 +90,29 @@ void FakeUASProvider::parseDescription()
struct utsname utsn;
uname( &utsn );
- tmp.replace( QFL("appSysName"), TQString(utsn.sysname) );
- tmp.replace( QFL("appSysRelease"), TQString(utsn.release) );
- tmp.replace( QFL("appMachineType"), TQString(utsn.machine) );
+ tmp.tqreplace( QFL("appSysName"), TQString(utsn.sysname) );
+ tmp.tqreplace( QFL("appSysRelease"), TQString(utsn.release) );
+ tmp.tqreplace( QFL("appMachineType"), TQString(utsn.machine) );
TQStringList languageList = KGlobal::locale()->languageList();
if ( languageList.count() )
{
- TQStringList::Iterator it = languageList.find( TQString::fromLatin1("C") );
+ TQStringList::Iterator it = languageList.find( TQString::tqfromLatin1("C") );
if( it != languageList.end() )
{
- if( languageList.contains( TQString::fromLatin1("en") ) > 0 )
+ if( languageList.tqcontains( TQString::tqfromLatin1("en") ) > 0 )
languageList.remove( it );
else
- (*it) = TQString::fromLatin1("en");
+ (*it) = TQString::tqfromLatin1("en");
}
}
- tmp.replace( QFL("appLanguage"), TQString("%1").arg(languageList.join(", ")) );
- tmp.replace( QFL("appPlatform"), QFL("X11") );
+ tmp.tqreplace( QFL("appLanguage"), TQString("%1").arg(languageList.join(", ")) );
+ tmp.tqreplace( QFL("appPlatform"), QFL("X11") );
}
// Ignore dups...
- if ( m_lstIdentity.contains(tmp) )
+ if ( m_lstIdentity.tqcontains(tmp) )
continue;
m_lstIdentity << tmp;