diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-21 14:21:13 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-21 14:21:13 -0600 |
commit | ebbee358abafa1b5166404c6fe5cc44ae2837a57 (patch) | |
tree | 268d36bbf4de9fb4007a1419b132b8b95251b99d /kpdf/core | |
parent | 74c05bbf9d92e43a6cf3799355b5f3598884409e (diff) | |
download | tdegraphics-ebbee358abafa1b5166404c6fe5cc44ae2837a57.tar.gz tdegraphics-ebbee358abafa1b5166404c6fe5cc44ae2837a57.zip |
Rename obsolete tq methods to standard names
Diffstat (limited to 'kpdf/core')
-rw-r--r-- | kpdf/core/generator_pdf/generator_pdf.cpp | 12 | ||||
-rw-r--r-- | kpdf/core/page.cpp | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/kpdf/core/generator_pdf/generator_pdf.cpp b/kpdf/core/generator_pdf/generator_pdf.cpp index 02ce1148..65e3a55a 100644 --- a/kpdf/core/generator_pdf/generator_pdf.cpp +++ b/kpdf/core/generator_pdf/generator_pdf.cpp @@ -457,7 +457,7 @@ bool PDFGenerator::print( KPrinter& printer ) { pstitle = m_document->currentDocument().fileName( false ); } - // this looks non-tqunicode-safe and it is. anything other than ASCII is not specified + // this looks non-unicode-safe and it is. anything other than ASCII is not specified // and some printers actually stop printing when they encounter non-ASCII characters in the // Postscript %%Title tag TQCString pstitle8Bit = pstitle.latin1(); @@ -528,14 +528,14 @@ static GString *TQStringToGString(const TQString &s) { int len = s.length(); char *cstring = (char *)gmallocn(s.length(), sizeof(char)); for (int i = 0; i < len; ++i) - cstring[i] = s.at(i).tqunicode(); + cstring[i] = s.at(i).unicode(); return new GString(cstring, len); } -static TQString tqunicodeToTQString(Unicode* u, int len) { +static TQString unicodeToTQString(Unicode* u, int len) { TQString ret; ret.setLength(len); - TQChar* qch = (TQChar*) ret.tqunicode(); + TQChar* qch = (TQChar*) ret.unicode(); for (;len;--len) *qch++ = (TQChar) *u++; return ret; @@ -568,7 +568,7 @@ static TQString UnicodeParsedString(GString *s1) { u = s1->getChar(i) & 0xff; ++i; } - result += tqunicodeToTQString( &u, 1 ); + result += unicodeToTQString( &u, 1 ); } return result; } @@ -868,7 +868,7 @@ void PDFGenerator::addSynopsisChildren( TQDomNode * parent, GList * items ) TQString name; Unicode * uniChar = outlineItem->getTitle(); int titleLength = outlineItem->getTitleLength(); - name = tqunicodeToTQString(uniChar, titleLength); + name = unicodeToTQString(uniChar, titleLength); if ( name.isEmpty() ) continue; TQDomElement item = docSyn.createElement( name ); diff --git a/kpdf/core/page.cpp b/kpdf/core/page.cpp index 0014d26a..cadaacf3 100644 --- a/kpdf/core/page.cpp +++ b/kpdf/core/page.cpp @@ -131,11 +131,11 @@ NormalizedRect * KPDFPage::findText( const TQString & text, bool strictCase, Nor return 0; // create a xpf's Unicode (unsigned int) array for the given text - const TQChar * str = text.tqunicode(); + const TQChar * str = text.unicode(); int len = text.length(); TQMemArray<Unicode> u(len); for (int i = 0; i < len; ++i) - u[i] = str[i].tqunicode(); + u[i] = str[i].unicode(); // find out the direction of search enum SearchDir { FromTop, NextMatch, PrevMatch } dir = lastRect ? NextMatch : FromTop; |