diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-14 12:33:20 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-14 12:43:48 +0900 |
commit | 3b3f9ec8f31978030c17309fae48335bea5c1587 (patch) | |
tree | 0b493383a1501860371aacd792ec6fc08d595824 /kmail/kmedit.cpp | |
parent | 99e6e1d1f43610c3573e9824a2a8a38f69930cd0 (diff) | |
download | tdepim-3b3f9ec8f31978030c17309fae48335bea5c1587.tar.gz tdepim-3b3f9ec8f31978030c17309fae48335bea5c1587.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kmail/kmedit.cpp')
-rw-r--r-- | kmail/kmedit.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/kmail/kmedit.cpp b/kmail/kmedit.cpp index 6d8f82861..b66e6ee66 100644 --- a/kmail/kmedit.cpp +++ b/kmail/kmedit.cpp @@ -226,21 +226,21 @@ KMEdit::KMEdit(TQWidget *parent, KMComposeWin* composer, mSpellLineEdit( false ), mPasteMode( TQClipboard::Clipboard ) { - connect( this, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(slotSelectionChanged()) ); + connect( this, TQ_SIGNAL(selectionChanged()), this, TQ_SLOT(slotSelectionChanged()) ); installEventFilter(this); KCursor::setAutoHideCursor( this, true, true ); setOverwriteEnabled( true ); createSpellers(); - connect( mSpellConfig, TQT_SIGNAL( configChanged() ), - this, TQT_SLOT( createSpellers() ) ); - connect( mSpeller, TQT_SIGNAL( death() ), - this, TQT_SLOT( spellerDied() ) ); + connect( mSpellConfig, TQ_SIGNAL( configChanged() ), + this, TQ_SLOT( createSpellers() ) ); + connect( mSpeller, TQ_SIGNAL( death() ), + this, TQ_SLOT( spellerDied() ) ); } void KMEdit::createSpellers() { delete mSpeller; - mSpeller = new KMSpell( this, TQT_SLOT( spellerReady( KSpell * ) ), mSpellConfig ); + mSpeller = new KMSpell( this, TQ_SLOT( spellerReady( KSpell * ) ), mSpellConfig ); } void KMEdit::initializeAutoSpellChecking() @@ -270,8 +270,8 @@ void KMEdit::initializeAutoSpellChecking() col1, col2, col3, col4, mSpellConfig ); - connect( mHighlighter, TQT_SIGNAL(newSuggestions(const TQString&, const TQStringList&, unsigned int)), - this, TQT_SLOT(addSuggestion(const TQString&, const TQStringList&, unsigned int)) ); + connect( mHighlighter, TQ_SIGNAL(newSuggestions(const TQString&, const TQStringList&, unsigned int)), + this, TQ_SLOT(addSuggestion(const TQString&, const TQStringList&, unsigned int)) ); } @@ -449,8 +449,8 @@ bool KMEdit::eventFilter(TQObject*o, TQEvent* e) *mExtEditorProcess << sysLine.left(sysLine.find(" ")).local8Bit(); sysLine.remove(0, sysLine.find(" ") + 1); } - connect(mExtEditorProcess, TQT_SIGNAL(processExited(TDEProcess*)), - TQT_SLOT(slotExternalEditorDone(TDEProcess*))); + connect(mExtEditorProcess, TQ_SIGNAL(processExited(TDEProcess*)), + TQ_SLOT(slotExternalEditorDone(TDEProcess*))); if (!mExtEditorProcess->start()) { KMessageBox::error( topLevelWidget(), @@ -458,8 +458,8 @@ bool KMEdit::eventFilter(TQObject*o, TQEvent* e) killExternalEditor(); } else { mExtEditorTempFileWatcher = new KDirWatch( this, "mExtEditorTempFileWatcher" ); - connect( mExtEditorTempFileWatcher, TQT_SIGNAL(dirty(const TQString&)), - TQT_SLOT(slotExternalEditorTempFileChanged(const TQString&)) ); + connect( mExtEditorTempFileWatcher, TQ_SIGNAL(dirty(const TQString&)), + TQ_SLOT(slotExternalEditorTempFileChanged(const TQString&)) ); mExtEditorTempFileWatcher->addFile( mExtEditorTempFile->name() ); } return true; @@ -542,7 +542,7 @@ bool KMEdit::eventFilter(TQObject*o, TQEvent* e) if ( mHighlighter ) { // Wait a bit until reloading the highlighter, the mSpeller first needs to finish saving // the personal word list. - TQTimer::singleShot( 200, mHighlighter, TQT_SLOT( slotLocalSpellConfigChanged() ) ); + TQTimer::singleShot( 200, mHighlighter, TQ_SLOT( slotLocalSpellConfigChanged() ) ); } } else if( id > -1 ) @@ -651,28 +651,28 @@ void KMEdit::spellcheck() // if (textFormat() == TQt::RichText ) { // kdDebug(5006) << "KMEdit::spellcheck, spellchecking for RichText" << endl; // mKSpellForDialog = new KSpell(this, i18n("Spellcheck - KMail"), this, -// TQT_SLOT(slotSpellcheck2(KSpell*)),0,true,false,KSpell::HTML); +// TQ_SLOT(slotSpellcheck2(KSpell*)),0,true,false,KSpell::HTML); // } // else { // Don't use mSpellConfig here. Reason is that the spell dialog, KSpellDlg, uses its own // spell config, and therefore the two wouldn't be in sync. mKSpellForDialog = new KSpell( this, i18n("Spellcheck - KMail"), this, - TQT_SLOT(slotSpellcheck2(KSpell*))/*, mSpellConfig*/ ); + TQ_SLOT(slotSpellcheck2(KSpell*))/*, mSpellConfig*/ ); // } TQStringList l = KSpellingHighlighter::personalWords(); for ( TQStringList::Iterator it = l.begin(); it != l.end(); ++it ) { mKSpellForDialog->addPersonal( *it ); } - connect (mKSpellForDialog, TQT_SIGNAL( death()), - this, TQT_SLOT (slotSpellDone())); - connect (mKSpellForDialog, TQT_SIGNAL (misspelling (const TQString &, const TQStringList &, unsigned int)), - this, TQT_SLOT (slotMisspelling (const TQString &, const TQStringList &, unsigned int))); - connect (mKSpellForDialog, TQT_SIGNAL (corrected (const TQString &, const TQString &, unsigned int)), - this, TQT_SLOT (slotCorrected (const TQString &, const TQString &, unsigned int))); - connect (mKSpellForDialog, TQT_SIGNAL (done(const TQString &)), - this, TQT_SLOT (slotSpellResult (const TQString&))); + connect (mKSpellForDialog, TQ_SIGNAL( death()), + this, TQ_SLOT (slotSpellDone())); + connect (mKSpellForDialog, TQ_SIGNAL (misspelling (const TQString &, const TQStringList &, unsigned int)), + this, TQ_SLOT (slotMisspelling (const TQString &, const TQStringList &, unsigned int))); + connect (mKSpellForDialog, TQ_SIGNAL (corrected (const TQString &, const TQString &, unsigned int)), + this, TQ_SLOT (slotCorrected (const TQString &, const TQString &, unsigned int))); + connect (mKSpellForDialog, TQ_SIGNAL (done(const TQString &)), + this, TQ_SLOT (slotSpellResult (const TQString&))); } void KMEdit::cut() |