• 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/RealInput.qml
Go to the documentation of this file.
1 import QtQuick 1.1
2 
3 TextInput
4 {
5  id: input
6  property alias minimumValue: realvalidator.bottom
7  property alias maximumValue: realvalidator.top
8  SystemPalette { id: palette }
9 
10  Rectangle { color: palette.base; anchors.fill: parent; z: parent.z-1; opacity: 1 }
11 
12  property double value: parseFloat(text)
13  inputMethodHints: Qt.ImhDigitsOnly | Qt.ImhNoPredictiveText
14 
15  validator: DoubleValidator { id: realvalidator }
16 
17  onTextChanged: value=parseFloat(text)
18 
19  Component.onCompleted: text=value
20 
21  Row {
22  anchors.right: parent.right
23  height: parent.height
24  Button {
25  text: "+"
26  height: parent.height
27  onClicked: {
28  if(input.value+1<maximumValue) {
29  input.text=(input.value+1)
30  }
31  }
32  }
33  Button {
34  text: "-"
35  onClicked: {
36  if(input.value-1>minimumValue) {
37  input.text=(input.value-1)
38  }
39  }
40  height: parent.height
41  }
42  }
43 }
Button
Definition: desktop/Button.qml:2
Rectangle
Component
Button::text
alias text
Definition: neutral/Button.qml:5
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