summaryrefslogtreecommitdiffstats
path: root/src/translators/bibtexmlimporter.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-16 09:57:51 -0600
committerTimothy Pearson <[email protected]>2011-12-16 09:57:51 -0600
commit2781e27b871150395a5a82e221684108641002b2 (patch)
tree57f4d7c01a48faef1a840fbe0de8f4ec1e5f606f /src/translators/bibtexmlimporter.cpp
parent031454e56009d576589c28757f6c6fcf4884095e (diff)
downloadtellico-2781e27b871150395a5a82e221684108641002b2.tar.gz
tellico-2781e27b871150395a5a82e221684108641002b2.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 031454e56009d576589c28757f6c6fcf4884095e.
Diffstat (limited to 'src/translators/bibtexmlimporter.cpp')
-rw-r--r--src/translators/bibtexmlimporter.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/translators/bibtexmlimporter.cpp b/src/translators/bibtexmlimporter.cpp
index bf33c02..9131320 100644
--- a/src/translators/bibtexmlimporter.cpp
+++ b/src/translators/bibtexmlimporter.cpp
@@ -40,14 +40,14 @@ Tellico::Data::CollPtr BibtexmlImporter::collection() {
void BibtexmlImporter::loadDomDocument() {
TQDomElement root = domDocument().documentElement();
if(root.isNull() || root.localName() != Latin1Literal("file")) {
- setStatusMessage(i18n(errorLoad).arg(url().fileName()));
+ setStatusMessage(i18n(errorLoad).tqarg(url().fileName()));
return;
}
const TQString& ns = XML::nsBibtexml;
m_coll = new Data::BibtexCollection(true);
- TQDomNodeList entryelems = root.elementsByTagNameNS(ns, TQString::fromLatin1("entry"));
+ TQDomNodeList entryelems = root.elementsByTagNameNS(ns, TQString::tqfromLatin1("entry"));
// kdDebug() << "BibtexmlImporter::loadDomDocument - found " << entryelems.count() << " entries" << endl;
const uint count = entryelems.count();
@@ -83,9 +83,9 @@ void BibtexmlImporter::readEntry(const TQDomNode& entryNode_) {
<publisher>...</publisher> */
TQString type = node.firstChild().toElement().tagName();
- entry->setField(TQString::fromLatin1("entry-type"), type);
- TQString id = node.toElement().attribute(TQString::fromLatin1("id"));
- entry->setField(TQString::fromLatin1("bibtex-key"), id);
+ entry->setField(TQString::tqfromLatin1("entry-type"), type);
+ TQString id = node.toElement().attribute(TQString::tqfromLatin1("id"));
+ entry->setField(TQString::tqfromLatin1("bibtex-key"), id);
TQString name, value;
// field values are first child of first child of entry node
@@ -112,23 +112,23 @@ void BibtexmlImporter::readEntry(const TQDomNode& entryNode_) {
} else {
name = n.firstChild().toElement().tagName();
if(name == Latin1Literal("keyword")) {
- name = TQString::fromLatin1("keywords");
+ name = TQString::tqfromLatin1("keywords");
}
value.truncate(0);
for(TQDomNode n2 = n.firstChild(); !n2.isNull(); n2 = n2.nextSibling()) {
// n2 could have first, middle, lastname elements...
if(name == Latin1Literal("person")) {
TQStringList names;
- names << TQString::fromLatin1("initials") << TQString::fromLatin1("first")
- << TQString::fromLatin1("middle") << TQString::fromLatin1("prelast")
- << TQString::fromLatin1("last") << TQString::fromLatin1("lineage");
+ names << TQString::tqfromLatin1("initials") << TQString::tqfromLatin1("first")
+ << TQString::tqfromLatin1("middle") << TQString::tqfromLatin1("prelast")
+ << TQString::tqfromLatin1("last") << TQString::tqfromLatin1("lineage");
for(TQStringList::ConstIterator it = names.begin(); it != names.end(); ++it) {
TQDomNodeList list = n2.toElement().elementsByTagName(*it);
if(list.count() > 1) {
value += list.item(0).toElement().text();
}
if(*it != names.last()) {
- value += TQString::fromLatin1(" ");
+ value += TQString::tqfromLatin1(" ");
}
}
}
@@ -139,11 +139,11 @@ void BibtexmlImporter::readEntry(const TQDomNode& entryNode_) {
value += n3.toText().data();
}
if(n3 != n2.lastChild()) {
- value += TQString::fromLatin1(" ");
+ value += TQString::tqfromLatin1(" ");
}
}
if(n2 != n.lastChild()) {
- value += TQString::fromLatin1("; ");
+ value += TQString::tqfromLatin1("; ");
}
}
}