summaryrefslogtreecommitdiffstats
path: root/src/translators/referencerimporter.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-02 06:40:27 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-02 06:40:27 +0000
commit2595a15ebeb6fc46b7cb241d01ec0c2460ec2111 (patch)
tree18a8f0f4ac5a86dacfa74c3537551ec39bc85e75 /src/translators/referencerimporter.cpp
parent1d90725a4001fab9d3922b2cbcceeee5e2d1686f (diff)
downloadtellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.tar.gz
tellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.zip
TQt4 port tellico
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/tellico@1239054 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/translators/referencerimporter.cpp')
-rw-r--r--src/translators/referencerimporter.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/translators/referencerimporter.cpp b/src/translators/referencerimporter.cpp
index 32ba251..332bf8c 100644
--- a/src/translators/referencerimporter.cpp
+++ b/src/translators/referencerimporter.cpp
@@ -21,7 +21,7 @@
using Tellico::Import::ReferencerImporter;
ReferencerImporter::ReferencerImporter(const KURL& url_) : XSLTImporter(url_) {
- QString xsltFile = locate("appdata", QString::fromLatin1("referencer2tellico.xsl"));
+ TQString xsltFile = locate("appdata", TQString::tqfromLatin1("referencer2tellico.xsl"));
if(!xsltFile.isEmpty()) {
KURL u;
u.setPath(xsltFile);
@@ -41,25 +41,25 @@ Tellico::Data::CollPtr ReferencerImporter::collection() {
return 0;
}
- Data::FieldPtr field = coll->fieldByName(QString::fromLatin1("cover"));
+ Data::FieldPtr field = coll->fieldByName(TQString::tqfromLatin1("cover"));
if(!field && !coll->imageFields().isEmpty()) {
field = coll->imageFields().front();
} else if(!field) {
- field = new Data::Field(QString::fromLatin1("cover"), i18n("Front Cover"), Data::Field::Image);
+ field = new Data::Field(TQString::tqfromLatin1("cover"), i18n("Front Cover"), Data::Field::Image);
coll->addField(field);
}
Data::EntryVec entries = coll->entries();
for(Data::EntryVecIt entry = entries.begin(); entry != entries.end(); ++entry) {
- QString url = entry->field(QString::fromLatin1("url"));
+ TQString url = entry->field(TQString::tqfromLatin1("url"));
if(url.isEmpty()) {
continue;
}
- QPixmap pix = NetAccess::filePreview(url);
+ TQPixmap pix = NetAccess::filePreview(url);
if(pix.isNull()) {
continue;
}
- QString id = ImageFactory::addImage(pix, QString::fromLatin1("PNG"));
+ TQString id = ImageFactory::addImage(pix, TQString::tqfromLatin1("PNG"));
if(id.isEmpty()) {
continue;
}