diff options
Diffstat (limited to 'digikam/libs/dmetadata/dmetadata.cpp')
-rw-r--r-- | digikam/libs/dmetadata/dmetadata.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/digikam/libs/dmetadata/dmetadata.cpp b/digikam/libs/dmetadata/dmetadata.cpp index 2398157..d342b37 100644 --- a/digikam/libs/dmetadata/dmetadata.cpp +++ b/digikam/libs/dmetadata/dmetadata.cpp @@ -453,7 +453,7 @@ bool DMetadata::getXMLImageProperties(TQString& comments, TQDateTime& date, } TQDomElement rootElem = xmlDoc.documentElement(); - if (rootElem.tagName() != TQString::tqfromLatin1("digikamproperties")) + if (rootElem.tagName() != TQString::fromLatin1("digikamproperties")) return false; for (TQDomNode node = rootElem.firstChild(); @@ -461,34 +461,34 @@ bool DMetadata::getXMLImageProperties(TQString& comments, TQDateTime& date, { TQDomElement e = node.toElement(); TQString name = e.tagName(); - TQString val = e.attribute(TQString::tqfromLatin1("value")); + TQString val = e.attribute(TQString::fromLatin1("value")); - if (name == TQString::tqfromLatin1("comments")) + if (name == TQString::fromLatin1("comments")) { comments = val; } - else if (name == TQString::tqfromLatin1("date")) + else if (name == TQString::fromLatin1("date")) { if (val.isEmpty()) continue; date = TQDateTime::fromString(val, Qt::ISODate); } - else if (name == TQString::tqfromLatin1("rating")) + else if (name == TQString::fromLatin1("rating")) { if (val.isEmpty()) continue; bool ok=false; rating = val.toInt(&ok); if (!ok) rating = 0; } - else if (name == TQString::tqfromLatin1("tagslist")) + else if (name == TQString::fromLatin1("tagslist")) { for (TQDomNode node2 = e.firstChild(); !node2.isNull(); node2 = node2.nextSibling()) { TQDomElement e2 = node2.toElement(); TQString name2 = e2.tagName(); - TQString val2 = e2.attribute(TQString::tqfromLatin1("path")); + TQString val2 = e2.attribute(TQString::fromLatin1("path")); - if (name2 == TQString::tqfromLatin1("tag")) + if (name2 == TQString::fromLatin1("tag")) { if (val2.isEmpty()) continue; tagsPath.append(val2); @@ -505,32 +505,32 @@ bool DMetadata::setXMLImageProperties(const TQString& comments, const TQDateTime { TQDomDocument xmlDoc; - xmlDoc.appendChild(xmlDoc.createProcessingInstruction( TQString::tqfromLatin1("xml"), - TQString::tqfromLatin1("version=\"1.0\" encoding=\"UTF-8\"") ) ); + xmlDoc.appendChild(xmlDoc.createProcessingInstruction( TQString::fromLatin1("xml"), + TQString::fromLatin1("version=\"1.0\" encoding=\"UTF-8\"") ) ); - TQDomElement propertiesElem = xmlDoc.createElement(TQString::tqfromLatin1("digikamproperties")); + TQDomElement propertiesElem = xmlDoc.createElement(TQString::fromLatin1("digikamproperties")); xmlDoc.appendChild( propertiesElem ); - TQDomElement c = xmlDoc.createElement(TQString::tqfromLatin1("comments")); - c.setAttribute(TQString::tqfromLatin1("value"), comments); + TQDomElement c = xmlDoc.createElement(TQString::fromLatin1("comments")); + c.setAttribute(TQString::fromLatin1("value"), comments); propertiesElem.appendChild(c); - TQDomElement d = xmlDoc.createElement(TQString::tqfromLatin1("date")); - d.setAttribute(TQString::tqfromLatin1("value"), date.toString(Qt::ISODate)); + TQDomElement d = xmlDoc.createElement(TQString::fromLatin1("date")); + d.setAttribute(TQString::fromLatin1("value"), date.toString(Qt::ISODate)); propertiesElem.appendChild(d); - TQDomElement r = xmlDoc.createElement(TQString::tqfromLatin1("rating")); - r.setAttribute(TQString::tqfromLatin1("value"), rating); + TQDomElement r = xmlDoc.createElement(TQString::fromLatin1("rating")); + r.setAttribute(TQString::fromLatin1("value"), rating); propertiesElem.appendChild(r); - TQDomElement tagsElem = xmlDoc.createElement(TQString::tqfromLatin1("tagslist")); + TQDomElement tagsElem = xmlDoc.createElement(TQString::fromLatin1("tagslist")); propertiesElem.appendChild(tagsElem); TQStringList path = tagsPath; for ( TQStringList::Iterator it = path.begin(); it != path.end(); ++it ) { - TQDomElement e = xmlDoc.createElement(TQString::tqfromLatin1("tag")); - e.setAttribute(TQString::tqfromLatin1("path"), *it); + TQDomElement e = xmlDoc.createElement(TQString::fromLatin1("tag")); + e.setAttribute(TQString::fromLatin1("path"), *it); tagsElem.appendChild(e); } |