diff options
author | Timothy Pearson <[email protected]> | 2011-12-18 18:15:24 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-18 18:15:24 -0600 |
commit | 8d9b90ca794ffabf151719c2edebe9278a2d3f36 (patch) | |
tree | 55f446de8694c45be6bf0f1178920c2b92b0c9f5 /src/translators/bibtexmlimporter.cpp | |
parent | 2781e27b871150395a5a82e221684108641002b2 (diff) | |
download | tellico-8d9b90ca794ffabf151719c2edebe9278a2d3f36.tar.gz tellico-8d9b90ca794ffabf151719c2edebe9278a2d3f36.zip |
Rename old tq methods that no longer need a unique name
Diffstat (limited to 'src/translators/bibtexmlimporter.cpp')
-rw-r--r-- | src/translators/bibtexmlimporter.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/translators/bibtexmlimporter.cpp b/src/translators/bibtexmlimporter.cpp index 9131320..6cfe7c8 100644 --- a/src/translators/bibtexmlimporter.cpp +++ b/src/translators/bibtexmlimporter.cpp @@ -47,7 +47,7 @@ void BibtexmlImporter::loadDomDocument() { const TQString& ns = XML::nsBibtexml; m_coll = new Data::BibtexCollection(true); - TQDomNodeList entryelems = root.elementsByTagNameNS(ns, TQString::tqfromLatin1("entry")); + TQDomNodeList entryelems = root.elementsByTagNameNS(ns, TQString::fromLatin1("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::tqfromLatin1("entry-type"), type); - TQString id = node.toElement().attribute(TQString::tqfromLatin1("id")); - entry->setField(TQString::tqfromLatin1("bibtex-key"), id); + entry->setField(TQString::fromLatin1("entry-type"), type); + TQString id = node.toElement().attribute(TQString::fromLatin1("id")); + entry->setField(TQString::fromLatin1("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::tqfromLatin1("keywords"); + name = TQString::fromLatin1("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::tqfromLatin1("initials") << TQString::tqfromLatin1("first") - << TQString::tqfromLatin1("middle") << TQString::tqfromLatin1("prelast") - << TQString::tqfromLatin1("last") << TQString::tqfromLatin1("lineage"); + names << TQString::fromLatin1("initials") << TQString::fromLatin1("first") + << TQString::fromLatin1("middle") << TQString::fromLatin1("prelast") + << TQString::fromLatin1("last") << TQString::fromLatin1("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::tqfromLatin1(" "); + value += TQString::fromLatin1(" "); } } } @@ -139,11 +139,11 @@ void BibtexmlImporter::readEntry(const TQDomNode& entryNode_) { value += n3.toText().data(); } if(n3 != n2.lastChild()) { - value += TQString::tqfromLatin1(" "); + value += TQString::fromLatin1(" "); } } if(n2 != n.lastChild()) { - value += TQString::tqfromLatin1("; "); + value += TQString::fromLatin1("; "); } } } |