summaryrefslogtreecommitdiffstats
path: root/tdeui/ksyntaxhighlighter.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-12 11:17:33 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-15 11:09:32 +0900
commit7f03918f8df7479b0e1a88288066201a301e87bf (patch)
treeef42e0c7ecbd6d292ca5aa7f3aeca141dd65cdb1 /tdeui/ksyntaxhighlighter.cpp
parentccaaecf59c0e607be633c45ad3b7bb1ef29e981f (diff)
downloadtdelibs-7f03918f8df7479b0e1a88288066201a301e87bf.tar.gz
tdelibs-7f03918f8df7479b0e1a88288066201a301e87bf.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit ba3b5b77e1a430dc7197df20872ba46ce2fb6fa7)
Diffstat (limited to 'tdeui/ksyntaxhighlighter.cpp')
-rw-r--r--tdeui/ksyntaxhighlighter.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/tdeui/ksyntaxhighlighter.cpp b/tdeui/ksyntaxhighlighter.cpp
index 80529ed34..8e46e14ec 100644
--- a/tdeui/ksyntaxhighlighter.cpp
+++ b/tdeui/ksyntaxhighlighter.cpp
@@ -300,11 +300,11 @@ KDictSpellingHighlighter::KDictSpellingHighlighter( TQTextEdit *textEdit,
textEdit->viewport()->installEventFilter( this );
d->rehighlightRequest = new TQTimer(this);
- connect( d->rehighlightRequest, TQT_SIGNAL( timeout() ),
- this, TQT_SLOT( slotRehighlight() ));
+ connect( d->rehighlightRequest, TQ_SIGNAL( timeout() ),
+ this, TQ_SLOT( slotRehighlight() ));
d->spellTimeout = new TQTimer(this);
- connect( d->spellTimeout, TQT_SIGNAL( timeout() ),
- this, TQT_SLOT( slotKSpellNotResponding() ));
+ connect( d->spellTimeout, TQ_SIGNAL( timeout() ),
+ this, TQ_SLOT( slotKSpellNotResponding() ));
if ( d->globalConfig ) {
d->spellKey = spellKey();
@@ -314,8 +314,8 @@ KDictSpellingHighlighter::KDictSpellingHighlighter( TQTextEdit *textEdit,
}
else {
d->mDict = new TQDict<int>(4001);
- connect( d->mSpellConfig, TQT_SIGNAL( configChanged() ),
- this, TQT_SLOT( slotLocalSpellConfigChanged() ) );
+ connect( d->mSpellConfig, TQ_SIGNAL( configChanged() ),
+ this, TQ_SLOT( slotLocalSpellConfigChanged() ) );
}
slotDictionaryChanged();
@@ -339,8 +339,8 @@ void KDictSpellingHighlighter::slotSpellReady( KSpell *spell )
if ( cg.readEntry("KSpell_DoSpellChecking") != "0" )
{
if ( d->globalConfig ) {
- connect( d->sDictionaryMonitor, TQT_SIGNAL( destroyed()),
- this, TQT_SLOT( slotDictionaryChanged() ));
+ connect( d->sDictionaryMonitor, TQ_SIGNAL( destroyed()),
+ this, TQ_SLOT( slotDictionaryChanged() ));
}
if ( spell != d->spell )
{
@@ -352,10 +352,10 @@ void KDictSpellingHighlighter::slotSpellReady( KSpell *spell )
for ( TQStringList::ConstIterator it = l.begin(); it != l.end(); ++it ) {
d->spell->addPersonal( *it );
}
- connect( spell, TQT_SIGNAL( misspelling( const TQString &, const TQStringList &, unsigned int )),
- this, TQT_SLOT( slotMisspelling( const TQString &, const TQStringList &, unsigned int )));
- connect( spell, TQT_SIGNAL( corrected( const TQString &, const TQString &, unsigned int )),
- this, TQT_SLOT( slotCorrected( const TQString &, const TQString &, unsigned int )));
+ connect( spell, TQ_SIGNAL( misspelling( const TQString &, const TQStringList &, unsigned int )),
+ this, TQ_SLOT( slotMisspelling( const TQString &, const TQStringList &, unsigned int )));
+ connect( spell, TQ_SIGNAL( corrected( const TQString &, const TQString &, unsigned int )),
+ this, TQ_SLOT( slotCorrected( const TQString &, const TQString &, unsigned int )));
d->checksRequested = 0;
d->checksDone = 0;
d->completeRehighlightRequired = true;
@@ -514,7 +514,7 @@ void KDictSpellingHighlighter::slotRehighlight()
}
if (d->checksDone == d->checksRequested)
d->completeRehighlightRequired = false;
- TQTimer::singleShot( 0, this, TQT_SLOT( slotAutoDetection() ));
+ TQTimer::singleShot( 0, this, TQ_SLOT( slotAutoDetection() ));
}
void KDictSpellingHighlighter::slotDictionaryChanged()
@@ -526,7 +526,7 @@ void KDictSpellingHighlighter::slotDictionaryChanged()
d->autoDict.clear();
d->spell = new KSpell( 0, i18n( "Incremental Spellcheck" ), this,
- TQT_SLOT( slotSpellReady( KSpell * ) ), d->mSpellConfig );
+ TQ_SLOT( slotSpellReady( KSpell * ) ), d->mSpellConfig );
}
void KDictSpellingHighlighter::slotLocalSpellConfigChanged()
@@ -657,7 +657,7 @@ bool KDictSpellingHighlighter::eventFilter( TQObject *o, TQEvent *e)
if ( k->key() == Key_Space ||
k->key() == Key_Enter ||
k->key() == Key_Return ) {
- TQTimer::singleShot( 0, this, TQT_SLOT( slotAutoDetection() ));
+ TQTimer::singleShot( 0, this, TQ_SLOT( slotAutoDetection() ));
}
}