diff options
Diffstat (limited to 'tdespell2')
-rw-r--r-- | tdespell2/backgroundchecker.cpp | 8 | ||||
-rw-r--r-- | tdespell2/backgroundengine.cpp | 4 | ||||
-rw-r--r-- | tdespell2/defaultdictionary.cpp | 4 | ||||
-rw-r--r-- | tdespell2/tests/backgroundtest.cpp | 8 | ||||
-rw-r--r-- | tdespell2/tests/test_dialog.cpp | 4 | ||||
-rw-r--r-- | tdespell2/ui/configwidget.cpp | 2 | ||||
-rw-r--r-- | tdespell2/ui/dialog.cpp | 58 | ||||
-rw-r--r-- | tdespell2/ui/highlighter.cpp | 2 |
8 files changed, 45 insertions, 45 deletions
diff --git a/tdespell2/backgroundchecker.cpp b/tdespell2/backgroundchecker.cpp index 799edf120..954ad8f64 100644 --- a/tdespell2/backgroundchecker.cpp +++ b/tdespell2/backgroundchecker.cpp @@ -46,10 +46,10 @@ BackgroundChecker::BackgroundChecker( const Broker::Ptr& broker, TQObject* paren //d->thread.setBroker( broker ); d->engine = new BackgroundEngine( this ); d->engine->setBroker( broker ); - connect( d->engine, TQT_SIGNAL(misspelling( const TQString&, int )), - TQT_SIGNAL(misspelling( const TQString&, int )) ); - connect( d->engine, TQT_SIGNAL(done()), - TQT_SLOT(slotEngineDone()) ); + connect( d->engine, TQ_SIGNAL(misspelling( const TQString&, int )), + TQ_SIGNAL(misspelling( const TQString&, int )) ); + connect( d->engine, TQ_SIGNAL(done()), + TQ_SLOT(slotEngineDone()) ); } BackgroundChecker::~BackgroundChecker() diff --git a/tdespell2/backgroundengine.cpp b/tdespell2/backgroundengine.cpp index 9eafe1b2e..21ab03478 100644 --- a/tdespell2/backgroundengine.cpp +++ b/tdespell2/backgroundengine.cpp @@ -87,7 +87,7 @@ void BackgroundEngine::setFilter( Filter *filter ) void BackgroundEngine::start() { - TQTimer::singleShot( 0, this, TQT_SLOT(checkNext()) ); + TQTimer::singleShot( 0, this, TQ_SLOT(checkNext()) ); } void BackgroundEngine::stop() @@ -96,7 +96,7 @@ void BackgroundEngine::stop() void BackgroundEngine::continueChecking() { - TQTimer::singleShot( 0, this, TQT_SLOT(checkNext()) ); + TQTimer::singleShot( 0, this, TQ_SLOT(checkNext()) ); } void BackgroundEngine::checkNext() diff --git a/tdespell2/defaultdictionary.cpp b/tdespell2/defaultdictionary.cpp index 39b80e7cf..d501012fd 100644 --- a/tdespell2/defaultdictionary.cpp +++ b/tdespell2/defaultdictionary.cpp @@ -39,8 +39,8 @@ DefaultDictionary::DefaultDictionary( const TQString& lang, Broker *broker ) d = new Private; d->dict = broker->dictionary(); d->broker = broker; - connect( broker, TQT_SIGNAL(configurationChanged()), - TQT_SLOT(defaultConfigurationChanged()) ); + connect( broker, TQ_SIGNAL(configurationChanged()), + TQ_SLOT(defaultConfigurationChanged()) ); } DefaultDictionary::~DefaultDictionary() diff --git a/tdespell2/tests/backgroundtest.cpp b/tdespell2/tests/backgroundtest.cpp index 92c7e7792..79ba20331 100644 --- a/tdespell2/tests/backgroundtest.cpp +++ b/tdespell2/tests/backgroundtest.cpp @@ -134,10 +134,10 @@ BackgroundTest::BackgroundTest() : TQObject( 0 ) { m_checker = new BackgroundChecker( Broker::openBroker(), this ); - connect( m_checker, TQT_SIGNAL(done()), - TQT_SLOT(slotDone()) ); - connect( m_checker, TQT_SIGNAL(misspelling(const TQString&, int)), - TQT_SLOT(slotMisspelling(const TQString&, int)) ); + connect( m_checker, TQ_SIGNAL(done()), + TQ_SLOT(slotDone()) ); + connect( m_checker, TQ_SIGNAL(misspelling(const TQString&, int)), + TQ_SLOT(slotMisspelling(const TQString&, int)) ); m_len = strlen( text ); m_checker->checkText( text ); m_timer.start(); diff --git a/tdespell2/tests/test_dialog.cpp b/tdespell2/tests/test_dialog.cpp index d6441bde6..a84aeaf30 100644 --- a/tdespell2/tests/test_dialog.cpp +++ b/tdespell2/tests/test_dialog.cpp @@ -40,8 +40,8 @@ void TestDialog::check( const TQString& buffer ) KSpell2::Dialog *dlg = new KSpell2::Dialog( new BackgroundChecker( Broker::openBroker(), this, "checker" ), 0, "my dialog" ); - connect( dlg, TQT_SIGNAL(done(const TQString&)), - TQT_SLOT(doneChecking(const TQString&)) ); + connect( dlg, TQ_SIGNAL(done(const TQString&)), + TQ_SLOT(doneChecking(const TQString&)) ); dlg->setBuffer( buffer ); dlg->show(); } diff --git a/tdespell2/ui/configwidget.cpp b/tdespell2/ui/configwidget.cpp index 2317f7307..8efaddb04 100644 --- a/tdespell2/ui/configwidget.cpp +++ b/tdespell2/ui/configwidget.cpp @@ -71,7 +71,7 @@ void ConfigWidget::init( Broker *broker ) d->ui->m_ignoreListBox->insertStringList( ignoreList ); d->ui->m_bgSpellCB->setChecked( d->broker->settings()->backgroundCheckerEnabled() ); d->ui->m_bgSpellCB->hide();//hidden by default - connect( d->ui->m_ignoreListBox, TQT_SIGNAL(changed()), TQT_SLOT(slotChanged()) ); + connect( d->ui->m_ignoreListBox, TQ_SIGNAL(changed()), TQ_SLOT(slotChanged()) ); layout->addWidget( d->ui ); } diff --git a/tdespell2/ui/dialog.cpp b/tdespell2/ui/dialog.cpp index a47c7664b..9eb592a5c 100644 --- a/tdespell2/ui/dialog.cpp +++ b/tdespell2/ui/dialog.cpp @@ -79,35 +79,35 @@ Dialog::~Dialog() void Dialog::initConnections() { - connect( d->ui->m_addBtn, TQT_SIGNAL(clicked()), - TQT_SLOT(slotAddWord()) ); - connect( d->ui->m_replaceBtn, TQT_SIGNAL(clicked()), - TQT_SLOT(slotReplaceWord()) ); - connect( d->ui->m_replaceAllBtn, TQT_SIGNAL(clicked()), - TQT_SLOT(slotReplaceAll()) ); - connect( d->ui->m_skipBtn, TQT_SIGNAL(clicked()), - TQT_SLOT(slotSkip()) ); - connect( d->ui->m_skipAllBtn, TQT_SIGNAL(clicked()), - TQT_SLOT(slotSkipAll()) ); - connect( d->ui->m_suggestBtn, TQT_SIGNAL(clicked()), - TQT_SLOT(slotSuggest()) ); - connect( d->ui->m_language, TQT_SIGNAL(activated(const TQString&)), - TQT_SLOT(slotChangeLanguage(const TQString&)) ); - connect( d->ui->m_suggestions, TQT_SIGNAL(selectionChanged(TQListViewItem*)), - TQT_SLOT(slotSelectionChanged(TQListViewItem*)) ); - connect( d->checker, TQT_SIGNAL(misspelling(const TQString&, int)), - TQT_SIGNAL(misspelling(const TQString&, int)) ); - connect( d->checker, TQT_SIGNAL(misspelling(const TQString&, int)), - TQT_SLOT(slotMisspelling(const TQString&, int)) ); - connect( d->checker, TQT_SIGNAL(done()), - TQT_SLOT(slotDone()) ); - connect( d->ui->m_suggestions, TQT_SIGNAL(doubleClicked(TQListViewItem*, const TQPoint&, int)), - TQT_SLOT( slotReplaceWord() ) ); - connect( this, TQT_SIGNAL(user1Clicked()), this, TQT_SLOT(slotFinished()) ); - connect( this, TQT_SIGNAL(cancelClicked()),this, TQT_SLOT(slotCancel()) ); - connect( d->ui->m_replacement, TQT_SIGNAL(returnPressed()), this, TQT_SLOT(slotReplaceWord()) ); - connect( d->ui->m_autoCorrect, TQT_SIGNAL(clicked()), - TQT_SLOT(slotAutocorrect()) ); + connect( d->ui->m_addBtn, TQ_SIGNAL(clicked()), + TQ_SLOT(slotAddWord()) ); + connect( d->ui->m_replaceBtn, TQ_SIGNAL(clicked()), + TQ_SLOT(slotReplaceWord()) ); + connect( d->ui->m_replaceAllBtn, TQ_SIGNAL(clicked()), + TQ_SLOT(slotReplaceAll()) ); + connect( d->ui->m_skipBtn, TQ_SIGNAL(clicked()), + TQ_SLOT(slotSkip()) ); + connect( d->ui->m_skipAllBtn, TQ_SIGNAL(clicked()), + TQ_SLOT(slotSkipAll()) ); + connect( d->ui->m_suggestBtn, TQ_SIGNAL(clicked()), + TQ_SLOT(slotSuggest()) ); + connect( d->ui->m_language, TQ_SIGNAL(activated(const TQString&)), + TQ_SLOT(slotChangeLanguage(const TQString&)) ); + connect( d->ui->m_suggestions, TQ_SIGNAL(selectionChanged(TQListViewItem*)), + TQ_SLOT(slotSelectionChanged(TQListViewItem*)) ); + connect( d->checker, TQ_SIGNAL(misspelling(const TQString&, int)), + TQ_SIGNAL(misspelling(const TQString&, int)) ); + connect( d->checker, TQ_SIGNAL(misspelling(const TQString&, int)), + TQ_SLOT(slotMisspelling(const TQString&, int)) ); + connect( d->checker, TQ_SIGNAL(done()), + TQ_SLOT(slotDone()) ); + connect( d->ui->m_suggestions, TQ_SIGNAL(doubleClicked(TQListViewItem*, const TQPoint&, int)), + TQ_SLOT( slotReplaceWord() ) ); + connect( this, TQ_SIGNAL(user1Clicked()), this, TQ_SLOT(slotFinished()) ); + connect( this, TQ_SIGNAL(cancelClicked()),this, TQ_SLOT(slotCancel()) ); + connect( d->ui->m_replacement, TQ_SIGNAL(returnPressed()), this, TQ_SLOT(slotReplaceWord()) ); + connect( d->ui->m_autoCorrect, TQ_SIGNAL(clicked()), + TQ_SLOT(slotAutocorrect()) ); // button use by kword/kpresenter // hide by default d->ui->m_autoCorrect->hide(); diff --git a/tdespell2/ui/highlighter.cpp b/tdespell2/ui/highlighter.cpp index 9af6a6725..080737dae 100644 --- a/tdespell2/ui/highlighter.cpp +++ b/tdespell2/ui/highlighter.cpp @@ -87,7 +87,7 @@ int Highlighter::highlightParagraph( const TQString& text, w = d->filter->nextWord(); } } - //TQTimer::singleShot( 0, this, TQT_SLOT(checkWords()) ); + //TQTimer::singleShot( 0, this, TQ_SLOT(checkWords()) ); return 0; } |