summaryrefslogtreecommitdiff
path: root/SDL_Core/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FActTimer.qml
blob: e31937a2b9f229b086b7c16336016a56333379d2 (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
// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
import QtQuick 2.0
import com.ford.hmiframework 1.0

FAction {
    id: theAction

    property variant timer
    property int action: 1

    onExecute: {
        switch(action)
        {
        case TM.Start:
            timer.start();
            break;
        case TM.Restart:
            timer.restart();
            break;
        case TM.Stop:
            timer.stop();
            break;
        }
    }
}