From 8155225c9be993acc0512956416d195edfef4eb9 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 19 Jan 2011 01:42:14 +0000 Subject: Enable compilation with TQt for Qt4 3.4.0 TP2 This should not break compatibility with TQt for Qt3; if it does please fix it ASAP! git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1215552 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kcontrol/kio/cache_ui.ui | 20 +++++++-------- kcontrol/kio/envvarproxy_ui.ui | 16 ++++++------ kcontrol/kio/fakeuaprovider.cpp | 30 +++++++++++----------- kcontrol/kio/kcookiesmanagement.cpp | 16 ++++++------ kcontrol/kio/kcookiesmanagement.h | 2 +- kcontrol/kio/kcookiesmanagementdlg_ui.ui | 36 +++++++++++++------------- kcontrol/kio/kcookiespolicies.cpp | 4 +-- kcontrol/kio/kcookiespoliciesdlg_ui.ui | 40 ++++++++++++++--------------- kcontrol/kio/kenvvarproxydlg.cpp | 8 +++--- kcontrol/kio/kmanualproxydlg.cpp | 4 +-- kcontrol/kio/kproxydlg_ui.ui | 44 ++++++++++++++++---------------- kcontrol/kio/ksaveioconfig.cpp | 20 +++++++-------- kcontrol/kio/manualproxy_ui.ui | 34 ++++++++++++------------ kcontrol/kio/policydlg.cpp | 6 ++--- kcontrol/kio/policydlg.h | 6 ++--- kcontrol/kio/policydlg_ui.ui | 6 ++--- kcontrol/kio/smbrodlg.cpp | 4 +-- kcontrol/kio/socksbase.ui | 40 ++++++++++++++--------------- kcontrol/kio/uagentproviderdlg.cpp | 4 +-- kcontrol/kio/uagentproviderdlg_ui.ui | 18 ++++++------- kcontrol/kio/useragentdlg.cpp | 26 +++++++++---------- kcontrol/kio/useragentdlg_ui.ui | 34 ++++++++++++------------ 22 files changed, 209 insertions(+), 209 deletions(-) (limited to 'kcontrol/kio') diff --git a/kcontrol/kio/cache_ui.ui b/kcontrol/kio/cache_ui.ui index c0e504057..532173407 100644 --- a/kcontrol/kio/cache_ui.ui +++ b/kcontrol/kio/cache_ui.ui @@ -1,6 +1,6 @@ CacheDlgUI - + CacheDlgUI @@ -29,14 +29,14 @@ Fixed - + 16 21 - + lbMaxCacheSize @@ -67,7 +67,7 @@ KB - + pbClearCache @@ -88,14 +88,14 @@ MinimumExpanding - + 0 21 - + cbUseCache @@ -106,7 +106,7 @@ Check this box if you want the web pages you visit to be stored on your hard disk for quicker access. The stored pages will only be updated as needed instead of on every visit to that site. This is especially useful if you have a slow connection to the Internet. - + bgCachePolicy @@ -120,7 +120,7 @@ unnamed - + rbVerifyCache @@ -131,7 +131,7 @@ Verify whether the cached web page is valid before attempting to fetch the web page again. - + rbCacheIfPossible @@ -142,7 +142,7 @@ Always use documents from the cache when available. You can still use the reload button to synchronize the cache with the remote host. - + rbOfflineMode diff --git a/kcontrol/kio/envvarproxy_ui.ui b/kcontrol/kio/envvarproxy_ui.ui index 471b9f868..3e1babf90 100644 --- a/kcontrol/kio/envvarproxy_ui.ui +++ b/kcontrol/kio/envvarproxy_ui.ui @@ -1,6 +1,6 @@ EnvVarProxyDlgUI - + EnvVarProxyDlgUI @@ -41,7 +41,7 @@ Alternatively, you can click on the <b>"Auto Detect"</b> button to a </qt> - + lbFtp @@ -58,7 +58,7 @@ Alternatively, you can click on the <b>"Auto Detect"</b> button to a </qt> - + lbHttps @@ -75,7 +75,7 @@ Alternatively, you can click on the <b>"Auto Detect"</b> button to a </qt> - + cbShowValue @@ -83,7 +83,7 @@ Alternatively, you can click on the <b>"Auto Detect"</b> button to a Show the &value of the environment variables - + pbVerify @@ -94,7 +94,7 @@ Alternatively, you can click on the <b>"Auto Detect"</b> button to a <qt>Verify whether or not the environment variable names you supplied are valid. If an environment variable is not found, the associated labels will be <b>highlighted</b> to indicate that they are invalid.</qt> - + pbDetect @@ -105,7 +105,7 @@ Alternatively, you can click on the <b>"Auto Detect"</b> button to a <qt>Attempt automatic discovery of the environment variables used for setting system wide proxy information.<p> This feature works by searching for commonly used variable names such as HTTP_PROXY, FTP_PROXY and NO_PROXY.</qt> - + lbHttp @@ -144,7 +144,7 @@ Alternatively, you can click on the <b>"Auto Detect"</b> button to a </qt> - + lbNoProxy diff --git a/kcontrol/kio/fakeuaprovider.cpp b/kcontrol/kio/fakeuaprovider.cpp index 00a87567e..2fe6d27f1 100644 --- a/kcontrol/kio/fakeuaprovider.cpp +++ b/kcontrol/kio/fakeuaprovider.cpp @@ -27,7 +27,7 @@ #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() { @@ -37,11 +37,11 @@ FakeUASProvider::FakeUASProvider() FakeUASProvider::StatusCode FakeUASProvider::createNewUAProvider( const TQString& uaStr ) { TQStringList split; - int pos = (uaStr).find("::"); + int pos = (uaStr).tqfind("::"); if ( pos == -1 ) { - pos = (uaStr).find(':'); + pos = (uaStr).tqfind(':'); 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.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.tqfind( 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; @@ -133,7 +133,7 @@ void FakeUASProvider::parseDescription() TQString FakeUASProvider::aliasStr( const TQString& name ) { - int id = userAgentStringList().findIndex(name); + int id = userAgentStringList().tqfindIndex(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().findIndex(name); + int id = userAgentAliasList().tqfindIndex(name); if ( id == -1 ) return TQString::null; else diff --git a/kcontrol/kio/kcookiesmanagement.cpp b/kcontrol/kio/kcookiesmanagement.cpp index f2cd45c42..da899be1f 100644 --- a/kcontrol/kio/kcookiesmanagement.cpp +++ b/kcontrol/kio/kcookiesmanagement.cpp @@ -94,9 +94,9 @@ CookieProp* CookieListViewItem::leaveCookie() TQString CookieListViewItem::text(int f) const { if (mCookie) - return f == 0 ? TQString::null : KIDNA::toUnicode(mCookie->host); + return f == 0 ? TQString() : KIDNA::toUnicode(mCookie->host); else - return f == 0 ? KIDNA::toUnicode(mDomain) : TQString::null; + return f == 0 ? KIDNA::toUnicode(mDomain) : TQString(); } KCookiesManagement::KCookiesManagement(TQWidget *parent) @@ -285,9 +285,9 @@ void KCookiesManagement::getCookies(TQListViewItem *cookieDom) DCOPReply reply = DCOPRef ("kded", "kcookiejar").call ("findCookies", DCOPArg(fields, "TQValueList"), ckd->domain(), - TQString::null, - TQString::null, - TQString::null); + TQString(), + TQString(), + TQString()); if(reply.isValid()) { TQStringList fieldVal = reply; @@ -383,7 +383,7 @@ void KCookiesManagement::doPolicy() if( domain.isEmpty() ) { - CookieListViewItem *parent = static_cast( item->parent() ); + CookieListViewItem *parent = static_cast( item->tqparent() ); if ( parent ) domain = parent->domain (); @@ -407,8 +407,8 @@ void KCookiesManagement::deleteCookie(TQListViewItem* deleteItem) CookieListViewItem *item = static_cast( deleteItem ); if( item->cookie() ) { - CookieListViewItem *parent = static_cast(item->parent()); - CookiePropList *list = deletedCookies.find(parent->domain()); + CookieListViewItem *parent = static_cast(item->tqparent()); + CookiePropList *list = deletedCookies.tqfind(parent->domain()); if(!list) { list = new CookiePropList; diff --git a/kcontrol/kio/kcookiesmanagement.h b/kcontrol/kio/kcookiesmanagement.h index cd7f4c62a..3e7588282 100644 --- a/kcontrol/kio/kcookiesmanagement.h +++ b/kcontrol/kio/kcookiesmanagement.h @@ -36,7 +36,7 @@ class KCookiesManagementDlgUI; struct CookieProp; -class CookieListViewItem : public QListViewItem +class CookieListViewItem : public TQListViewItem { public: CookieListViewItem(TQListView *parent, TQString dom); diff --git a/kcontrol/kio/kcookiesmanagementdlg_ui.ui b/kcontrol/kio/kcookiesmanagementdlg_ui.ui index f36c0a707..00a032a79 100644 --- a/kcontrol/kio/kcookiesmanagementdlg_ui.ui +++ b/kcontrol/kio/kcookiesmanagementdlg_ui.ui @@ -1,6 +1,6 @@ KCookiesManagementDlgUI - + KCookiesManagementDlgUI @@ -19,7 +19,7 @@ 0 - + layout6 @@ -69,7 +69,7 @@ 15 - + layout4 @@ -77,7 +77,7 @@ unnamed - + pbDelete @@ -85,7 +85,7 @@ D&elete - + pbDeleteAll @@ -93,7 +93,7 @@ Delete A&ll - + pbPolicy @@ -101,7 +101,7 @@ Change &Policy... - + pbReload @@ -119,7 +119,7 @@ MinimumExpanding - + 21 62 @@ -128,7 +128,7 @@ - + layout3 @@ -136,7 +136,7 @@ unnamed - + tbClearSearchLine @@ -147,7 +147,7 @@ Clear Search - + textLabel1 @@ -173,7 +173,7 @@ - + gbDetails @@ -208,7 +208,7 @@ true - + lbName @@ -219,7 +219,7 @@ leName - + lbValue @@ -230,7 +230,7 @@ leValue - + lbDomain @@ -241,7 +241,7 @@ leDomain - + lbPath @@ -252,7 +252,7 @@ lePath - + lbExpires @@ -263,7 +263,7 @@ leExpires - + lbSecure diff --git a/kcontrol/kio/kcookiespolicies.cpp b/kcontrol/kio/kcookiespolicies.cpp index 63f4dd21a..163b9b14a 100644 --- a/kcontrol/kio/kcookiespolicies.cpp +++ b/kcontrol/kio/kcookiespolicies.cpp @@ -392,7 +392,7 @@ void KCookiesPolicies::save() while( at ) { - domainConfig.append(TQString::fromLatin1("%1:%2").arg(KIDNA::toAscii(at->text(0))).arg(m_pDomainPolicy[at])); + domainConfig.append(TQString::tqfromLatin1("%1:%2").arg(KIDNA::toAscii(at->text(0))).arg(m_pDomainPolicy[at])); at = at->nextSibling(); } @@ -434,7 +434,7 @@ void KCookiesPolicies::defaults() void KCookiesPolicies::splitDomainAdvice (const TQString& cfg, TQString &domain, KCookieAdvice::Value &advice) { - int sepPos = cfg.findRev(':'); + int sepPos = cfg.tqfindRev(':'); // Ignore any policy that does not contain a domain... if ( sepPos <= 0 ) diff --git a/kcontrol/kio/kcookiespoliciesdlg_ui.ui b/kcontrol/kio/kcookiespoliciesdlg_ui.ui index 435ca8640..230ef9b5f 100644 --- a/kcontrol/kio/kcookiespoliciesdlg_ui.ui +++ b/kcontrol/kio/kcookiespoliciesdlg_ui.ui @@ -1,6 +1,6 @@ KCookiesPolicyDlgUI - + KCookiesPolicyDlgUI @@ -16,7 +16,7 @@ unnamed - + cbEnableCookies @@ -30,7 +30,7 @@ Please note that disabling cookie support might make many web sites unbrowsable. </qt> - + bgPreferences @@ -41,7 +41,7 @@ Please note that disabling cookie support might make many web sites unbrowsable. unnamed - + cbRejectCrossDomainCookies @@ -54,7 +54,7 @@ Reject the so called third-party cookies. These are cookies that originate from </qt> - + cbAutoAcceptSessionCookies @@ -68,7 +68,7 @@ Automatically accept temporary cookies meant to expire at the end of the current </qt> - + cbIgnoreCookieExpirationDate @@ -84,7 +84,7 @@ Treat all cookies as session cookies. Session cookies are small pieces of data t - + bgDefault @@ -109,7 +109,7 @@ Determines how cookies received from a remote machine will be handled: unnamed - + rbPolicyAsk @@ -117,7 +117,7 @@ Determines how cookies received from a remote machine will be handled: Ask &for confirmation - + rbPolicyAccept @@ -125,7 +125,7 @@ Determines how cookies received from a remote machine will be handled: Accep&t all cookies - + rbPolicyReject @@ -135,7 +135,7 @@ Determines how cookies received from a remote machine will be handled: - + gbDomainSpecific @@ -161,14 +161,14 @@ To add a new policy, simply click on the <b>Add...</b> button and su MinimumExpanding - + 20 16 - + layout3 @@ -176,7 +176,7 @@ To add a new policy, simply click on the <b>Add...</b> button and su unnamed - + pbNew @@ -184,7 +184,7 @@ To add a new policy, simply click on the <b>Add...</b> button and su &New... - + pbChange @@ -192,7 +192,7 @@ To add a new policy, simply click on the <b>Add...</b> button and su Chan&ge... - + pbDelete @@ -200,7 +200,7 @@ To add a new policy, simply click on the <b>Add...</b> button and su D&elete - + pbDeleteAll @@ -254,7 +254,7 @@ List of sites for which you have set a specific cookie policy. Specific policies </qt> - + layout2 @@ -262,7 +262,7 @@ List of sites for which you have set a specific cookie policy. Specific policies unnamed - + tbClearSearchLine @@ -273,7 +273,7 @@ List of sites for which you have set a specific cookie policy. Specific policies Clear Search - + textLabel1 diff --git a/kcontrol/kio/kenvvarproxydlg.cpp b/kcontrol/kio/kenvvarproxydlg.cpp index 22accb4e9..8d21c7a5b 100644 --- a/kcontrol/kio/kenvvarproxydlg.cpp +++ b/kcontrol/kio/kenvvarproxydlg.cpp @@ -163,16 +163,16 @@ void KEnvVarProxyDlg::autoDetectPressed() setHighLight (mDlg->lbNoProxy, false); // Detect HTTP proxy settings... - found |= autoDetectProxySetting (TQString::fromLatin1(ENV_HTTP_PROXY), mEnvVarsMap["http"]); + found |= autoDetectProxySetting (TQString::tqfromLatin1(ENV_HTTP_PROXY), mEnvVarsMap["http"]); // Detect HTTPS proxy settings... - found |= autoDetectProxySetting (TQString::fromLatin1(ENV_HTTPS_PROXY), mEnvVarsMap["https"]); + found |= autoDetectProxySetting (TQString::tqfromLatin1(ENV_HTTPS_PROXY), mEnvVarsMap["https"]); // Detect FTP proxy settings... - found |= autoDetectProxySetting (TQString::fromLatin1(ENV_FTP_PROXY), mEnvVarsMap["ftp"]); + found |= autoDetectProxySetting (TQString::tqfromLatin1(ENV_FTP_PROXY), mEnvVarsMap["ftp"]); // Detect the NO_PROXY settings... - found |= autoDetectProxySetting (TQString::fromLatin1(NO_PROXY), mEnvVarsMap["noProxy"]); + found |= autoDetectProxySetting (TQString::tqfromLatin1(NO_PROXY), mEnvVarsMap["noProxy"]); if ( !found ) { diff --git a/kcontrol/kio/kmanualproxydlg.cpp b/kcontrol/kio/kmanualproxydlg.cpp index 92e8a98e6..a9c8e6eca 100644 --- a/kcontrol/kio/kmanualproxydlg.cpp +++ b/kcontrol/kio/kmanualproxydlg.cpp @@ -52,7 +52,7 @@ KManualProxyDlg::KManualProxyDlg( TQWidget* parent, const char* name ) mDlg->pbCopyDown->setPixmap( BarIcon("down", KIcon::SizeSmall) ); TQSizePolicy sizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed, mDlg->pbCopyDown->sizePolicy().hasHeightForWidth() ); - mDlg->pbCopyDown->setSizePolicy( sizePolicy ); + mDlg->pbCopyDown->tqsetSizePolicy( sizePolicy ); init(); } @@ -337,7 +337,7 @@ bool KManualProxyDlg::handleDuplicate( const TQString& site ) TQListBoxItem* item = mDlg->lbExceptions->firstItem(); while ( item != 0 ) { - if ( item->text().findRev( site ) != -1 && + if ( item->text().tqfindRev( site ) != -1 && item != mDlg->lbExceptions->selectedItem() ) { TQString msg = i18n("You entered a duplicate address. " diff --git a/kcontrol/kio/kproxydlg_ui.ui b/kcontrol/kio/kproxydlg_ui.ui index 1a6b5d6e2..d053707db 100644 --- a/kcontrol/kio/kproxydlg_ui.ui +++ b/kcontrol/kio/kproxydlg_ui.ui @@ -1,6 +1,6 @@ KProxyDialogUI - + ProxyDlgUI @@ -28,7 +28,7 @@ If you are uncertain whether or not you need to use a proxy server to connect to 0 - + gbConfigure @@ -51,7 +51,7 @@ If you are uncertain whether or not you need to use a proxy server to connect to 0 - + rbNoProxy @@ -65,7 +65,7 @@ If you are uncertain whether or not you need to use a proxy server to connect to Connect to the Internet directly. - + rbAutoDiscover @@ -83,7 +83,7 @@ Automatic detection is performed using the <b>Web Proxy Auto-Discovery Pro </qt> - + rbAutoScript @@ -97,7 +97,7 @@ Automatic detection is performed using the <b>Web Proxy Auto-Discovery Pro Use the specified proxy script URL to configure the proxy settings. - + layout5 @@ -115,7 +115,7 @@ Automatic detection is performed using the <b>Web Proxy Auto-Discovery Pro Fixed - + 16 20 @@ -143,7 +143,7 @@ Automatic detection is performed using the <b>Web Proxy Auto-Discovery Pro - + layout7 @@ -151,7 +151,7 @@ Automatic detection is performed using the <b>Web Proxy Auto-Discovery Pro unnamed - + rbEnvVar @@ -176,7 +176,7 @@ Environment variables such as <b>HTTP_PROXY</b> and <b>NO_PROX </qt> - + pbEnvSetup @@ -192,7 +192,7 @@ Environment variables such as <b>HTTP_PROXY</b> and <b>NO_PROX - + layout6 @@ -200,7 +200,7 @@ Environment variables such as <b>HTTP_PROXY</b> and <b>NO_PROX unnamed - + rbManual @@ -222,7 +222,7 @@ Environment variables such as <b>HTTP_PROXY</b> and <b>NO_PROX Manually enter proxy server configuration information. - + pbManSetup @@ -240,7 +240,7 @@ Environment variables such as <b>HTTP_PROXY</b> and <b>NO_PROX - + gbAuth @@ -254,7 +254,7 @@ Environment variables such as <b>HTTP_PROXY</b> and <b>NO_PROX unnamed - + rbPrompt @@ -268,7 +268,7 @@ Environment variables such as <b>HTTP_PROXY</b> and <b>NO_PROX Prompt for login information whenever it is required. - + rbPresetLogin @@ -282,7 +282,7 @@ Environment variables such as <b>HTTP_PROXY</b> and <b>NO_PROX Use the information below to login into proxy servers as needed. - + layout5 @@ -300,7 +300,7 @@ Environment variables such as <b>HTTP_PROXY</b> and <b>NO_PROX Fixed - + 16 20 @@ -332,7 +332,7 @@ Environment variables such as <b>HTTP_PROXY</b> and <b>NO_PROX Login name. - + lbPassword @@ -346,7 +346,7 @@ Environment variables such as <b>HTTP_PROXY</b> and <b>NO_PROX Login password. - + lbUsername @@ -364,7 +364,7 @@ Environment variables such as <b>HTTP_PROXY</b> and <b>NO_PROX - + gbOptions @@ -378,7 +378,7 @@ Environment variables such as <b>HTTP_PROXY</b> and <b>NO_PROX unnamed - + cbPersConn diff --git a/kcontrol/kio/ksaveioconfig.cpp b/kcontrol/kio/ksaveioconfig.cpp index 50d56d86e..c5c471a9f 100644 --- a/kcontrol/kio/ksaveioconfig.cpp +++ b/kcontrol/kio/ksaveioconfig.cpp @@ -82,7 +82,7 @@ void KSaveIOConfig::reparseConfiguration () void KSaveIOConfig::setReadTimeout( int _timeout ) { KConfig* cfg = config (); - cfg->setGroup( TQString::null ); + cfg->setGroup( TQString() ); cfg->writeEntry("ReadTimeout", QMAX(MIN_TIMEOUT_VALUE,_timeout)); cfg->sync(); } @@ -90,7 +90,7 @@ void KSaveIOConfig::setReadTimeout( int _timeout ) void KSaveIOConfig::setConnectTimeout( int _timeout ) { KConfig* cfg = config (); - cfg->setGroup( TQString::null ); + cfg->setGroup( TQString() ); cfg->writeEntry("ConnectTimeout", QMAX(MIN_TIMEOUT_VALUE,_timeout)); cfg->sync(); } @@ -98,7 +98,7 @@ void KSaveIOConfig::setConnectTimeout( int _timeout ) void KSaveIOConfig::setProxyConnectTimeout( int _timeout ) { KConfig* cfg = config (); - cfg->setGroup( TQString::null ); + cfg->setGroup( TQString() ); cfg->writeEntry("ProxyConnectTimeout", QMAX(MIN_TIMEOUT_VALUE,_timeout)); cfg->sync(); } @@ -106,7 +106,7 @@ void KSaveIOConfig::setProxyConnectTimeout( int _timeout ) void KSaveIOConfig::setResponseTimeout( int _timeout ) { KConfig* cfg = config (); - cfg->setGroup( TQString::null ); + cfg->setGroup( TQString() ); cfg->writeEntry("ResponseTimeout", QMAX(MIN_TIMEOUT_VALUE,_timeout)); cfg->sync(); } @@ -115,7 +115,7 @@ void KSaveIOConfig::setResponseTimeout( int _timeout ) void KSaveIOConfig::setMarkPartial( bool _mode ) { KConfig* cfg = config (); - cfg->setGroup( TQString::null ); + cfg->setGroup( TQString() ); cfg->writeEntry( "MarkPartial", _mode ); cfg->sync(); } @@ -123,7 +123,7 @@ void KSaveIOConfig::setMarkPartial( bool _mode ) void KSaveIOConfig::setMinimumKeepSize( int _size ) { KConfig* cfg = config (); - cfg->setGroup( TQString::null ); + cfg->setGroup( TQString() ); cfg->writeEntry( "MinimumKeepSize", _size ); cfg->sync(); } @@ -131,7 +131,7 @@ void KSaveIOConfig::setMinimumKeepSize( int _size ) void KSaveIOConfig::setAutoResume( bool _mode ) { KConfig* cfg = config (); - cfg->setGroup( TQString::null ); + cfg->setGroup( TQString() ); cfg->writeEntry( "AutoResume", _mode ); cfg->sync(); } @@ -217,7 +217,7 @@ void KSaveIOConfig::setProxyConfigScript( const TQString& _url ) void KSaveIOConfig::setPersistentProxyConnection( bool enable ) { KConfig* cfg = config (); - cfg->setGroup( TQString::null ); + cfg->setGroup( TQString() ); cfg->writeEntry( "PersistentProxyConnection", enable ); cfg->sync(); } @@ -225,7 +225,7 @@ void KSaveIOConfig::setPersistentProxyConnection( bool enable ) void KSaveIOConfig::setPersistentConnections( bool enable ) { KConfig* cfg = config (); - cfg->setGroup( TQString::null ); + cfg->setGroup( TQString() ); cfg->writeEntry( "PersistentConnections", enable ); cfg->sync(); } @@ -234,7 +234,7 @@ void KSaveIOConfig::updateRunningIOSlaves (TQWidget *parent) { // Inform all running io-slaves about the changes... // if we cannot update, ioslaves inform the end user... - if (!DCOPRef("*", "KIO::Scheduler").send("reparseSlaveConfiguration", TQString::null)) + if (!DCOPRef("*", "KIO::Scheduler").send("reparseSlaveConfiguration", TQString())) { TQString caption = i18n("Update Failed"); TQString message = i18n("You have to restart the running applications " diff --git a/kcontrol/kio/manualproxy_ui.ui b/kcontrol/kio/manualproxy_ui.ui index 1c8ef8634..ecc061a64 100644 --- a/kcontrol/kio/manualproxy_ui.ui +++ b/kcontrol/kio/manualproxy_ui.ui @@ -1,6 +1,6 @@ ManualProxyDlgUI - + ManualProxyDlgUI @@ -19,7 +19,7 @@ 0 - + gbServers @@ -30,7 +30,7 @@ unnamed - + lbFtp @@ -49,7 +49,7 @@ leFtp - + lbHttps @@ -68,7 +68,7 @@ leHttps - + lbHttp @@ -137,7 +137,7 @@ sbHttp - + 32767 32767 @@ -160,14 +160,14 @@ Minimum - + 51 20 - + cbSameProxy @@ -175,7 +175,7 @@ &Use the same proxy server for all protocols - + pbCopyDown @@ -185,7 +185,7 @@ - + gbExceptions @@ -196,7 +196,7 @@ unnamed - + cbReverseProxy @@ -209,7 +209,7 @@ Reverse the use of the exception list. Checking this box will result in the prox </qt> - + layout2 @@ -217,7 +217,7 @@ Reverse the use of the exception list. Checking this box will result in the prox unnamed - + pbDeleteAll @@ -231,7 +231,7 @@ Reverse the use of the exception list. Checking this box will result in the prox Remove all proxy exception addresses from the list. - + pbDelete @@ -245,7 +245,7 @@ Reverse the use of the exception list. Checking this box will result in the prox Remove the selected proxy exception address from the list. - + pbNew @@ -256,7 +256,7 @@ Reverse the use of the exception list. Checking this box will result in the prox Add new proxy exception address to the list. - + pbChange @@ -280,7 +280,7 @@ Reverse the use of the exception list. Checking this box will result in the prox Expanding - + 20 114 diff --git a/kcontrol/kio/policydlg.cpp b/kcontrol/kio/policydlg.cpp index 463806266..316fd7e80 100644 --- a/kcontrol/kio/policydlg.cpp +++ b/kcontrol/kio/policydlg.cpp @@ -30,7 +30,7 @@ #include "policydlg_ui.h" -class DomainLineValidator : public QValidator +class DomainLineValidator : public TQValidator { public: DomainLineValidator(TQObject *parent) @@ -63,14 +63,14 @@ PolicyDlg::PolicyDlg (const TQString& caption, TQWidget *parent, m_dlgUI = new PolicyDlgUI (this); setMainWidget(m_dlgUI); - m_dlgUI->leDomain->setValidator(new DomainLineValidator(m_dlgUI->leDomain)); + m_dlgUI->leDomain->setValidator(new DomainLineValidator(TQT_TQOBJECT(m_dlgUI->leDomain))); m_dlgUI->cbPolicy->setMinimumWidth( m_dlgUI->cbPolicy->fontMetrics().maxWidth() * 25 ); enableButtonOK( false ); connect(m_dlgUI->leDomain, TQT_SIGNAL(textChanged(const TQString&)), TQT_SLOT(slotTextChanged(const TQString&))); - setFixedSize (sizeHint()); + setFixedSize (tqsizeHint()); m_dlgUI->leDomain->setFocus (); } diff --git a/kcontrol/kio/policydlg.h b/kcontrol/kio/policydlg.h index 2bf7a4c99..17616860f 100644 --- a/kcontrol/kio/policydlg.h +++ b/kcontrol/kio/policydlg.h @@ -52,11 +52,11 @@ public: if (advice.isEmpty()) return KCookieAdvice::Dunno; - if (advice.find (TQString::fromLatin1("accept"), 0, false) == 0) + if (advice.tqfind (TQString::tqfromLatin1("accept"), 0, false) == 0) return KCookieAdvice::Accept; - else if (advice.find (TQString::fromLatin1("reject"), 0, false) == 0) + else if (advice.tqfind (TQString::tqfromLatin1("reject"), 0, false) == 0) return KCookieAdvice::Reject; - else if (advice.find (TQString::fromLatin1("ask"), 0, false) == 0) + else if (advice.tqfind (TQString::tqfromLatin1("ask"), 0, false) == 0) return KCookieAdvice::Ask; return KCookieAdvice::Dunno; diff --git a/kcontrol/kio/policydlg_ui.ui b/kcontrol/kio/policydlg_ui.ui index 1bae63208..015359829 100644 --- a/kcontrol/kio/policydlg_ui.ui +++ b/kcontrol/kio/policydlg_ui.ui @@ -1,6 +1,6 @@ PolicyDlgUI - + PolicyDlgUI @@ -19,7 +19,7 @@ 0 - + lbDomain @@ -45,7 +45,7 @@ Enter the host or domain to which this policy applies, e.g. <b>www.kde.org </qt> - + lbPolicy diff --git a/kcontrol/kio/smbrodlg.cpp b/kcontrol/kio/smbrodlg.cpp index 90dfd9170..e5337cbf2 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.findIndex( cfg->readEntry( "Encoding", m_encoding.lower() ) ) ); +// m_encodingList->setCurrentItem( _strList.tqfindIndex( cfg->readEntry( "Encoding", m_encoding.lower() ) ) ); // unscramble TQString scrambled = cfg->readEntry( "Password" ); @@ -140,7 +140,7 @@ void SMBRoOptions::save() for (uint i=0; i> 10; unsigned int a2 = (num & 0x3E0) >> 5; unsigned int a3 = (num & 0x1F); diff --git a/kcontrol/kio/socksbase.ui b/kcontrol/kio/socksbase.ui index 5def84076..3065ab229 100644 --- a/kcontrol/kio/socksbase.ui +++ b/kcontrol/kio/socksbase.ui @@ -1,6 +1,6 @@ SocksBase - + SocksBase @@ -26,7 +26,7 @@ 0 - + _c_enableSocks @@ -37,7 +37,7 @@ Check this to enable SOCKS4 and SOCKS5 support in KDE applications and I/O subsystems. - + bg @@ -51,7 +51,7 @@ unnamed - + _c_detect @@ -65,7 +65,7 @@ If you select Autodetect, then KDE will automatically search for an implementation of SOCKS on your computer. - + _c_NEC @@ -79,7 +79,7 @@ This will force KDE to use NEC SOCKS if it can be found. - + _c_custom @@ -93,7 +93,7 @@ Select custom if you wish to use an unlisted SOCKS library. Please note that this may not always work as it depends on the API of the library which you specify (below). - + Layout6 @@ -101,7 +101,7 @@ unnamed - + _c_customLabel @@ -127,7 +127,7 @@ _c_customPath - + 0 20 @@ -139,7 +139,7 @@ - + _c_Dante @@ -155,7 +155,7 @@ - + _c_addPaths @@ -180,7 +180,7 @@ unnamed - + Path @@ -211,14 +211,14 @@ _c_newPath - + 0 25 - + Layout1 @@ -236,14 +236,14 @@ MinimumExpanding - + 20 20 - + _c_add @@ -251,7 +251,7 @@ &Add - + _c_remove @@ -263,7 +263,7 @@ - + Layout2 @@ -281,14 +281,14 @@ Expanding - + 20 0 - + _c_test diff --git a/kcontrol/kio/uagentproviderdlg.cpp b/kcontrol/kio/uagentproviderdlg.cpp index 9e945948d..adab4b611 100644 --- a/kcontrol/kio/uagentproviderdlg.cpp +++ b/kcontrol/kio/uagentproviderdlg.cpp @@ -47,7 +47,7 @@ void UALineEdit::keyPressEvent( TQKeyEvent* e ) TQString keycode = e->text(); if ( (key >= Qt::Key_Escape && key <= Qt::Key_Help) || key == Qt::Key_Period || (cursorPosition() > 0 && key == Qt::Key_Minus) || - (!keycode.isEmpty() && keycode.unicode()->isLetterOrNumber()) ) + (!keycode.isEmpty() && keycode.tqunicode()->isLetterOrNumber()) ) { KLineEdit::keyPressEvent(e); return; @@ -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()->findItem(text) ); + int id = dlg->cbAlias->listBox()->index( dlg->cbAlias->listBox()->tqfindItem(text) ); dlg->cbAlias->setCurrentItem( id ); slotActivated( dlg->cbAlias->currentText() ); if ( !dlg->leSite->isEnabled() ) diff --git a/kcontrol/kio/uagentproviderdlg_ui.ui b/kcontrol/kio/uagentproviderdlg_ui.ui index 6f2a006ec..7bf590208 100644 --- a/kcontrol/kio/uagentproviderdlg_ui.ui +++ b/kcontrol/kio/uagentproviderdlg_ui.ui @@ -1,6 +1,6 @@ UAProviderDlgUI - + UAProviderDlgUI @@ -24,7 +24,7 @@ unnamed - + lbSite @@ -52,7 +52,7 @@ Enter the site or domain name where a fake browser identification should be used </qt> - + lbAlias @@ -78,7 +78,7 @@ Select the browser identification to use whenever contacting the site you specif </qt> - + lbIdentity @@ -117,14 +117,14 @@ The actual browser identification text that will be sent to the remote machine. MinimumExpanding - + 21 16 - + layout3 @@ -142,14 +142,14 @@ The actual browser identification text that will be sent to the remote machine. MinimumExpanding - + 29 20 - + pbOk @@ -160,7 +160,7 @@ The actual browser identification text that will be sent to the remote machine. &OK - + pbCancel diff --git a/kcontrol/kio/useragentdlg.cpp b/kcontrol/kio/useragentdlg.cpp index c34d5cadc..26476d9a8 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.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->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') ); 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.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->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->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.contains('o')); + dlg->cbOSVersion->setEnabled(m_ua_keys.tqcontains('o')); TQString modVal = KProtocolManager::defaultUserAgent( m_ua_keys ); if ( dlg->leDefaultId->text() != modVal ) diff --git a/kcontrol/kio/useragentdlg_ui.ui b/kcontrol/kio/useragentdlg_ui.ui index 0db2a2440..73b9dfd2e 100644 --- a/kcontrol/kio/useragentdlg_ui.ui +++ b/kcontrol/kio/useragentdlg_ui.ui @@ -1,6 +1,6 @@ UserAgentDlgUI - + UserAgentDlgUI @@ -25,7 +25,7 @@ To add a new site specific identification text, click the <code>New</co 0 - + cbSendUAString @@ -43,7 +43,7 @@ By default, only minimal identification information is sent to remote sites. The </qt> - + gbDefaultId @@ -88,7 +88,7 @@ By default, only minimal identification information is sent to remote sites. The The browser identification text sent to the sites you visit. You can customize it using the options provided below. - + cbOS @@ -99,7 +99,7 @@ By default, only minimal identification information is sent to remote sites. The Includes your operating system's name in the browser identification text. - + layout2 @@ -117,14 +117,14 @@ By default, only minimal identification information is sent to remote sites. The Fixed - + 16 20 - + cbOSVersion @@ -140,7 +140,7 @@ By default, only minimal identification information is sent to remote sites. The - + cbPlatform @@ -151,7 +151,7 @@ By default, only minimal identification information is sent to remote sites. The Includes your platform type in the browser identification text - + cbProcessorType @@ -162,7 +162,7 @@ By default, only minimal identification information is sent to remote sites. The Includes your machine's CPU type in the browser identification text. - + cbLanguage @@ -175,7 +175,7 @@ By default, only minimal identification information is sent to remote sites. The - + gbDomainPolicy @@ -248,7 +248,7 @@ By default, only minimal identification information is sent to remote sites. The List of sites for which the specified identification text will be used instead of the default one. - + layout1 @@ -256,7 +256,7 @@ By default, only minimal identification information is sent to remote sites. The unnamed - + pbNew @@ -267,7 +267,7 @@ By default, only minimal identification information is sent to remote sites. The Add new identification text for a site. - + pbChange @@ -278,7 +278,7 @@ By default, only minimal identification information is sent to remote sites. The Change the selected identifier text. - + pbDelete @@ -289,7 +289,7 @@ By default, only minimal identification information is sent to remote sites. The Delete the selected identifier text. - + pbDeleteAll @@ -310,7 +310,7 @@ By default, only minimal identification information is sent to remote sites. The Expanding - + 21 16 -- cgit v1.2.1