diff options
Diffstat (limited to 'src/translators/bibtexmlimporter.cpp')
-rw-r--r-- | src/translators/bibtexmlimporter.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/translators/bibtexmlimporter.cpp b/src/translators/bibtexmlimporter.cpp index 9131320..bf33c02 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).tqarg(url().fileName())); + setStatusMessage(i18n(errorLoad).arg(url().fileName())); return; } 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("; "); } } } |