Advertisement
Guest User

Untitled

a guest
Oct 27th, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. // -*- coding: utf-8-unix -*-
  2.  
  3. import QtQuick 2.0
  4. import QtPositioning 5.2
  5.  
  6. // A drop-in replacement for PositionSource.qml for testing.
  7.  
  8. Item {
  9. id: gps
  10. property var direction: 0
  11. property var position: QtObject {
  12. property var coordinate: QtPositioning.coordinate(60.16807, 24.94155)
  13. }
  14. property bool ready: true
  15. Timer {
  16. interval: 3000
  17. repeat: true
  18. running: app.running
  19. // Plain reassignment seems to trigger onPositionChanged.
  20. onTriggered: gps.position = gps.position;
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement