diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-03 04:12:51 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-03 04:12:51 +0000 |
commit | 560378aaca1784ba19806a0414a32b20c744de39 (patch) | |
tree | ce0dfd7c3febf2a1adc7603d1019a8be2083c415 /kdeui/ksconfig.cpp | |
parent | d4d5af1cdbd3cc65d095e0afc5b1f4260091cf5d (diff) | |
download | tdelibs-560378aaca1784ba19806a0414a32b20c744de39.tar.gz tdelibs-560378aaca1784ba19806a0414a32b20c744de39.zip |
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeui/ksconfig.cpp')
-rw-r--r-- | kdeui/ksconfig.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/kdeui/ksconfig.cpp b/kdeui/ksconfig.cpp index a8849e8fe..b859b7ba9 100644 --- a/kdeui/ksconfig.cpp +++ b/kdeui/ksconfig.cpp @@ -41,7 +41,7 @@ class KSpellConfigPrivate { public: - TQStringList replacelist; + TQStringList tqreplacelist; }; @@ -56,7 +56,7 @@ KSpellConfig::KSpellConfig (const KSpellConfig &_ksc) , clientcombo(0) { d = new KSpellConfigPrivate; - setReplaceAllList( _ksc.replaceAllList() ); + setReplaceAllList( _ksc.tqreplaceAllList() ); setNoRootAffix( _ksc.noRootAffix() ); setRunTogether( _ksc.runTogether() ); setDictionary( _ksc.dictionary() ); @@ -266,7 +266,7 @@ KSpellConfig::interpret( TQString &fname, TQString &lname, TQString extension; - int i = dname.find('-'); + int i = dname.tqfind('-'); if ( i != -1 ) { extension = dname.mid(i+1); @@ -363,8 +363,8 @@ KSpellConfig::interpret( TQString &fname, TQString &lname, } //We have explicitly chosen English as the default here. - if ( ( KGlobal::locale()->language() == TQString::fromLatin1("C") && - lname==TQString::fromLatin1("en") ) || + if ( ( KGlobal::locale()->language() == TQString::tqfromLatin1("C") && + lname==TQString::tqfromLatin1("en") ) || KGlobal::locale()->language() == lname ) return true; @@ -406,9 +406,9 @@ KSpellConfig::fillInDialog () int whichelement=-1; if ( dictFromList() ) - whichelement = langfnames.findIndex(dictionary()); + whichelement = langfnames.tqfindIndex(dictionary()); - dictcombo->setMinimumWidth (dictcombo->sizeHint().width()); + dictcombo->setMinimumWidth (dictcombo->tqsizeHint().width()); if (dictionary().isEmpty() || whichelement!=-1) { @@ -668,7 +668,7 @@ KSpellConfig::fillDicts( TQComboBox* box, TQStringList* dictionaries ) box->insertItem (i18n("ASpell Default")); // dictionary path - // FIXME: use "aspell dump config" to find out the dict-dir + // FIXME: use "aspell dump config" to tqfind out the dict-dir TQFileInfo dir ("/usr/lib" KDELIBSUFF "/aspell"); if (!dir.exists() || !dir.isDir()) dir.setFile ("/usr/lib" KDELIBSUFF "/aspell-0.60"); @@ -742,7 +742,7 @@ KSpellConfig::fillDicts( TQComboBox* box, TQStringList* dictionaries ) } } } - int whichelement = langfnames.findIndex(qsdict); + int whichelement = langfnames.tqfindIndex(qsdict); if ( whichelement >= 0 ) { box->setCurrentItem( whichelement ); } @@ -788,7 +788,7 @@ KSpellConfig::setDictionary (const TQString s) qsdict=s; //.copy(); if (qsdict.length()>5) - if ((signed)qsdict.find(".hash")==(signed)qsdict.length()-5) + if ((signed)qsdict.tqfind(".hash")==(signed)qsdict.length()-5) qsdict.remove (qsdict.length()-5,5); @@ -797,7 +797,7 @@ KSpellConfig::setDictionary (const TQString s) int whichelement=-1; if (dictFromList()) { - whichelement = langfnames.findIndex(s); + whichelement = langfnames.tqfindIndex(s); if(whichelement >= 0) { @@ -903,7 +903,7 @@ KSpellConfig::sBrowseDict() /* void KSpellConfig::sBrowsePDict() { - //how do I find home directory path?? + //how do I tqfind home directory path?? TQString qs( KFileDialog::getOpenFileName ("",".ispell_*") ); if ( !qs.isNull() ) kle2->setText (qs); @@ -1011,15 +1011,15 @@ KSpellConfig::ignoreList () const // KDE 4: Make it const TQStringList & void -KSpellConfig::setReplaceAllList (TQStringList _replacelist) +KSpellConfig::setReplaceAllList (TQStringList _tqreplacelist) { - d->replacelist=_replacelist; + d->tqreplacelist=_tqreplacelist; } QStringList -KSpellConfig::replaceAllList() const +KSpellConfig::tqreplaceAllList() const { - return d->replacelist; + return d->tqreplacelist; } #include "ksconfig.moc" |