• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.12
  • kdeedu
  • marble
  • examples
  • qml
  • data-layers
EarthquakesModel.qml
Go to the documentation of this file.
1 // This file is part of the Marble Virtual Globe.
2 //
3 // This program is free software licensed under the GNU LGPL. You can
4 // find a copy of this license in LICENSE.txt in the top directory of
5 // the source code.
6 //
7 // Copyright 2012 Dennis Nienhüser <earthwings@gentoo.org>
8 
9 import QtQuick 1.1
10 
11 XmlListModel {
12  property real north
13  property real south
14  property real east
15  property real west
16 
17  function update() {
18  source = "http://ws.geonames.org/earthquakes?style=full"
19  + "&north=" + north
20  + "&south=" + south
21  + "&east=" + east
22  + "&west=" + west
23  }
24 
25  query: "/geonames/earthquake"
26 
27  XmlRole { name: "lat"; query: "lat/number()" }
28  XmlRole { name: "lon"; query: "lng/number()" }
29  XmlRole { name: "magnitude"; query: "magnitude/number()" }
30 
31  // You can also activate those properties:
32  // XmlRole { name: "source"; query: "src/string()" }
33  // XmlRole { name: "eqid"; query: "eqid/string()" }
34  // XmlRole { name: "datetime"; query: "datetime/string()" }
35  // XmlRole { name: "depth"; query: "depth/number()" }
36 }
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:49 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal