• 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
StaticLayer.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 import org.kde.edu.marble 0.11
11 
12 MarbleWidget {
13  width: 800;
14  height: 600
15 
16  center: Coordinate { longitude: 30; latitude: 33 }
17 
18  dataLayers: [
19  DataLayer{
20  // The model defines the data that will appear. The lon and lat
21  // property of its items define their position
22  // See SevenWondersOfTheAncientWorld.qml for details
23  model: SevenWondersOfTheAncientWorld {}
24 
25  // The delegate is the component that shows the items from the
26  // model on top of the map. Their position and visibility is managed
27  // automatically by Marble
28  delegate: Rectangle {
29  width: 100;
30  height: image.height + label.height + 12
31  border.color: "darkgray"; border.width: 2
32  radius: 4; smooth: true
33  Column {
34  id: column; x: 4; y: 4; spacing: 4
35  Image {
36  id: image
37  width: 92; smooth: true
38  fillMode: Image.PreserveAspectFit
39  // "picture" is a property defined by items in the model
40  source: picture
41  }
42  Text {
43  id: label
44  // "name" is a property defined by items in the model
45  text: name
46  width: 92
47  wrapMode: Text.Wrap
48  font.bold: true
49  }
50  }
51  }
52  }
53  ]
54 }
Coordinate
Represents a coordinate with the properties of a name and coordinates.
Definition: Coordinate.h:28
Rectangle
SevenWondersOfTheAncientWorld
Definition: SevenWondersOfTheAncientWorld.qml:9
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:53 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