From bab40890696ec68c337dc290880423a0602b83c7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sun, 16 Jan 2011 02:40:35 +0000 Subject: Finished remaining porting to new TQt API git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1214736 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kspell2/broker.cpp | 2 +- kspell2/plugins/ispell/ispell_checker.cpp | 4 ++-- kspell2/settings.cpp | 6 +++--- kspell2/ui/configui.ui | 12 ++++++------ kspell2/ui/dialog.cpp | 26 ++++++++++++------------- kspell2/ui/kspell2ui.ui | 32 +++++++++++++++---------------- 6 files changed, 41 insertions(+), 41 deletions(-) (limited to 'kspell2') diff --git a/kspell2/broker.cpp b/kspell2/broker.cpp index 0149dace1..b24f20beb 100644 --- a/kspell2/broker.cpp +++ b/kspell2/broker.cpp @@ -65,7 +65,7 @@ Broker *Broker::openBroker( KSharedConfig *config ) preventDeletion = config; if ( s_brokers ) { - Broker *broker = s_brokers->find( preventDeletion ); + Broker *broker = s_brokers->tqfind( preventDeletion ); if ( broker ) return broker; } diff --git a/kspell2/plugins/ispell/ispell_checker.cpp b/kspell2/plugins/ispell/ispell_checker.cpp index 6b3d382af..fba7d3479 100644 --- a/kspell2/plugins/ispell/ispell_checker.cpp +++ b/kspell2/plugins/ispell/ispell_checker.cpp @@ -260,7 +260,7 @@ ISpellChecker::checkWord( const TQString& utf8Word ) return retVal; } -QStringList +TQStringList ISpellChecker::suggestWord(const TQString& utf8Word) { ichar_t iWord[INPUTWORDLEN + MAXAFFIXLEN]; @@ -358,7 +358,7 @@ ISpellChecker::allDics() return ispell_dict_map.keys(); } -QString +TQString ISpellChecker::loadDictionary (const char * szdict) { std::vector dict_names; diff --git a/kspell2/settings.cpp b/kspell2/settings.cpp index 9e10913bf..c220520e6 100644 --- a/kspell2/settings.cpp +++ b/kspell2/settings.cpp @@ -94,7 +94,7 @@ void Settings::setDefaultClient( const TQString& client ) //Different from setDefaultLanguage because //the number of clients can't be even close //as big as the number of languages - if ( d->broker->clients().contains( client ) ) { + if ( d->broker->clients().tqcontains( client ) ) { d->defaultClient = client; d->modified = true; d->broker->changed(); @@ -167,7 +167,7 @@ TQStringList Settings::currentIgnoreList() const void Settings::addWordToIgnore( const TQString& word ) { - if ( !d->ignore.contains( word ) ) { + if ( !d->ignore.tqcontains( word ) ) { d->modified = true; d->ignore.insert( word, true ); } @@ -175,7 +175,7 @@ void Settings::addWordToIgnore( const TQString& word ) bool Settings::ignore( const TQString& word ) { - return d->ignore.contains( word ); + return d->ignore.tqcontains( word ); } void Settings::readIgnoreList() diff --git a/kspell2/ui/configui.ui b/kspell2/ui/configui.ui index bf645b9c9..d6f6e596b 100644 --- a/kspell2/ui/configui.ui +++ b/kspell2/ui/configui.ui @@ -2,7 +2,7 @@ KSpell2ConfigUI Licensed under GNU LGPL Zack Rusin <zack@kde.org> - + KSpell2ConfigUI @@ -26,7 +26,7 @@ This is the default language that the spell checker will use. The drop down box will list all of the dictionaries of your existing languages. - + groupBox1 @@ -37,7 +37,7 @@ unnamed - + m_bgSpellCB @@ -48,7 +48,7 @@ If checked, the "spell as you type" mode is active and all misspelled words are immediately highlighted. - + m_skipUpperCB @@ -59,7 +59,7 @@ If checked, words that consist of only uppercase letters are not spell checked. This is useful if you have a lot of acronyms, such as KDE for example. - + m_skipRunTogetherCB @@ -72,7 +72,7 @@ - + textLabel1 diff --git a/kspell2/ui/dialog.cpp b/kspell2/ui/dialog.cpp index 93b81fd94..46e31ad82 100644 --- a/kspell2/ui/dialog.cpp +++ b/kspell2/ui/dialog.cpp @@ -69,7 +69,7 @@ Dialog::Dialog( BackgroundChecker *checker, initGui(); initConnections(); - setMainWidget( d->ui ); + setMainWidget( TQT_TQWIDGET(d->ui) ); } Dialog::~Dialog() @@ -79,27 +79,27 @@ Dialog::~Dialog() void Dialog::initConnections() { - connect( d->ui->m_addBtn, TQT_SIGNAL(clicked()), + connect( TQT_TQOBJECT(d->ui->m_addBtn), TQT_SIGNAL(clicked()), TQT_SLOT(slotAddWord()) ); - connect( d->ui->m_replaceBtn, TQT_SIGNAL(clicked()), + connect( TQT_TQOBJECT(d->ui->m_replaceBtn), TQT_SIGNAL(clicked()), TQT_SLOT(slotReplaceWord()) ); - connect( d->ui->m_replaceAllBtn, TQT_SIGNAL(clicked()), + connect( TQT_TQOBJECT(d->ui->m_replaceAllBtn), TQT_SIGNAL(clicked()), TQT_SLOT(slotReplaceAll()) ); - connect( d->ui->m_skipBtn, TQT_SIGNAL(clicked()), + connect( TQT_TQOBJECT(d->ui->m_skipBtn), TQT_SIGNAL(clicked()), TQT_SLOT(slotSkip()) ); - connect( d->ui->m_skipAllBtn, TQT_SIGNAL(clicked()), + connect( TQT_TQOBJECT(d->ui->m_skipAllBtn), TQT_SIGNAL(clicked()), TQT_SLOT(slotSkipAll()) ); - connect( d->ui->m_suggestBtn, TQT_SIGNAL(clicked()), + connect( TQT_TQOBJECT(d->ui->m_suggestBtn), TQT_SIGNAL(clicked()), TQT_SLOT(slotSuggest()) ); - connect( d->ui->m_language, TQT_SIGNAL(activated(const TQString&)), + connect( TQT_TQOBJECT(d->ui->m_language), TQT_SIGNAL(activated(const TQString&)), TQT_SLOT(slotChangeLanguage(const TQString&)) ); - connect( d->ui->m_suggestions, TQT_SIGNAL(selectionChanged(TQListViewItem*)), + connect( TQT_TQOBJECT(d->ui->m_suggestions), TQT_SIGNAL(selectionChanged(TQListViewItem*)), TQT_SLOT(slotSelectionChanged(TQListViewItem*)) ); - connect( d->checker, TQT_SIGNAL(misspelling(const TQString&, int)), + connect( TQT_TQOBJECT(d->checker), TQT_SIGNAL(misspelling(const TQString&, int)), TQT_SIGNAL(misspelling(const TQString&, int)) ); - connect( d->checker, TQT_SIGNAL(misspelling(const TQString&, int)), + connect( TQT_TQOBJECT(d->checker), TQT_SIGNAL(misspelling(const TQString&, int)), TQT_SLOT(slotMisspelling(const TQString&, int)) ); - connect( d->checker, TQT_SIGNAL(done()), + connect( TQT_TQOBJECT(d->checker), TQT_SIGNAL(done()), TQT_SLOT(slotDone()) ); connect( d->ui->m_suggestions, TQT_SIGNAL(doubleClicked(TQListViewItem*, const TQPoint&, int)), TQT_SLOT( slotReplaceWord() ) ); @@ -261,7 +261,7 @@ void Dialog::slotMisspelling(const TQString& word, int start ) { kdDebug()<<"Dialog misspelling!!"<currentWord = Word( word, start ); - if ( d->replaceAllMap.contains( word ) ) { + if ( d->replaceAllMap.tqcontains( word ) ) { d->ui->m_replacement->setText( d->replaceAllMap[ word ] ); slotReplaceWord(); } else { diff --git a/kspell2/ui/kspell2ui.ui b/kspell2/ui/kspell2ui.ui index b8a5d662b..754894e5b 100644 --- a/kspell2/ui/kspell2ui.ui +++ b/kspell2/ui/kspell2ui.ui @@ -1,6 +1,6 @@ KSpell2UI - + KSpell2UI @@ -30,7 +30,7 @@ unnamed - + textLabel2 @@ -44,7 +44,7 @@ </qt> - + m_unknownWord @@ -61,7 +61,7 @@ </qt> - + textLabel5 @@ -77,7 +77,7 @@ </qt> - + m_contextLabel @@ -99,7 +99,7 @@ </qt> - + m_addBtn @@ -130,7 +130,7 @@ Click here if you consider that the unknown word is not misspelled and you want - + Suggested Words @@ -158,7 +158,7 @@ Click here if you consider that the unknown word is not misspelled and you want </qt> - + textLabel4 @@ -175,7 +175,7 @@ Click here if you consider that the unknown word is not misspelled and you want </qt> - + m_replacement @@ -186,7 +186,7 @@ Click here if you consider that the unknown word is not misspelled and you want </qt> - + English @@ -212,7 +212,7 @@ Click here if you consider that the unknown word is not misspelled and you want unnamed - + m_suggestBtn @@ -220,7 +220,7 @@ Click here if you consider that the unknown word is not misspelled and you want S&uggest - + m_replaceBtn @@ -233,7 +233,7 @@ Click here if you consider that the unknown word is not misspelled and you want </qt> - + m_replaceAllBtn @@ -246,7 +246,7 @@ Click here if you consider that the unknown word is not misspelled and you want </qt> - + m_skipBtn @@ -260,7 +260,7 @@ Click here if you consider that the unknown word is not misspelled and you want </qt> - + m_skipAllBtn @@ -274,7 +274,7 @@ Click here if you consider that the unknown word is not misspelled and you want </qt> - + m_autoCorrect -- cgit v1.2.1