TestsTab.qml
changeset 35 2868107ea71d
parent 34 f2c87f0cfabe
     1.1 --- a/TestsTab.qml	Wed Jun 04 19:30:54 2014 +0200
     1.2 +++ b/TestsTab.qml	Wed Jun 04 21:56:36 2014 +0200
     1.3 @@ -16,8 +16,8 @@
     1.4      //anchors.fill:parent
     1.5  
     1.6      Settings {
     1.7 -        //property alias fontLineTop: marqueeLineTop.font;
     1.8 -        //property alias fontLineBottom: marqueeLineBottom.font;
     1.9 +        property alias fontLineTop: marqueeLineTop.font;
    1.10 +        property alias fontLineBottom: marqueeLineBottom.font;
    1.11      }
    1.12  
    1.13  
    1.14 @@ -33,8 +33,6 @@
    1.15          //24 FPS
    1.16          //property int timeoutInterval: 41
    1.17          //32 FPS
    1.18 -        property int timeoutInterval: 33
    1.19 -        signal timeout
    1.20      //! [splash-properties]
    1.21      //! [screen-properties]
    1.22          //Here comes some trick to keep our display frame within our app.
    1.23 @@ -65,7 +63,8 @@
    1.24              MarqueeText {
    1.25                  id: marqueeLineTop
    1.26                  width: 256
    1.27 -                pixelsPerSeconds:50
    1.28 +                height: 32
    1.29 +                pixelsPerSeconds:25
    1.30                  //anchors.verticalCenter: parent.verticalCenter
    1.31                  //anchors.horizontalCenter: parent.horizontalCenter
    1.32                  text: "start ---- ABCDEFGHIJKLMNOPQRSTUVWXYZ ---- end"
    1.33 @@ -75,7 +74,8 @@
    1.34              MarqueeText {
    1.35                  id: marqueeLineBottom
    1.36                  width: 256
    1.37 -                pixelsPerSeconds:50
    1.38 +                height: 32
    1.39 +                pixelsPerSeconds:25
    1.40                  //anchors.verticalCenter: parent.verticalCenter
    1.41                  //anchors.horizontalCenter: parent.horizontalCenter
    1.42                  text: "start ---- abcdefghijklmnopqrstuvwxyz-1234567890 ---- end"
    1.43 @@ -96,10 +96,10 @@
    1.44          function doFrame(frameCount)
    1.45          {
    1.46              //Skip every second frame otherwise our UI lags.
    1.47 -            if (frameCount%2!=0)
    1.48 +            if (frameCount%4!=0)
    1.49              {
    1.50                  //labelFrameTick.text="-";
    1.51 -                //return;
    1.52 +                return;
    1.53              }
    1.54              //labelFrameTick.text="+";
    1.55  
    1.56 @@ -112,7 +112,7 @@
    1.57              }
    1.58  
    1.59  
    1.60 -            var frameCounter=(frameCount-firstFrame)/2;
    1.61 +            var frameCounter=(frameCount-firstFrame)/4;
    1.62              labelFrameCount.text=frameCounter;
    1.63              labelTime.text=milliseconds/1000;
    1.64              labelTimePerFrame.text=(milliseconds/frameCounter).toFixed(3);