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

kalgebra

  • sources
  • kde-4.14
  • kdeedu
  • kalgebra
  • mobile
  • plugins
  • widgets
  • neutral
neutral/KAlgebraMobile.qml
Go to the documentation of this file.
1 import org.kde.analitza 1.0
2 import QtQuick 1.1
3 import org.kde.kalgebra.mobile 1.0
4 
5 Rectangle
6 {
7  id: rootItem
8  SystemPalette { id: palette }
9  color: palette.window
10  height: 600
11  width: 600
12 
13  function goToPage(path) {
14  try {
15  var component = Qt.createComponent(path)
16  if (component.status == Component.Ready) {
17  var obj = component.createObject(rootItem)
18 // obj.z = rootItem+1
19  obj.anchors.fill = rootItem
20 
21  } else {
22  console.log("Error loading component:", component.errorString());
23  }
24  } catch (e) {
25  console.log("error: "+e)
26  }
27  }
28 
29  ListView {
30  id: pluginsView
31  anchors.fill: parent
32  spacing: 10
33  header: Image {
34  source: "qrc:/kalgebra.svgz"
35  anchors.horizontalCenter: parent.horizontalCenter
36 
37  MouseArea {
38  anchors.fill: parent
39  onClicked: Qt.openUrlExternally("http://edu.kde.org/applications/mathematics/kalgebra/")
40  }
41  }
42  footer: Image {
43  source: "qrc:/kde-edu-logo.png"
44  anchors.horizontalCenter: parent.horizontalCenter
45 
46  MouseArea {
47  anchors.fill: parent
48  onClicked: Qt.openUrlExternally("http://edu.kde.org")
49  }
50  }
51  delegate:
52  Button {
53  text: title
54  onClicked: goToPage(model.path)
55  anchors.horizontalCenter: parent.horizontalCenter
56  }
57 
58 
59  model: PluginsModel { id: plugins }
60  }
61 }
Button
Definition: desktop/Button.qml:2
Component
PluginsModel
Definition: pluginsmodel.h:25
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:11:49 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kalgebra

Skip menu "kalgebra"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • 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