summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleix Pol <aleixpol@kde.org>2016-10-04 02:25:43 (GMT)
committerAleix Pol <aleixpol@kde.org>2016-10-04 02:25:43 (GMT)
commitd237a20575f4fef97b83854860d21cae02a11076 (patch)
tree12ca955d3019924862f6f9458a164058d4bb8285
parent4816fee60d41010316c823f97e056cb4045adfb1 (diff)
Neutral doesn't really have a reason to be anymore
-rw-r--r--mobile/plugins/widgets/neutral/Button.qml31
-rw-r--r--mobile/plugins/widgets/neutral/CMakeLists.txt7
-rw-r--r--mobile/plugins/widgets/neutral/CalcButton.qml6
-rw-r--r--mobile/plugins/widgets/neutral/ExpressionInput.qml16
-rw-r--r--mobile/plugins/widgets/neutral/KAlgebraMobile.qml62
-rw-r--r--mobile/plugins/widgets/neutral/KAlgebraPage.qml19
-rw-r--r--mobile/plugins/widgets/neutral/Label.qml7
-rw-r--r--mobile/plugins/widgets/neutral/RealInput.qml43
-rw-r--r--mobile/plugins/widgets/neutral/ScrollDecorator.qml17
-rw-r--r--mobile/plugins/widgets/neutral/SimpleListView.qml23
10 files changed, 0 insertions, 231 deletions
diff --git a/mobile/plugins/widgets/neutral/Button.qml b/mobile/plugins/widgets/neutral/Button.qml
deleted file mode 100644
index 1aafe2e..0000000
--- a/mobile/plugins/widgets/neutral/Button.qml
+++ /dev/null
@@ -1,31 +0,0 @@
-import QtQuick 2.0
-
-Item {
- property alias text: display.text
- signal clicked
- width: display.width+15
- height: display.height+15
- property alias implicitWidth: display.implicitWidth
- property alias implicitHeight: display.implicitHeight
-
- SystemPalette { id: palette }
-
- Rectangle {
- radius: 5
- opacity: 0.3
- anchors.fill: parent
- anchors.margins: 2
- color: palette.button
- border.width: buttonArea.containsMouse ? 5 : 1
- border.color: palette.buttonText
- }
-
- Text { id: display; anchors.centerIn: parent; color: palette.buttonText }
-
- MouseArea {
- anchors.fill: parent
- hoverEnabled: true
- id: buttonArea
- onClicked: parent.clicked()
- }
-}
diff --git a/mobile/plugins/widgets/neutral/CMakeLists.txt b/mobile/plugins/widgets/neutral/CMakeLists.txt
deleted file mode 100644
index 5c90774..0000000
--- a/mobile/plugins/widgets/neutral/CMakeLists.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-install( FILES
- Label.qml Button.qml CalcButton.qml ExpressionInput.qml
- RealInput.qml SimpleListView.qml ScrollDecorator.qml
-
- KAlgebraPage.qml KAlgebraMobile.qml
- DESTINATION ${KDE_INSTALL_DATADIR}/kalgebramobile/plugins/widgets/
-)
diff --git a/mobile/plugins/widgets/neutral/CalcButton.qml b/mobile/plugins/widgets/neutral/CalcButton.qml
deleted file mode 100644
index 60bd7e3..0000000
--- a/mobile/plugins/widgets/neutral/CalcButton.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.0
-
-Button
-{
- onClicked: doOp(text)
-} \ No newline at end of file
diff --git a/mobile/plugins/widgets/neutral/ExpressionInput.qml b/mobile/plugins/widgets/neutral/ExpressionInput.qml
deleted file mode 100644
index a7b8809..0000000
--- a/mobile/plugins/widgets/neutral/ExpressionInput.qml
+++ /dev/null
@@ -1,16 +0,0 @@
-import QtQuick 2.0
-
-TextInput
-{
- SystemPalette { id: palette }
-
- height: input.font.pixelSize+5
- Rectangle {
- color: palette.base
- anchors.fill: parent
- z: parent.z-1
- }
-
-// placeholderText: "Expression to calculate..."
- inputMethodHints: Qt.ImhPreferNumbers | Qt.ImhNoPredictiveText | Qt.ImhNoAutoUppercase
-}
diff --git a/mobile/plugins/widgets/neutral/KAlgebraMobile.qml b/mobile/plugins/widgets/neutral/KAlgebraMobile.qml
deleted file mode 100644
index d96ccd1..0000000
--- a/mobile/plugins/widgets/neutral/KAlgebraMobile.qml
+++ /dev/null
@@ -1,62 +0,0 @@
-import org.kde.analitza 1.0
-import QtQuick 2.0
-import QtQuick.Window 2.1
-import org.kde.kalgebra.mobile 1.0
-
-Window
-{
- id: rootItem
- SystemPalette { id: palette }
- color: palette.window
- height: 600
- width: 600
- visible: true
-
- function goToPage(path) {
- try {
- var component = Qt.createComponent(path)
- if (component.status == Component.Ready) {
- var obj = component.createObject(rootItem)
-// obj.z = rootItem+1
- obj.anchors.fill = pluginsView
- } else {
- console.log("Error loading component:", component.errorString());
- }
- } catch (e) {
- console.log("error: "+e)
- }
- }
-
- ListView {
- id: pluginsView
- anchors.fill: parent
- spacing: 10
- header: Image {
- source: "qrc:/kalgebra.png"
- anchors.horizontalCenter: parent.horizontalCenter
-
- MouseArea {
- anchors.fill: parent
- onClicked: Qt.openUrlExternally("http://edu.kde.org/applications/mathematics/kalgebra/")
- }
- }
- footer: Image {
- source: "qrc:/kde-edu-logo.png"
- anchors.horizontalCenter: parent.horizontalCenter
-
- MouseArea {
- anchors.fill: parent
- onClicked: Qt.openUrlExternally("http://edu.kde.org")
- }
- }
- delegate:
- Button {
- text: title
- onClicked: goToPage(model.path)
- anchors.horizontalCenter: parent.horizontalCenter
- }
-
-
- model: PluginsModel { id: plugins }
- }
-}
diff --git a/mobile/plugins/widgets/neutral/KAlgebraPage.qml b/mobile/plugins/widgets/neutral/KAlgebraPage.qml
deleted file mode 100644
index de7d79e..0000000
--- a/mobile/plugins/widgets/neutral/KAlgebraPage.qml
+++ /dev/null
@@ -1,19 +0,0 @@
-import QtQuick 2.0
-
-Rectangle
-{
- SystemPalette { id: palette }
- color: palette.window
-
- Button {
- text: "<-"
- width: 50
- height: 50
- anchors {
- bottom: parent.bottom
- right: parent.right
- }
- onClicked: parent.destroy()
- z: parent.z+1
- }
-}
diff --git a/mobile/plugins/widgets/neutral/Label.qml b/mobile/plugins/widgets/neutral/Label.qml
deleted file mode 100644
index cde67a8..0000000
--- a/mobile/plugins/widgets/neutral/Label.qml
+++ /dev/null
@@ -1,7 +0,0 @@
-import QtQuick 2.0
-
-Text {
- SystemPalette { id: palette }
- color: palette.text
- onLinkActivated: Qt.openUrlExternally(link)
-}
diff --git a/mobile/plugins/widgets/neutral/RealInput.qml b/mobile/plugins/widgets/neutral/RealInput.qml
deleted file mode 100644
index 3160421..0000000
--- a/mobile/plugins/widgets/neutral/RealInput.qml
+++ /dev/null
@@ -1,43 +0,0 @@
-import QtQuick 2.0
-
-TextInput
-{
- id: input
- property alias minimumValue: realvalidator.bottom
- property alias maximumValue: realvalidator.top
- SystemPalette { id: palette }
-
- Rectangle { color: palette.base; anchors.fill: parent; z: parent.z-1; opacity: 1 }
-
- property double value: parseFloat(text)
- inputMethodHints: Qt.ImhDigitsOnly | Qt.ImhNoPredictiveText
-
- validator: DoubleValidator { id: realvalidator }
-
- onTextChanged: value=parseFloat(text)
-
- Component.onCompleted: text=value
-
- Row {
- anchors.right: parent.right
- height: parent.height
- Button {
- text: "+"
- height: parent.height
- onClicked: {
- if(input.value+1<maximumValue) {
- input.text=(input.value+1)
- }
- }
- }
- Button {
- text: "-"
- onClicked: {
- if(input.value-1>minimumValue) {
- input.text=(input.value-1)
- }
- }
- height: parent.height
- }
- }
-} \ No newline at end of file
diff --git a/mobile/plugins/widgets/neutral/ScrollDecorator.qml b/mobile/plugins/widgets/neutral/ScrollDecorator.qml
deleted file mode 100644
index a8a2906..0000000
--- a/mobile/plugins/widgets/neutral/ScrollDecorator.qml
+++ /dev/null
@@ -1,17 +0,0 @@
-import QtQuick 2.0
-
-Rectangle {
- property Flickable flickableItem: null
- anchors {
- right: flickableItem.right
- rightMargin: 5
- }
- visible: flickableItem!=null
- width: 5
- opacity: 0.5
- height: flickableItem.height/(flickableItem.contentHeight/flickableItem.height)
- y: (flickableItem.contentY/flickableItem.contentHeight)*flickableItem.height
-
- SystemPalette { id: palette }
- color: palette.text
-} \ No newline at end of file
diff --git a/mobile/plugins/widgets/neutral/SimpleListView.qml b/mobile/plugins/widgets/neutral/SimpleListView.qml
deleted file mode 100644
index 52e6425..0000000
--- a/mobile/plugins/widgets/neutral/SimpleListView.qml
+++ /dev/null
@@ -1,23 +0,0 @@
-import QtQuick 2.0
-
-ListView
-{
- id: viewItem
- property string role: ""
- property string title
-
- SystemPalette { id: palette }
- clip: true
- header: Label {
- height: ListView.view.title=="" ? 0 : 1.5*implicitHeight
- text: ListView.view.title
- font.weight: Font.Bold
- verticalAlignment: Text.AlignVCenter
- }
- delegate: Label { text: model[role] }
- highlight: Rectangle { color: palette.midlight }
-
- ScrollDecorator {
- flickableItem: viewItem
- }
-}