• 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
  • desktop
desktop/KAlgebraMobile.qml
Go to the documentation of this file.
1 import QtQuick 1.0
2 import QtDesktop 0.1
3 import org.kde.analitza 1.0
4 import org.kde.kalgebra.mobile 1.0
5 
6 Rectangle
7 {
8  SystemPalette { id:syspal }
9  color: syspal.window
10  height: 400
11  width: 300
12 
13  ToolBar{
14  id: toolbar
15  width: parent.width
16  height: 30
17 
18  Row {
19  spacing: 2
20  anchors.verticalCenter: parent.verticalCenter
21 
22  ToolButton{
23 // iconSource: "images/folder_new.png"
24  anchors.verticalCenter: parent.verticalCenter
25 
26  text: "Open"
27 
28  onClicked: {
29  var idx = pluginsView.currentIndex
30  var toOpen = plugins.pluginPath(idx)
31 
32  try {
33  var component = Qt.createComponent(toOpen)
34 
35  if (component.status == Component.Ready)
36  frame.addTab(component)
37  else
38  console.log("Error loading component:", component.errorString());
39  } catch (e) {
40  console.log("error: "+e)
41  }
42 
43  frame.current=frame.count-1
44  }
45  }
46  }
47  }
48 
49  TabFrame
50  {
51  id: frame
52  width: parent.width
53  anchors.top: toolbar.bottom
54  anchors.bottom: parent.bottom
55 
56  Tab {
57  title: "menu"
58  TableView {
59  id: pluginsView
60  anchors.fill: parent
61  headerVisible: false
62 
63  TableColumn {
64  role: "display"
65  title: "Title"
66  width: 120
67  }
68 
69  // itemDelegate: Row { /*Image { source: 'image://desktoptheme/'+decoration-name } */Text { text: display } }
70  // highlight: Rectangle { color: "lightsteelblue"; radius: 5 }
71 
72  model: PluginsModel { id: plugins }
73  }
74  }
75  }
76 }
Tab
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