• 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
  • harmattan
harmattan/KAlgebraMobile.qml
Go to the documentation of this file.
1 import com.nokia.meego 1.0
2 import com.nokia.extras 1.0
3 import org.kde.analitza 1.0
4 import org.kde.kalgebra.mobile 1.0
5 import QtQuick 1.1
6 
7 PageStackWindow
8 {
9  height: 400
10  width: 300
11 
12  function goToPage(path) {
13 // var toOpen = plugins.pluginPath(idx)
14 
15  try {
16  var component = Qt.createComponent(path)
17  if (component.status == Component.Ready)
18  pageStack.push(component);
19  else {
20  console.log("Error loading component:", component.errorString());
21  errorDialog.message = component.errorString()
22  errorDialog.open()
23  }
24  } catch (e) {
25  console.log("error: "+e)
26  errorDialog.message = e
27  errorDialog.open()
28  }
29  }
30 
31  Dialog {
32  id: errorDialog
33  property alias message: text.text
34 
35  content:Item {
36  id: name
37  height: 50
38  width: parent.width
39  Label {
40  id: text
41  font.pixelSize: 22
42  anchors.fill: parent
43  wrapMode: Text.WordWrap
44  color: "white"
45  }
46  }
47  }
48 
49  initialPage:
50  Page {
51  anchors.margins: UiConstants.DefaultMargin
52 
53  ListView {
54  id: pluginsView
55  anchors.fill: parent
56 
57  delegate:
58  ListDelegate {
59  Image {
60  source: "image://theme/icon-m-common-drilldown-arrow" + (theme.inverted ? "-inverse" : "")
61  anchors.right: parent.right;
62  anchors.verticalCenter: parent.verticalCenter
63  }
64 
65  onClicked: goToPage(model.path)
66  }
67 
68 
69  model: PluginsModel { id: plugins }
70  }
71  }
72 }
Label
Definition: desktop/Label.qml:3
Item
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