summaryrefslogtreecommitdiff
path: root/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FStringFormat.qml
blob: c3be3832fa69e41e2027c3e7fdc2596dabe098d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
import QtQuick 2.0
import "FStringFormat.js" as CB

QtObject {
    // output string for which is used as output
    property string output

    // this string defines the format of the output
    property string format

    // this is the data to be formatted into the output
    property variant data


    onFormatChanged: {
        CB.splitFormatString(format);
    }

    onDataChanged: {
        doFormat();
    }

    function doFormat()
    {
        output = CB.formatOutput(data);
    }
}