diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:57:51 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:57:51 -0600 |
commit | 2781e27b871150395a5a82e221684108641002b2 (patch) | |
tree | 57f4d7c01a48faef1a840fbe0de8f4ec1e5f606f /src/collections/stampcollection.cpp | |
parent | 031454e56009d576589c28757f6c6fcf4884095e (diff) | |
download | tellico-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/collections/stampcollection.cpp')
-rw-r--r-- | src/collections/stampcollection.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/src/collections/stampcollection.cpp b/src/collections/stampcollection.cpp index c41f806..f5b8e0c 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::fromLatin1("denomination")); + setDefaultGroupField(TQString::tqfromLatin1("denomination")); } Tellico::Data::FieldVec StampCollection::defaultFields() { FieldVec list; FieldPtr field; - field = new Field(TQString::fromLatin1("title"), i18n("Title"), Field::Dependent); + field = new Field(TQString::tqfromLatin1("title"), i18n("Title"), Field::Dependent); field->setCategory(i18n(stamp_general)); - field->setDescription(TQString::fromLatin1("%{year} %{description} %{denomination}")); + field->setDescription(TQString::tqfromLatin1("%{year} %{description} %{denomination}")); field->setFlags(Field::NoDelete); list.append(field); - field = new Field(TQString::fromLatin1("description"), i18n("Description")); + field = new Field(TQString::tqfromLatin1("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::fromLatin1("denomination"), i18n("Denomination")); + field = new Field(TQString::tqfromLatin1("denomination"), i18n("Denomination")); field->setCategory(i18n(stamp_general)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("country"), i18n("Country")); + field = new Field(TQString::tqfromLatin1("country"), i18n("Country")); field->setCategory(i18n(stamp_general)); field->setFormatFlag(Field::FormatPlain); field->setFlags(Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("year"), i18n("Issue Year"), Field::Number); + field = new Field(TQString::tqfromLatin1("year"), i18n("Issue Year"), Field::Number); field->setCategory(i18n(stamp_general)); field->setFlags(Field::AllowMultiple | Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("color"), i18n("Color")); + field = new Field(TQString::tqfromLatin1("color"), i18n("Color")); field->setCategory(i18n(stamp_general)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("scott"), i18n("Scott#")); + field = new Field(TQString::tqfromLatin1("scott"), i18n("Scott#")); field->setCategory(i18n(stamp_general)); list.append(field); - TQStringList grade = TQStringList::split(TQRegExp(TQString::fromLatin1("\\s*,\\s*")), + TQStringList grade = TQStringList::split(TQRegExp(TQString::tqfromLatin1("\\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::fromLatin1("grade"), i18n("Grade"), grade); + field = new Field(TQString::tqfromLatin1("grade"), i18n("Grade"), grade); field->setCategory(i18n(stamp_condition)); field->setFlags(Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("cancelled"), i18n("Cancelled"), Field::Bool); + field = new Field(TQString::tqfromLatin1("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::fromLatin1("hinged"), i18n("Hinged")); + field = new Field(TQString::tqfromLatin1("hinged"), i18n("Hinged")); field->setCategory(i18n(stamp_condition)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("centering"), i18n("Centering")); + field = new Field(TQString::tqfromLatin1("centering"), i18n("Centering")); field->setCategory(i18n(stamp_condition)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("gummed"), i18n("Gummed")); + field = new Field(TQString::tqfromLatin1("gummed"), i18n("Gummed")); field->setCategory(i18n(stamp_condition)); field->setFlags(Field::AllowCompletion | Field::AllowGrouped); list.append(field); - field = new Field(TQString::fromLatin1("pur_date"), i18n("Purchase Date")); + field = new Field(TQString::tqfromLatin1("pur_date"), i18n("Purchase Date")); field->setCategory(i18n(stamp_personal)); field->setFormatFlag(Field::FormatDate); list.append(field); - field = new Field(TQString::fromLatin1("pur_price"), i18n("Purchase Price")); + field = new Field(TQString::tqfromLatin1("pur_price"), i18n("Purchase Price")); field->setCategory(i18n(stamp_personal)); list.append(field); - field = new Field(TQString::fromLatin1("location"), i18n("Location")); + field = new Field(TQString::tqfromLatin1("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::fromLatin1("gift"), i18n("Gift"), Field::Bool); + field = new Field(TQString::tqfromLatin1("gift"), i18n("Gift"), Field::Bool); field->setCategory(i18n(stamp_personal)); list.append(field); - field = new Field(TQString::fromLatin1("image"), i18n("Image"), Field::Image); + field = new Field(TQString::tqfromLatin1("image"), i18n("Image"), Field::Image); list.append(field); - field = new Field(TQString::fromLatin1("comments"), i18n("Comments"), Field::Para); + field = new Field(TQString::tqfromLatin1("comments"), i18n("Comments"), Field::Para); list.append(field); return list; |