summaryrefslogtreecommitdiffstats
path: root/kpdf/core/generator_pdf
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-21 14:21:13 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-21 14:21:13 -0600
commitebbee358abafa1b5166404c6fe5cc44ae2837a57 (patch)
tree268d36bbf4de9fb4007a1419b132b8b95251b99d /kpdf/core/generator_pdf
parent74c05bbf9d92e43a6cf3799355b5f3598884409e (diff)
downloadtdegraphics-ebbee358abafa1b5166404c6fe5cc44ae2837a57.tar.gz
tdegraphics-ebbee358abafa1b5166404c6fe5cc44ae2837a57.zip
Rename obsolete tq methods to standard names
Diffstat (limited to 'kpdf/core/generator_pdf')
-rw-r--r--kpdf/core/generator_pdf/generator_pdf.cpp12
1 files changed, 6 insertions, 6 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 );