[SailfishDevel] QML Format and Formatter objects info
Luca Donaggio
donaggio at gmail.com
Mon Feb 24 10:28:20 UTC 2014
Thank you Andrey!
On Mon, Feb 24, 2014 at 11:22 AM, Andrey Kozhevnikov <coderusinbox at gmail.com
> wrote:
> 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
>
--
Luca Donaggio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20140224/246d246f/attachment.html>
More information about the Devel
mailing list