From ffe8a83e053396df448e9413828527613ca3bd46 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:46:43 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kate/part/katespell.cpp | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'kate/part/katespell.cpp') diff --git a/kate/part/katespell.cpp b/kate/part/katespell.cpp index 1afd8d53f..6ce2b2a72 100644 --- a/kate/part/katespell.cpp +++ b/kate/part/katespell.cpp @@ -34,7 +34,7 @@ #include KateSpell::KateSpell( KateView* view ) - : QObject( view ) + : TQObject( view ) , m_view (view) , m_kspell (0) { @@ -53,11 +53,11 @@ KateSpell::~KateSpell() void KateSpell::createActions( KActionCollection* ac ) { - KStdAction::spelling( this, SLOT(spellcheck()), ac ); - KAction *a = new KAction( i18n("Spelling (from cursor)..."), "spellcheck", 0, this, SLOT(spellcheckFromCursor()), ac, "tools_spelling_from_cursor" ); + KStdAction::spelling( this, TQT_SLOT(spellcheck()), ac ); + KAction *a = new KAction( i18n("Spelling (from cursor)..."), "spellcheck", 0, this, TQT_SLOT(spellcheckFromCursor()), ac, "tools_spelling_from_cursor" ); a->setWhatsThis(i18n("Check the document's spelling from the cursor and forward")); - m_spellcheckSelection = new KAction( i18n("Spellcheck Selection..."), "spellcheck", 0, this, SLOT(spellcheckSelection()), ac, "tools_spelling_selection" ); + m_spellcheckSelection = new KAction( i18n("Spellcheck Selection..."), "spellcheck", 0, this, TQT_SLOT(spellcheckSelection()), ac, "tools_spelling_selection" ); m_spellcheckSelection->setWhatsThis(i18n("Check spelling of the selected text")); } @@ -98,7 +98,7 @@ void KateSpell::spellcheck( const KateTextCursor &from, const KateTextCursor &to m_spellPosCursor = from; m_spellLastPos = 0; - QString mt = m_view->doc()->mimeType()/*->name()*/; + TQString mt = m_view->doc()->mimeType()/*->name()*/; KSpell::SpellerType type = KSpell::Text; if ( mt == "text/x-tex" || mt == "text/x-latex" ) @@ -107,7 +107,7 @@ void KateSpell::spellcheck( const KateTextCursor &from, const KateTextCursor &to type = KSpell::HTML; KSpellConfig *ksc = new KSpellConfig; - QStringList ksEncodings; + TQStringList ksEncodings; ksEncodings << "US-ASCII" << "ISO 8859-1" << "ISO 8859-2" << "ISO 8859-3" << "ISO 8859-4" << "ISO 8859-5" << "ISO 8859-7" << "ISO 8859-8" << "ISO 8859-9" << "ISO 8859-13" << "ISO 8859-15" << "UTF-8" @@ -123,17 +123,17 @@ void KateSpell::spellcheck( const KateTextCursor &from, const KateTextCursor &to kdDebug(13020)<<"KateSpell::spellCheck(): using encoding: "<setSelection( line, col, line, col + origword.length() ); } -void KateSpell::corrected( const QString& originalword, const QString& newword, unsigned int pos ) +void KateSpell::corrected( const TQString& originalword, const TQString& newword, unsigned int pos ) { uint line, col; @@ -190,7 +190,7 @@ void KateSpell::corrected( const QString& originalword, const QString& newword, m_view->doc()->insertText( line, col, newword ); } -void KateSpell::spellResult( const QString& ) +void KateSpell::spellResult( const TQString& ) { m_view->clearSelection(); m_kspell->cleanUp(); -- cgit v1.2.1