summaryrefslogtreecommitdiffstats
path: root/src/collections/stampcollection.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/collections/stampcollection.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/collections/stampcollection.cpp')
-rw-r--r--src/collections/stampcollection.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/collections/stampcollection.cpp b/src/collections/stampcollection.cpp
index c26da9a..f5b8e0c 100644
--- a/src/collections/stampcollection.cpp
+++ b/src/collections/stampcollection.cpp
@@ -23,108 +23,108 @@ namespace {
using Tellico::Data::StampCollection;
-StampCollection::StampCollection(bool addFields_, const QString& title_ /*=null*/)
+StampCollection::StampCollection(bool addFields_, const TQString& title_ /*=null*/)
: Collection(title_.isEmpty() ? i18n("My Stamps") : title_) {
if(addFields_) {
addFields(defaultFields());
}
- setDefaultGroupField(QString::fromLatin1("denomination"));
+ setDefaultGroupField(TQString::tqfromLatin1("denomination"));
}
Tellico::Data::FieldVec StampCollection::defaultFields() {
FieldVec list;
FieldPtr field;
- field = new Field(QString::fromLatin1("title"), i18n("Title"), Field::Dependent);
+ field = new Field(TQString::tqfromLatin1("title"), i18n("Title"), Field::Dependent);
field->setCategory(i18n(stamp_general));
- field->setDescription(QString::fromLatin1("%{year} %{description} %{denomination}"));
+ field->setDescription(TQString::tqfromLatin1("%{year} %{description} %{denomination}"));
field->setFlags(Field::NoDelete);
list.append(field);
- field = new Field(QString::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(QString::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(QString::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(QString::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(QString::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(QString::fromLatin1("scott"), i18n("Scott#"));
+ field = new Field(TQString::tqfromLatin1("scott"), i18n("Scott#"));
field->setCategory(i18n(stamp_general));
list.append(field);
- QStringList grade = QStringList::split(QRegExp(QString::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(QString::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(QString::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(QString::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(QString::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(QString::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(QString::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(QString::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(QString::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(QString::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(QString::fromLatin1("image"), i18n("Image"), Field::Image);
+ field = new Field(TQString::tqfromLatin1("image"), i18n("Image"), Field::Image);
list.append(field);
- field = new Field(QString::fromLatin1("comments"), i18n("Comments"), Field::Para);
+ field = new Field(TQString::tqfromLatin1("comments"), i18n("Comments"), Field::Para);
list.append(field);
return list;