summaryrefslogtreecommitdiffstats
path: root/src/translators/bibtexmlexporter.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-18 18:15:24 -0600
committerTimothy Pearson <[email protected]>2011-12-18 18:15:24 -0600
commit8d9b90ca794ffabf151719c2edebe9278a2d3f36 (patch)
tree55f446de8694c45be6bf0f1178920c2b92b0c9f5 /src/translators/bibtexmlexporter.cpp
parent2781e27b871150395a5a82e221684108641002b2 (diff)
downloadtellico-8d9b90ca794ffabf151719c2edebe9278a2d3f36.tar.gz
tellico-8d9b90ca794ffabf151719c2edebe9278a2d3f36.zip
Rename old tq methods that no longer need a unique name
Diffstat (limited to 'src/translators/bibtexmlexporter.cpp')
-rw-r--r--src/translators/bibtexmlexporter.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/translators/bibtexmlexporter.cpp b/src/translators/bibtexmlexporter.cpp
index 85934b2..a9b9592 100644
--- a/src/translators/bibtexmlexporter.cpp
+++ b/src/translators/bibtexmlexporter.cpp
@@ -53,7 +53,7 @@ bool BibtexmlExporter::exec() {
// the key specifies the cite-key
TQString keyField;
- const TQString bibtex = TQString::tqfromLatin1("bibtex");
+ const TQString bibtex = TQString::fromLatin1("bibtex");
// keep a list of all the 'ordinary' fields to iterate through later
Data::FieldVec fields;
Data::FieldVec vec = coll->fields();
@@ -69,28 +69,28 @@ bool BibtexmlExporter::exec() {
}
TQDomImplementation impl;
- TQDomDocumentType doctype = impl.createDocumentType(TQString::tqfromLatin1("file"),
+ TQDomDocumentType doctype = impl.createDocumentType(TQString::fromLatin1("file"),
TQString(),
XML::dtdBibtexml);
//default namespace
const TQString& ns = XML::nsBibtexml;
- TQDomDocument dom = impl.createDocument(ns, TQString::tqfromLatin1("file"), doctype);
+ TQDomDocument dom = impl.createDocument(ns, TQString::fromLatin1("file"), doctype);
// root element
TQDomElement root = dom.documentElement();
- TQString encodeStr = TQString::tqfromLatin1("version=\"1.0\" encoding=\"");
+ TQString encodeStr = TQString::fromLatin1("version=\"1.0\" encoding=\"");
if(options() & Export::ExportUTF8) {
- encodeStr += TQString::tqfromLatin1("UTF-8");
+ encodeStr += TQString::fromLatin1("UTF-8");
} else {
- encodeStr += TQString::tqfromLatin1(TQTextCodec::codecForLocale()->mimeName());
+ encodeStr += TQString::fromLatin1(TQTextCodec::codecForLocale()->mimeName());
}
encodeStr += '"';
// createDocument creates a root node, insert the processing instruction before it
- dom.insertBefore(dom.createProcessingInstruction(TQString::tqfromLatin1("xml"), encodeStr), root);
- TQString comment = TQString::tqfromLatin1("Generated by Tellico ") + TQString::tqfromLatin1(VERSION);
+ dom.insertBefore(dom.createProcessingInstruction(TQString::fromLatin1("xml"), encodeStr), root);
+ TQString comment = TQString::fromLatin1("Generated by Tellico ") + TQString::fromLatin1(VERSION);
dom.insertBefore(dom.createComment(comment), root);
Data::ConstFieldPtr field;
@@ -115,8 +115,8 @@ bool BibtexmlExporter::exec() {
key = newKey;
usedKeys.add(key);
- btElem = dom.createElement(TQString::tqfromLatin1("entry"));
- btElem.setAttribute(TQString::tqfromLatin1("id"), key);
+ btElem = dom.createElement(TQString::fromLatin1("entry"));
+ btElem.setAttribute(TQString::fromLatin1("id"), key);
root.appendChild(btElem);
type = entryIt->field(typeField);
@@ -149,12 +149,12 @@ bool BibtexmlExporter::exec() {
elemName == Latin1Literal("editor") ||
elemName == Latin1Literal("keywords")) {
if(elemName == Latin1Literal("author")) {
- parElemName = TQString::tqfromLatin1("authorlist");
+ parElemName = TQString::fromLatin1("authorlist");
} else if(elemName == Latin1Literal("editor")) {
- parElemName = TQString::tqfromLatin1("editorlist");
+ parElemName = TQString::fromLatin1("editorlist");
} else { // keywords
- parElemName = TQString::tqfromLatin1("keywords");
- elemName = TQString::tqfromLatin1("keyword");
+ parElemName = TQString::fromLatin1("keywords");
+ elemName = TQString::fromLatin1("keyword");
}
parentElem = dom.createElement(parElemName);