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/ui/configui.ui | 12 ++++++------ kspell2/ui/dialog.cpp | 26 +++++++++++++------------- kspell2/ui/kspell2ui.ui | 32 ++++++++++++++++---------------- 3 files changed, 35 insertions(+), 35 deletions(-) (limited to 'kspell2/ui') 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