summaryrefslogtreecommitdiffstats
path: root/src/translators/filelistingimporter.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-15 15:34:15 -0600
committerTimothy Pearson <[email protected]>2011-12-15 15:34:15 -0600
commit031454e56009d576589c28757f6c6fcf4884095e (patch)
treead4c9959d05a814c9090e8fe63ba27057903271b /src/translators/filelistingimporter.cpp
parent54011e0e1af8cd96162160ecf5d361a59a2c733e (diff)
downloadtellico-031454e56009d576589c28757f6c6fcf4884095e.tar.gz
tellico-031454e56009d576589c28757f6c6fcf4884095e.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'src/translators/filelistingimporter.cpp')
-rw-r--r--src/translators/filelistingimporter.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/translators/filelistingimporter.cpp b/src/translators/filelistingimporter.cpp
index 8f3afe1..f59cc8b 100644
--- a/src/translators/filelistingimporter.cpp
+++ b/src/translators/filelistingimporter.cpp
@@ -30,7 +30,7 @@
#include <tqcheckbox.h>
#include <tqvgroupbox.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqwhatsthis.h>
#include <tqfile.h>
#include <tqfileinfo.h>
@@ -80,20 +80,20 @@ Tellico::Data::CollPtr FileListingImporter::collection() {
const bool usePreview = m_filePreview->isChecked();
- const TQString title = TQString::tqfromLatin1("title");
- const TQString url = TQString::tqfromLatin1("url");
- const TQString desc = TQString::tqfromLatin1("description");
- const TQString vol = TQString::tqfromLatin1("volume");
- const TQString folder = TQString::tqfromLatin1("folder");
- const TQString type = TQString::tqfromLatin1("mimetype");
- const TQString size = TQString::tqfromLatin1("size");
- const TQString perm = TQString::tqfromLatin1("permissions");
- const TQString owner = TQString::tqfromLatin1("owner");
- const TQString group = TQString::tqfromLatin1("group");
- const TQString created = TQString::tqfromLatin1("created");
- const TQString modified = TQString::tqfromLatin1("modified");
- const TQString metainfo = TQString::tqfromLatin1("metainfo");
- const TQString icon = TQString::tqfromLatin1("icon");
+ const TQString title = TQString::fromLatin1("title");
+ const TQString url = TQString::fromLatin1("url");
+ const TQString desc = TQString::fromLatin1("description");
+ const TQString vol = TQString::fromLatin1("volume");
+ const TQString folder = TQString::fromLatin1("folder");
+ const TQString type = TQString::fromLatin1("mimetype");
+ const TQString size = TQString::fromLatin1("size");
+ const TQString perm = TQString::fromLatin1("permissions");
+ const TQString owner = TQString::fromLatin1("owner");
+ const TQString group = TQString::fromLatin1("group");
+ const TQString created = TQString::fromLatin1("created");
+ const TQString modified = TQString::fromLatin1("modified");
+ const TQString metainfo = TQString::fromLatin1("metainfo");
+ const TQString icon = TQString::fromLatin1("icon");
m_coll = new Data::FileCatalog(true);
TQString tmp;
@@ -144,7 +144,7 @@ Tellico::Data::CollPtr FileListingImporter::collection() {
}
}
}
- entry->setField(metainfo, strings.join(TQString::tqfromLatin1("; ")));
+ entry->setField(metainfo, strings.join(TQString::fromLatin1("; ")));
}
if(!m_cancelled && usePreview) {
@@ -158,7 +158,7 @@ Tellico::Data::CollPtr FileListingImporter::collection() {
if(!m_pixmap.isNull()) {
// is png best option?
- TQString id = ImageFactory::addImage(m_pixmap, TQString::tqfromLatin1("PNG"));
+ TQString id = ImageFactory::addImage(m_pixmap, TQString::fromLatin1("PNG"));
if(!id.isEmpty()) {
entry->setField(icon, id);
}
@@ -248,7 +248,7 @@ TQString FileListingImporter::volumeName() const {
char buf[VOLUME_NAME_SIZE];
int ret = fread(buf, 1, VOLUME_NAME_SIZE, dev);
if(ret == VOLUME_NAME_SIZE) {
- volume = TQString::tqfromLatin1(buf, VOLUME_NAME_SIZE).stripWhiteSpace();
+ volume = TQString::fromLatin1(buf, VOLUME_NAME_SIZE).stripWhiteSpace();
}
} else {
myDebug() << "FileListingImporter::volumeName() - can't seek " << devName << endl;