diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-16 02:40:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-16 02:40:35 +0000 |
commit | bab40890696ec68c337dc290880423a0602b83c7 (patch) | |
tree | 6ba03f720b1fa88235ba339e7aedb4455430357e /kspell2 | |
parent | f7e71d47719ab6094cf4a9fafffa5ea351973522 (diff) | |
download | tdelibs-bab40890696ec68c337dc290880423a0602b83c7.tar.gz tdelibs-bab40890696ec68c337dc290880423a0602b83c7.zip |
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
Diffstat (limited to 'kspell2')
-rw-r--r-- | kspell2/broker.cpp | 2 | ||||
-rw-r--r-- | kspell2/plugins/ispell/ispell_checker.cpp | 4 | ||||
-rw-r--r-- | kspell2/settings.cpp | 6 | ||||
-rw-r--r-- | kspell2/ui/configui.ui | 12 | ||||
-rw-r--r-- | kspell2/ui/dialog.cpp | 26 | ||||
-rw-r--r-- | kspell2/ui/kspell2ui.ui | 32 |
6 files changed, 41 insertions, 41 deletions
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<std::string> 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 @@ <class>KSpell2ConfigUI</class> <comment>Licensed under GNU LGPL</comment> <author>Zack Rusin <zack@kde.org></author> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>KSpell2ConfigUI</cstring> </property> @@ -26,7 +26,7 @@ <string>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.</string> </property> </widget> - <widget class="QGroupBox" row="1" column="0" rowspan="1" colspan="2"> + <widget class="TQGroupBox" row="1" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>groupBox1</cstring> </property> @@ -37,7 +37,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QCheckBox" row="0" column="0"> + <widget class="TQCheckBox" row="0" column="0"> <property name="name"> <cstring>m_bgSpellCB</cstring> </property> @@ -48,7 +48,7 @@ <string>If checked, the "spell as you type" mode is active and all misspelled words are immediately highlighted.</string> </property> </widget> - <widget class="QCheckBox" row="1" column="0"> + <widget class="TQCheckBox" row="1" column="0"> <property name="name"> <cstring>m_skipUpperCB</cstring> </property> @@ -59,7 +59,7 @@ <string>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.</string> </property> </widget> - <widget class="QCheckBox" row="2" column="0"> + <widget class="TQCheckBox" row="2" column="0"> <property name="name"> <cstring>m_skipRunTogetherCB</cstring> </property> @@ -72,7 +72,7 @@ </widget> </grid> </widget> - <widget class="QLabel" row="0" column="0"> + <widget class="TQLabel" row="0" column="0"> <property name="name"> <cstring>textLabel1</cstring> </property> 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!!"<<endl; d->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 @@ <!DOCTYPE UI><UI version="3.2" stdsetdef="1"> <class>KSpell2UI</class> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>KSpell2UI</cstring> </property> @@ -30,7 +30,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel" row="1" column="0" rowspan="1" colspan="2"> + <widget class="TQLabel" row="1" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>textLabel2</cstring> </property> @@ -44,7 +44,7 @@ </qt></string> </property> </widget> - <widget class="QLabel" row="1" column="2"> + <widget class="TQLabel" row="1" column="2"> <property name="name"> <cstring>m_unknownWord</cstring> </property> @@ -61,7 +61,7 @@ </qt></string> </property> </widget> - <widget class="QLabel" row="4" column="0"> + <widget class="TQLabel" row="4" column="0"> <property name="name"> <cstring>textLabel5</cstring> </property> @@ -77,7 +77,7 @@ </qt></string> </property> </widget> - <widget class="QLabel" row="0" column="0" rowspan="1" colspan="6"> + <widget class="TQLabel" row="0" column="0" rowspan="1" colspan="6"> <property name="name"> <cstring>m_contextLabel</cstring> </property> @@ -99,7 +99,7 @@ </qt></string> </property> </widget> - <widget class="QPushButton" row="1" column="4" rowspan="1" colspan="2"> + <widget class="TQPushButton" row="1" column="4" rowspan="1" colspan="2"> <property name="name"> <cstring>m_addBtn</cstring> </property> @@ -130,7 +130,7 @@ Click here if you consider that the unknown word is not misspelled and you want </size> </property> </spacer> - <widget class="QListView" row="3" column="0" rowspan="1" colspan="5"> + <widget class="TQListView" row="3" column="0" rowspan="1" colspan="5"> <column> <property name="text"> <string>Suggested Words</string> @@ -158,7 +158,7 @@ Click here if you consider that the unknown word is not misspelled and you want </qt></string> </property> </widget> - <widget class="QLabel" row="2" column="0" rowspan="1" colspan="2"> + <widget class="TQLabel" row="2" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>textLabel4</cstring> </property> @@ -175,7 +175,7 @@ Click here if you consider that the unknown word is not misspelled and you want </qt></string> </property> </widget> - <widget class="QLineEdit" row="2" column="2" rowspan="1" colspan="3"> + <widget class="TQLineEdit" row="2" column="2" rowspan="1" colspan="3"> <property name="name"> <cstring>m_replacement</cstring> </property> @@ -186,7 +186,7 @@ Click here if you consider that the unknown word is not misspelled and you want </qt></string> </property> </widget> - <widget class="QComboBox" row="4" column="1" rowspan="1" colspan="4"> + <widget class="TQComboBox" row="4" column="1" rowspan="1" colspan="4"> <item> <property name="text"> <string>English</string> @@ -212,7 +212,7 @@ Click here if you consider that the unknown word is not misspelled and you want <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>m_suggestBtn</cstring> </property> @@ -220,7 +220,7 @@ Click here if you consider that the unknown word is not misspelled and you want <string>S&uggest</string> </property> </widget> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>m_replaceBtn</cstring> </property> @@ -233,7 +233,7 @@ Click here if you consider that the unknown word is not misspelled and you want </qt></string> </property> </widget> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>m_replaceAllBtn</cstring> </property> @@ -246,7 +246,7 @@ Click here if you consider that the unknown word is not misspelled and you want </qt></string> </property> </widget> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>m_skipBtn</cstring> </property> @@ -260,7 +260,7 @@ Click here if you consider that the unknown word is not misspelled and you want </qt></string> </property> </widget> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>m_skipAllBtn</cstring> </property> @@ -274,7 +274,7 @@ Click here if you consider that the unknown word is not misspelled and you want </qt></string> </property> </widget> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>m_autoCorrect</cstring> </property> |