summaryrefslogtreecommitdiffstats
path: root/src/collections/filecatalog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/collections/filecatalog.cpp')
-rw-r--r--src/collections/filecatalog.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/collections/filecatalog.cpp b/src/collections/filecatalog.cpp
index cf67e2d..fcb0a02 100644
--- a/src/collections/filecatalog.cpp
+++ b/src/collections/filecatalog.cpp
@@ -26,77 +26,77 @@ FileCatalog::FileCatalog(bool addFields_, const TQString& title_ /*=null*/)
if(addFields_) {
addFields(defaultFields());
}
- setDefaultGroupField(TQString::tqfromLatin1("volume"));
+ setDefaultGroupField(TQString::fromLatin1("volume"));
}
Tellico::Data::FieldVec FileCatalog::defaultFields() {
FieldVec list;
FieldPtr field;
- field = new Field(TQString::tqfromLatin1("title"), i18n("Name"));
+ field = new Field(TQString::fromLatin1("title"), i18n("Name"));
field->setCategory(i18n(file_general));
field->setFlags(Field::NoDelete);
list.append(field);
- field = new Field(TQString::tqfromLatin1("url"), i18n("URL"), Field::URL);
+ field = new Field(TQString::fromLatin1("url"), i18n("URL"), Field::URL);
field->setCategory(i18n(file_general));
list.append(field);
- field = new Field(TQString::tqfromLatin1("description"), i18n("Description"));
+ field = new Field(TQString::fromLatin1("description"), i18n("Description"));
field->setCategory(i18n(file_general));
field->setFlags(Field::AllowCompletion | Field::AllowGrouped);
list.append(field);
- field = new Field(TQString::tqfromLatin1("volume"), i18n("Volume"));
+ field = new Field(TQString::fromLatin1("volume"), i18n("Volume"));
field->setCategory(i18n(file_general));
field->setFlags(Field::AllowCompletion | Field::AllowGrouped);
list.append(field);
- field = new Field(TQString::tqfromLatin1("folder"), i18n("Folder"));
+ field = new Field(TQString::fromLatin1("folder"), i18n("Folder"));
field->setCategory(i18n(file_general));
field->setFlags(Field::AllowCompletion | Field::AllowGrouped);
list.append(field);
- field = new Field(TQString::tqfromLatin1("mimetype"), i18n("Mimetype"));
+ field = new Field(TQString::fromLatin1("mimetype"), i18n("Mimetype"));
field->setCategory(i18n(file_general));
field->setFlags(Field::AllowCompletion | Field::AllowGrouped);
list.append(field);
- field = new Field(TQString::tqfromLatin1("size"), i18n("Size"));
+ field = new Field(TQString::fromLatin1("size"), i18n("Size"));
field->setCategory(i18n(file_general));
list.append(field);
- field = new Field(TQString::tqfromLatin1("permissions"), i18n("Permissions"));
+ field = new Field(TQString::fromLatin1("permissions"), i18n("Permissions"));
field->setCategory(i18n(file_general));
field->setFlags(Field::AllowCompletion | Field::AllowGrouped);
list.append(field);
- field = new Field(TQString::tqfromLatin1("owner"), i18n("Owner"));
+ field = new Field(TQString::fromLatin1("owner"), i18n("Owner"));
field->setCategory(i18n(file_general));
field->setFlags(Field::AllowCompletion | Field::AllowGrouped);
list.append(field);
- field = new Field(TQString::tqfromLatin1("group"), i18n("Group"));
+ field = new Field(TQString::fromLatin1("group"), i18n("Group"));
field->setCategory(i18n(file_general));
field->setFlags(Field::AllowCompletion | Field::AllowGrouped);
list.append(field);
// these dates are string fields, not dates, since the time is included
- field = new Field(TQString::tqfromLatin1("created"), i18n("Created"));
+ field = new Field(TQString::fromLatin1("created"), i18n("Created"));
field->setCategory(i18n(file_general));
list.append(field);
- field = new Field(TQString::tqfromLatin1("modified"), i18n("Modified"));
+ field = new Field(TQString::fromLatin1("modified"), i18n("Modified"));
field->setCategory(i18n(file_general));
list.append(field);
- field = new Field(TQString::tqfromLatin1("metainfo"), i18n("Meta Info"), Field::Table);
- field->setProperty(TQString::tqfromLatin1("columns"), TQChar('2'));
- field->setProperty(TQString::tqfromLatin1("column1"), i18n("Property"));
- field->setProperty(TQString::tqfromLatin1("column2"), i18n("Value"));
+ field = new Field(TQString::fromLatin1("metainfo"), i18n("Meta Info"), Field::Table);
+ field->setProperty(TQString::fromLatin1("columns"), TQChar('2'));
+ field->setProperty(TQString::fromLatin1("column1"), i18n("Property"));
+ field->setProperty(TQString::fromLatin1("column2"), i18n("Value"));
list.append(field);
- field = new Field(TQString::tqfromLatin1("icon"), i18n("Icon"), Field::Image);
+ field = new Field(TQString::fromLatin1("icon"), i18n("Icon"), Field::Image);
list.append(field);
return list;