summaryrefslogtreecommitdiffstats
path: root/kcontrol/kio
diff options
context:
space:
mode:
Diffstat (limited to 'kcontrol/kio')
-rw-r--r--kcontrol/kio/fakeuaprovider.cpp26
-rw-r--r--kcontrol/kio/kcookiesmanagement.cpp2
-rw-r--r--kcontrol/kio/kcookiespolicies.cpp2
-rw-r--r--kcontrol/kio/kmanualproxydlg.cpp2
-rw-r--r--kcontrol/kio/policydlg.h6
-rw-r--r--kcontrol/kio/smbrodlg.cpp2
-rw-r--r--kcontrol/kio/uagentproviderdlg.cpp2
-rw-r--r--kcontrol/kio/useragentdlg.cpp26
8 files changed, 34 insertions, 34 deletions
diff --git a/kcontrol/kio/fakeuaprovider.cpp b/kcontrol/kio/fakeuaprovider.cpp
index 2fe6d27f1..e48d15432 100644
--- a/kcontrol/kio/fakeuaprovider.cpp
+++ b/kcontrol/kio/fakeuaprovider.cpp
@@ -37,11 +37,11 @@ FakeUASProvider::FakeUASProvider()
FakeUASProvider::StatusCode FakeUASProvider::createNewUAProvider( const TQString& uaStr )
{
TQStringList split;
- int pos = (uaStr).tqfind("::");
+ int pos = (uaStr).find("::");
if ( pos == -1 )
{
- pos = (uaStr).tqfind(':');
+ pos = (uaStr).find(':');
if ( pos != -1 )
{
split.append(uaStr.left(pos));
@@ -53,7 +53,7 @@ FakeUASProvider::StatusCode FakeUASProvider::createNewUAProvider( const TQString
split = TQStringList::split("::", uaStr);
}
- if ( m_lstIdentity.tqcontains(split[1]) )
+ if ( m_lstIdentity.contains(split[1]) )
return DUPLICATE_ENTRY;
else
{
@@ -90,29 +90,29 @@ void FakeUASProvider::parseDescription()
struct utsname utsn;
uname( &utsn );
- tmp.tqreplace( QFL("appSysName"), TQString(utsn.sysname) );
- tmp.tqreplace( QFL("appSysRelease"), TQString(utsn.release) );
- tmp.tqreplace( QFL("appMachineType"), TQString(utsn.machine) );
+ tmp.replace( QFL("appSysName"), TQString(utsn.sysname) );
+ tmp.replace( QFL("appSysRelease"), TQString(utsn.release) );
+ tmp.replace( QFL("appMachineType"), TQString(utsn.machine) );
TQStringList languageList = KGlobal::locale()->languageList();
if ( languageList.count() )
{
- TQStringList::Iterator it = languageList.tqfind( TQString::tqfromLatin1("C") );
+ TQStringList::Iterator it = languageList.find( TQString::tqfromLatin1("C") );
if( it != languageList.end() )
{
- if( languageList.tqcontains( TQString::tqfromLatin1("en") ) > 0 )
+ if( languageList.contains( TQString::tqfromLatin1("en") ) > 0 )
languageList.remove( it );
else
(*it) = TQString::tqfromLatin1("en");
}
}
- tmp.tqreplace( QFL("appLanguage"), TQString("%1").arg(languageList.join(", ")) );
- tmp.tqreplace( QFL("appPlatform"), QFL("X11") );
+ tmp.replace( QFL("appLanguage"), TQString("%1").arg(languageList.join(", ")) );
+ tmp.replace( QFL("appPlatform"), QFL("X11") );
}
// Ignore dups...
- if ( m_lstIdentity.tqcontains(tmp) )
+ if ( m_lstIdentity.contains(tmp) )
continue;
m_lstIdentity << tmp;
@@ -133,7 +133,7 @@ void FakeUASProvider::parseDescription()
TQString FakeUASProvider::aliasStr( const TQString& name )
{
- int id = userAgentStringList().tqfindIndex(name);
+ int id = userAgentStringList().findIndex(name);
if ( id == -1 )
return TQString::null;
else
@@ -142,7 +142,7 @@ TQString FakeUASProvider::aliasStr( const TQString& name )
TQString FakeUASProvider::agentStr( const TQString& name )
{
- int id = userAgentAliasList().tqfindIndex(name);
+ int id = userAgentAliasList().findIndex(name);
if ( id == -1 )
return TQString::null;
else
diff --git a/kcontrol/kio/kcookiesmanagement.cpp b/kcontrol/kio/kcookiesmanagement.cpp
index da899be1f..fa9bb097c 100644
--- a/kcontrol/kio/kcookiesmanagement.cpp
+++ b/kcontrol/kio/kcookiesmanagement.cpp
@@ -408,7 +408,7 @@ void KCookiesManagement::deleteCookie(TQListViewItem* deleteItem)
if( item->cookie() )
{
CookieListViewItem *parent = static_cast<CookieListViewItem*>(item->tqparent());
- CookiePropList *list = deletedCookies.tqfind(parent->domain());
+ CookiePropList *list = deletedCookies.find(parent->domain());
if(!list)
{
list = new CookiePropList;
diff --git a/kcontrol/kio/kcookiespolicies.cpp b/kcontrol/kio/kcookiespolicies.cpp
index 163b9b14a..ac0b2572f 100644
--- a/kcontrol/kio/kcookiespolicies.cpp
+++ b/kcontrol/kio/kcookiespolicies.cpp
@@ -434,7 +434,7 @@ void KCookiesPolicies::defaults()
void KCookiesPolicies::splitDomainAdvice (const TQString& cfg, TQString &domain,
KCookieAdvice::Value &advice)
{
- int sepPos = cfg.tqfindRev(':');
+ int sepPos = cfg.findRev(':');
// Ignore any policy that does not contain a domain...
if ( sepPos <= 0 )
diff --git a/kcontrol/kio/kmanualproxydlg.cpp b/kcontrol/kio/kmanualproxydlg.cpp
index a9c8e6eca..b5961db7c 100644
--- a/kcontrol/kio/kmanualproxydlg.cpp
+++ b/kcontrol/kio/kmanualproxydlg.cpp
@@ -337,7 +337,7 @@ bool KManualProxyDlg::handleDuplicate( const TQString& site )
TQListBoxItem* item = mDlg->lbExceptions->firstItem();
while ( item != 0 )
{
- if ( item->text().tqfindRev( site ) != -1 &&
+ if ( item->text().findRev( site ) != -1 &&
item != mDlg->lbExceptions->selectedItem() )
{
TQString msg = i18n("You entered a duplicate address. "
diff --git a/kcontrol/kio/policydlg.h b/kcontrol/kio/policydlg.h
index 17616860f..a67bfccaa 100644
--- a/kcontrol/kio/policydlg.h
+++ b/kcontrol/kio/policydlg.h
@@ -52,11 +52,11 @@ public:
if (advice.isEmpty())
return KCookieAdvice::Dunno;
- if (advice.tqfind (TQString::tqfromLatin1("accept"), 0, false) == 0)
+ if (advice.find (TQString::tqfromLatin1("accept"), 0, false) == 0)
return KCookieAdvice::Accept;
- else if (advice.tqfind (TQString::tqfromLatin1("reject"), 0, false) == 0)
+ else if (advice.find (TQString::tqfromLatin1("reject"), 0, false) == 0)
return KCookieAdvice::Reject;
- else if (advice.tqfind (TQString::tqfromLatin1("ask"), 0, false) == 0)
+ else if (advice.find (TQString::tqfromLatin1("ask"), 0, false) == 0)
return KCookieAdvice::Ask;
return KCookieAdvice::Dunno;
diff --git a/kcontrol/kio/smbrodlg.cpp b/kcontrol/kio/smbrodlg.cpp
index e5337cbf2..148af43d1 100644
--- a/kcontrol/kio/smbrodlg.cpp
+++ b/kcontrol/kio/smbrodlg.cpp
@@ -101,7 +101,7 @@ void SMBRoOptions::load()
// TQStringList _strList = KGlobal::charsets()->availableEncodingNames();
// TQString m_encoding = TQTextCodec::codecForLocale()->name();
-// m_encodingList->setCurrentItem( _strList.tqfindIndex( cfg->readEntry( "Encoding", m_encoding.lower() ) ) );
+// m_encodingList->setCurrentItem( _strList.findIndex( cfg->readEntry( "Encoding", m_encoding.lower() ) ) );
// unscramble
TQString scrambled = cfg->readEntry( "Password" );
diff --git a/kcontrol/kio/uagentproviderdlg.cpp b/kcontrol/kio/uagentproviderdlg.cpp
index adab4b611..5bf92cdb7 100644
--- a/kcontrol/kio/uagentproviderdlg.cpp
+++ b/kcontrol/kio/uagentproviderdlg.cpp
@@ -121,7 +121,7 @@ void UAProviderDlg::setSiteName( const TQString& text )
void UAProviderDlg::setIdentity( const TQString& text )
{
- int id = dlg->cbAlias->listBox()->index( dlg->cbAlias->listBox()->tqfindItem(text) );
+ int id = dlg->cbAlias->listBox()->index( dlg->cbAlias->listBox()->findItem(text) );
dlg->cbAlias->setCurrentItem( id );
slotActivated( dlg->cbAlias->currentText() );
if ( !dlg->leSite->isEnabled() )
diff --git a/kcontrol/kio/useragentdlg.cpp b/kcontrol/kio/useragentdlg.cpp
index 26476d9a8..c34d5cadc 100644
--- a/kcontrol/kio/useragentdlg.cpp
+++ b/kcontrol/kio/useragentdlg.cpp
@@ -111,12 +111,12 @@ void UserAgentDlg::load()
dlg->cbSendUAString->setChecked( b );
m_ua_keys = m_config->readEntry("UserAgentKeys", DEFAULT_USER_AGENT_KEYS).lower();
dlg->leDefaultId->setSqueezedText( KProtocolManager::defaultUserAgent( m_ua_keys ) );
- dlg->cbOS->setChecked( m_ua_keys.tqcontains('o') );
- dlg->cbOSVersion->setChecked( m_ua_keys.tqcontains('v') );
- dlg->cbOSVersion->setEnabled( m_ua_keys.tqcontains('o') );
- dlg->cbPlatform->setChecked( m_ua_keys.tqcontains('p') );
- dlg->cbProcessorType->setChecked( m_ua_keys.tqcontains('m') );
- dlg->cbLanguage->setChecked( m_ua_keys.tqcontains('l') );
+ dlg->cbOS->setChecked( m_ua_keys.contains('o') );
+ dlg->cbOSVersion->setChecked( m_ua_keys.contains('v') );
+ dlg->cbOSVersion->setEnabled( m_ua_keys.contains('o') );
+ dlg->cbPlatform->setChecked( m_ua_keys.contains('p') );
+ dlg->cbProcessorType->setChecked( m_ua_keys.contains('m') );
+ dlg->cbLanguage->setChecked( m_ua_keys.contains('l') );
updateButtons();
emit changed( false );
}
@@ -135,12 +135,12 @@ void UserAgentDlg::defaults()
dlg->lvDomainPolicyList->clear();
m_ua_keys = DEFAULT_USER_AGENT_KEYS;
dlg->leDefaultId->setSqueezedText( KProtocolManager::defaultUserAgent(m_ua_keys) );
- dlg->cbOS->setChecked( m_ua_keys.tqcontains('o') );
- dlg->cbOSVersion->setChecked( m_ua_keys.tqcontains('v') );
- dlg->cbOSVersion->setEnabled( m_ua_keys.tqcontains('o') );
- dlg->cbPlatform->setChecked( m_ua_keys.tqcontains('p') );
- dlg->cbProcessorType->setChecked( m_ua_keys.tqcontains('m') );
- dlg->cbLanguage->setChecked( m_ua_keys.tqcontains('l') );
+ dlg->cbOS->setChecked( m_ua_keys.contains('o') );
+ dlg->cbOSVersion->setChecked( m_ua_keys.contains('v') );
+ dlg->cbOSVersion->setEnabled( m_ua_keys.contains('o') );
+ dlg->cbPlatform->setChecked( m_ua_keys.contains('p') );
+ dlg->cbProcessorType->setChecked( m_ua_keys.contains('m') );
+ dlg->cbLanguage->setChecked( m_ua_keys.contains('l') );
dlg->cbSendUAString->setChecked( true );
updateButtons();
configChanged();
@@ -351,7 +351,7 @@ void UserAgentDlg::changeDefaultUAModifiers( int )
if ( dlg->cbLanguage->isChecked() )
m_ua_keys += 'l';
- dlg->cbOSVersion->setEnabled(m_ua_keys.tqcontains('o'));
+ dlg->cbOSVersion->setEnabled(m_ua_keys.contains('o'));
TQString modVal = KProtocolManager::defaultUserAgent( m_ua_keys );
if ( dlg->leDefaultId->text() != modVal )