summaryrefslogtreecommitdiffstats
path: root/src/collectionfactory.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:57:51 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:57:51 -0600
commit2781e27b871150395a5a82e221684108641002b2 (patch)
tree57f4d7c01a48faef1a840fbe0de8f4ec1e5f606f /src/collectionfactory.cpp
parent031454e56009d576589c28757f6c6fcf4884095e (diff)
downloadtellico-2781e27b871150395a5a82e221684108641002b2.tar.gz
tellico-2781e27b871150395a5a82e221684108641002b2.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 031454e56009d576589c28757f6c6fcf4884095e.
Diffstat (limited to 'src/collectionfactory.cpp')
-rw-r--r--src/collectionfactory.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/collectionfactory.cpp b/src/collectionfactory.cpp
index e6f4178..974d254 100644
--- a/src/collectionfactory.cpp
+++ b/src/collectionfactory.cpp
@@ -79,7 +79,7 @@ Tellico::Data::CollPtr CollectionFactory::collection(int type_, bool addFields_)
}
Data::CollPtr c = new Data::Collection(i18n("My Collection"));
- Data::FieldPtr f = new Data::Field(TQString::fromLatin1("title"), i18n("Title"));
+ Data::FieldPtr f = new Data::Field(TQString::tqfromLatin1("title"), i18n("Title"));
f->setCategory(i18n("General"));
f->setFlags(Data::Field::NoDelete);
f->setFormatFlag(Data::Field::FormatTitle);
@@ -140,60 +140,60 @@ Tellico::CollectionNameMap CollectionFactory::nameMap() {
TQString CollectionFactory::typeName(int type_) {
switch(type_) {
case Data::Collection::Book:
- return TQString::fromLatin1("book");
+ return TQString::tqfromLatin1("book");
break;
case Data::Collection::Video:
- return TQString::fromLatin1("video");
+ return TQString::tqfromLatin1("video");
break;
case Data::Collection::Album:
- return TQString::fromLatin1("album");
+ return TQString::tqfromLatin1("album");
break;
case Data::Collection::Bibtex:
- return TQString::fromLatin1("bibtex");
+ return TQString::tqfromLatin1("bibtex");
break;
case Data::Collection::ComicBook:
- return TQString::fromLatin1("comic");
+ return TQString::tqfromLatin1("comic");
break;
case Data::Collection::Wine:
- return TQString::fromLatin1("wine");
+ return TQString::tqfromLatin1("wine");
break;
case Data::Collection::Coin:
- return TQString::fromLatin1("coin");
+ return TQString::tqfromLatin1("coin");
break;
case Data::Collection::Stamp:
- return TQString::fromLatin1("stamp");
+ return TQString::tqfromLatin1("stamp");
break;
case Data::Collection::Card:
- return TQString::fromLatin1("card");
+ return TQString::tqfromLatin1("card");
break;
case Data::Collection::Game:
- return TQString::fromLatin1("game");
+ return TQString::tqfromLatin1("game");
break;
case Data::Collection::File:
- return TQString::fromLatin1("file");
+ return TQString::tqfromLatin1("file");
break;
case Data::Collection::BoardGame:
- return TQString::fromLatin1("boardgame");
+ return TQString::tqfromLatin1("boardgame");
break;
case Data::Collection::Base:
- return TQString::fromLatin1("entry");
+ return TQString::tqfromLatin1("entry");
break;
default:
kdWarning() << "CollectionFactory::collection() - collection type not implemented: " << type_ << endl;
- return TQString::fromLatin1("entry");
+ return TQString::tqfromLatin1("entry");
break;
}
}