• 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
Plot2D.qml
Go to the documentation of this file.
1 import QtQuick 1.0
2 import org.kde.analitza 1.0
3 import widgets 1.0
4 
5 KAlgebraPage
6 {
7  anchors.margins: 0
8 
9  Row {
10  id: controls
11  spacing: 10
12 
13  width: parent.width
14  ExpressionInput {
15  id: input
16  width: parent.width-exec.width
17  anchors.verticalCenter: exec.verticalCenter
18  text: "sin x"
19  focus: true
20  Component.onCompleted: selectAll()
21 
22  Keys.onReturnPressed: view.addFunction(input.text, app.variables)
23  }
24 
25  Button {
26  id: exec
27  text: "Clear"
28  width: 100
29 
30  onClicked: {
31  app.functionsModel().clear()
32  view.resetViewport()
33  input.focus = true
34  }
35  }
36  }
37 
38 
39  Rectangle {
40  width: parent.width
41  anchors {
42  fill: parent
43  topMargin: controls.height
44  }
45  height: 200
46  color: 'white'
47 
48  Graph2D {
49  id: view
50  anchors.fill: parent
51  model: app.functionsModel()
52  }
53  }
54 }
Graph2D
Definition: Graph2D.qml:3
Button
Definition: desktop/Button.qml:2
Rectangle
Component
ExpressionInput
Definition: desktop/ExpressionInput.qml:2
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