summaryrefslogtreecommitdiffstats
path: root/src/collections/stampcollection.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-18 18:15:24 -0600
committerTimothy Pearson <[email protected]>2011-12-18 18:15:24 -0600
commit8d9b90ca794ffabf151719c2edebe9278a2d3f36 (patch)
tree55f446de8694c45be6bf0f1178920c2b92b0c9f5 /src/collections/stampcollection.cpp
parent2781e27b871150395a5a82e221684108641002b2 (diff)
downloadtellico-8d9b90ca794ffabf151719c2edebe9278a2d3f36.tar.gz
tellico-8d9b90ca794ffabf151719c2edebe9278a2d3f36.zip
Rename old tq methods that no longer need a unique name
Diffstat (limited to 'src/collections/stampcollection.cpp')
-rw-r--r--src/collections/stampcollection.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/collections/stampcollection.cpp b/src/collections/stampcollection.cpp
index f5b8e0c..c41f806 100644
--- a/src/collections/stampcollection.cpp
+++ b/src/collections/stampcollection.cpp
@@ -28,103 +28,103 @@ StampCollection::StampCollection(bool addFields_, const TQString& title_ /*=null
if(addFields_) {
addFields(defaultFields());
}
- setDefaultGroupField(TQString::tqfromLatin1("denomination"));
+ setDefaultGroupField(TQString::fromLatin1("denomination"));
}
Tellico::Data::FieldVec StampCollection::defaultFields() {
FieldVec list;
FieldPtr field;
- field = new Field(TQString::tqfromLatin1("title"), i18n("Title"), Field::Dependent);
+ field = new Field(TQString::fromLatin1("title"), i18n("Title"), Field::Dependent);
field->setCategory(i18n(stamp_general));
- field->setDescription(TQString::tqfromLatin1("%{year} %{description} %{denomination}"));
+ field->setDescription(TQString::fromLatin1("%{year} %{description} %{denomination}"));
field->setFlags(Field::NoDelete);
list.append(field);
- field = new Field(TQString::tqfromLatin1("description"), i18n("Description"));
+ field = new Field(TQString::fromLatin1("description"), i18n("Description"));
field->setCategory(i18n(stamp_general));
field->setFlags(Field::AllowCompletion | Field::AllowGrouped);
field->setFormatFlag(Field::FormatTitle);
list.append(field);
- field = new Field(TQString::tqfromLatin1("denomination"), i18n("Denomination"));
+ field = new Field(TQString::fromLatin1("denomination"), i18n("Denomination"));
field->setCategory(i18n(stamp_general));
field->setFlags(Field::AllowCompletion | Field::AllowGrouped);
list.append(field);
- field = new Field(TQString::tqfromLatin1("country"), i18n("Country"));
+ field = new Field(TQString::fromLatin1("country"), i18n("Country"));
field->setCategory(i18n(stamp_general));
field->setFormatFlag(Field::FormatPlain);
field->setFlags(Field::AllowGrouped);
list.append(field);
- field = new Field(TQString::tqfromLatin1("year"), i18n("Issue Year"), Field::Number);
+ field = new Field(TQString::fromLatin1("year"), i18n("Issue Year"), Field::Number);
field->setCategory(i18n(stamp_general));
field->setFlags(Field::AllowMultiple | Field::AllowGrouped);
list.append(field);
- field = new Field(TQString::tqfromLatin1("color"), i18n("Color"));
+ field = new Field(TQString::fromLatin1("color"), i18n("Color"));
field->setCategory(i18n(stamp_general));
field->setFlags(Field::AllowCompletion | Field::AllowGrouped);
list.append(field);
- field = new Field(TQString::tqfromLatin1("scott"), i18n("Scott#"));
+ field = new Field(TQString::fromLatin1("scott"), i18n("Scott#"));
field->setCategory(i18n(stamp_general));
list.append(field);
- TQStringList grade = TQStringList::split(TQRegExp(TQString::tqfromLatin1("\\s*,\\s*")),
+ TQStringList grade = TQStringList::split(TQRegExp(TQString::fromLatin1("\\s*,\\s*")),
i18n("Stamp grade levels - "
"Superb,Extremely Fine,Very Fine,Fine,Average,Poor",
"Superb,Extremely Fine,Very Fine,Fine,Average,Poor"),
false);
- field = new Field(TQString::tqfromLatin1("grade"), i18n("Grade"), grade);
+ field = new Field(TQString::fromLatin1("grade"), i18n("Grade"), grade);
field->setCategory(i18n(stamp_condition));
field->setFlags(Field::AllowGrouped);
list.append(field);
- field = new Field(TQString::tqfromLatin1("cancelled"), i18n("Cancelled"), Field::Bool);
+ field = new Field(TQString::fromLatin1("cancelled"), i18n("Cancelled"), Field::Bool);
field->setCategory(i18n(stamp_condition));
list.append(field);
/* TRANSLATORS: See http://en.wikipedia.org/wiki/Stamp_hinge */
- field = new Field(TQString::tqfromLatin1("hinged"), i18n("Hinged"));
+ field = new Field(TQString::fromLatin1("hinged"), i18n("Hinged"));
field->setCategory(i18n(stamp_condition));
field->setFlags(Field::AllowCompletion | Field::AllowGrouped);
list.append(field);
- field = new Field(TQString::tqfromLatin1("centering"), i18n("Centering"));
+ field = new Field(TQString::fromLatin1("centering"), i18n("Centering"));
field->setCategory(i18n(stamp_condition));
field->setFlags(Field::AllowCompletion | Field::AllowGrouped);
list.append(field);
- field = new Field(TQString::tqfromLatin1("gummed"), i18n("Gummed"));
+ field = new Field(TQString::fromLatin1("gummed"), i18n("Gummed"));
field->setCategory(i18n(stamp_condition));
field->setFlags(Field::AllowCompletion | Field::AllowGrouped);
list.append(field);
- field = new Field(TQString::tqfromLatin1("pur_date"), i18n("Purchase Date"));
+ field = new Field(TQString::fromLatin1("pur_date"), i18n("Purchase Date"));
field->setCategory(i18n(stamp_personal));
field->setFormatFlag(Field::FormatDate);
list.append(field);
- field = new Field(TQString::tqfromLatin1("pur_price"), i18n("Purchase Price"));
+ field = new Field(TQString::fromLatin1("pur_price"), i18n("Purchase Price"));
field->setCategory(i18n(stamp_personal));
list.append(field);
- field = new Field(TQString::tqfromLatin1("location"), i18n("Location"));
+ field = new Field(TQString::fromLatin1("location"), i18n("Location"));
field->setCategory(i18n(stamp_personal));
field->setFlags(Field::AllowCompletion | Field::AllowGrouped);
field->setFormatFlag(Field::FormatPlain);
list.append(field);
- field = new Field(TQString::tqfromLatin1("gift"), i18n("Gift"), Field::Bool);
+ field = new Field(TQString::fromLatin1("gift"), i18n("Gift"), Field::Bool);
field->setCategory(i18n(stamp_personal));
list.append(field);
- field = new Field(TQString::tqfromLatin1("image"), i18n("Image"), Field::Image);
+ field = new Field(TQString::fromLatin1("image"), i18n("Image"), Field::Image);
list.append(field);
- field = new Field(TQString::tqfromLatin1("comments"), i18n("Comments"), Field::Para);
+ field = new Field(TQString::fromLatin1("comments"), i18n("Comments"), Field::Para);
list.append(field);
return list;