aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/data/dateConversions.qml
blob: 38a34f7487a1c5e710114f2a11e3dcfc87e35304 (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
pragma Strict
import QtQml
import TestTypes

QtObject {
    property date date: Druggeljug.myDate
    property date time: Druggeljug.myTime

    property string dateString: date
    property string timeString: time

    function shuffle() {
        Druggeljug.myDate = date;
        Druggeljug.myTime = time;

        dateString = Druggeljug.myDate;
        timeString = Druggeljug.myTime;
    }

    function fool() {
        var tmp = Druggeljug.myTime;
        Druggeljug.myTime = Druggeljug.myDate;
        Druggeljug.myDate = tmp;
    }
}