summaryrefslogtreecommitdiffstats
path: root/tdeui/kspell.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:59:13 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:59:13 -0600
commit56160bf4dfe503631ef6373367b281f081bab2b4 (patch)
tree7fcea2ffd9c3420af999c3dcad0ed032eef93956 /tdeui/kspell.cpp
parent13281e2856a2ef43bbab78c5528470309c23aa77 (diff)
downloadtdelibs-56160bf4dfe503631ef6373367b281f081bab2b4.tar.gz
tdelibs-56160bf4dfe503631ef6373367b281f081bab2b4.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 13281e2856a2ef43bbab78c5528470309c23aa77.
Diffstat (limited to 'tdeui/kspell.cpp')
-rw-r--r--tdeui/kspell.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tdeui/kspell.cpp b/tdeui/kspell.cpp
index 0eb2b5b93..9ca882962 100644
--- a/tdeui/kspell.cpp
+++ b/tdeui/kspell.cpp
@@ -34,7 +34,7 @@
#endif
#include <tqregexp.h>
-#include <textcodec.h>
+#include <tqtextcodec.h>
#include <tqtimer.h>
#include <kapplication.h>
@@ -995,7 +995,7 @@ bool KSpell::check( const TQString &_buffer, bool _usedialog )
// origbuffer since I got errors otherwise
if ( !origbuffer.endsWith("\n\n" ) )
{
- if (origbuffer.at(origbuffer.length()-1)!='\n')
+ if (origbuffer.tqat(origbuffer.length()-1)!='\n')
{
origbuffer+='\n';
origbuffer+='\n'; //shouldn't these be removed at some point?
@@ -1220,10 +1220,10 @@ void KSpell::dialog( const TQString & word, TQStringList & sugg, const char *_sl
TQString marker( "_MARKER_" );
tmpBuf.replace( lastpos, word.length(), marker );
TQString context = tmpBuf.mid(QMAX(lastpos-18,0), 2*18+marker.length());
- context.replace( '\n',TQString::fromLatin1(" "));
- context.replace( '<', TQString::fromLatin1("&lt;") );
- context.replace( '>', TQString::fromLatin1("&gt;") );
- context.replace( marker, TQString::fromLatin1("<b>%1</b>").arg( word ) );
+ context.replace( '\n',TQString::tqfromLatin1(" "));
+ context.replace( '<', TQString::tqfromLatin1("&lt;") );
+ context.replace( '>', TQString::tqfromLatin1("&gt;") );
+ context.replace( marker, TQString::tqfromLatin1("<b>%1</b>").arg( word ) );
context = "<qt>" + context + "</qt>";
ksdlg->init( word, &sugg, context );