via plugins.qmltypes:
Component {
name: "DeclarativeFormatter"
prototype: "QObject"
exports: [
"Formatter 1.0"
]
Enum {
name: "FormatType"
values: {
"Timepoint": 0,
"TimepointRelative": 1,
"TimepointRelativeCurrentDay": 2,
"TimepointSectionRelative": 3,
"WeekdayNameStandalone": 4,
"DurationElapsed": 5,
"TimeValueTwelveHours": 6,
"TimeValueTwentyFourHours": 7,
"TimeValue": 8,
"DurationShort": 9,
"DurationLong": 10,
"CallTimeRelative": 1
}
}
Enum {
name: "ArticleType"
values: {
"AnteMeridiemIndicator": 0,
"PostMeridiemIndicator": 1
}
}
Enum {
name: "TextFormatType"
values: {
"Ascii7Bit": 0,
"PortableFilename": 1
}
}
Method {
name: "formatDate"
type: "string"
Parameter { name: "dateTime"; type: "QDateTime" }
Parameter { name: "formatType"; type: "int" }
}
Method {
name: "formatArticle"
type: "string"
Parameter { name: "articleType"; type: "int" }
}
Method {
name: "formatDuration"
type: "string"
Parameter { name: "seconds"; type: "int" }
Parameter { name: "formatType"; type: "int" }
}
Method {
name: "formatFileSize"
type: "string"
Parameter { name: "bytes"; type: "qlonglong" }
}
Method {
name: "formatText"
type: "string"
Parameter { name: "input"; type: "string" }
Parameter { name: "formatType"; type: "int" }
}
}
On 24.02.2014 16:11, Luca Donaggio wrote:
Can someone point me to the documentation for Format and Formatter
objects (QML)?
I'm not able to find it anywhere - well, it could be it's just under
my nose and I'm still not able to see it ;-)
--
Luca Donaggio
_______________________________________________
SailfishOS.org Devel mailing list
_______________________________________________
SailfishOS.org Devel mailing list