summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleix Pol <[email protected]>2015-11-06 03:47:57 +0100
committerAleix Pol <[email protected]>2015-11-06 03:47:57 +0100
commitf47b60aecb273a8a4e6128001b9008272fadb8d0 (patch)
tree72f045594047bdb633f7c7cc6fe9d1a62332ef01
parent035736db5b70116cc99146b3815c0ebf06c5c0f4 (diff)
Add some margins so everything looks a bit less cramped
-rw-r--r--mobile/plugins/Console.qml2
-rw-r--r--mobile/plugins/Plot2D.qml8
-rw-r--r--mobile/plugins/Plot3D.qml8
-rw-r--r--mobile/plugins/widgets/material/KAlgebraPage.qml1
-rw-r--r--mobile/plugins/widgets/qtcontrols/KAlgebraPage.qml1
5 files changed, 16 insertions, 4 deletions
diff --git a/mobile/plugins/Console.qml b/mobile/plugins/Console.qml
index 2ba7584..4e8e43b 100644
--- a/mobile/plugins/Console.qml
+++ b/mobile/plugins/Console.qml
@@ -4,6 +4,7 @@ import widgets 1.0
KAlgebraPage
{
+ id: page
ListModel { id: itemModel }
ExpressionInput {
@@ -33,6 +34,7 @@ KAlgebraPage
top: parent.top
left: parent.left
right: parent.right
+ margins: page.dp*6
}
}
diff --git a/mobile/plugins/Plot2D.qml b/mobile/plugins/Plot2D.qml
index 14b307f..e1833e8 100644
--- a/mobile/plugins/Plot2D.qml
+++ b/mobile/plugins/Plot2D.qml
@@ -6,6 +6,7 @@ import widgets 1.0
KAlgebraPage
{
+ id: page
anchors.margins: 0
Rectangle {
@@ -20,11 +21,14 @@ KAlgebraPage
Dialog {
id: dialog
- height: Math.min((4*view.height)/5, list.contentHeight)
+ height: Math.min((4*view.height)/5, list.contentHeight)+page.dp*10
SimpleListView {
id: list
- anchors.fill: parent
+ anchors {
+ fill: parent
+ margins: page.dp*4
+ }
role: "description"
model: app.functionsModel()
diff --git a/mobile/plugins/Plot3D.qml b/mobile/plugins/Plot3D.qml
index 2c795f5..61ab16a 100644
--- a/mobile/plugins/Plot3D.qml
+++ b/mobile/plugins/Plot3D.qml
@@ -23,6 +23,7 @@ import widgets 1.0
KAlgebraPage
{
+ id: page
Graph3D
{
id: view
@@ -30,11 +31,14 @@ KAlgebraPage
Dialog {
id: dialog
- height: Math.min((4*view.height)/5, list.contentHeight)
+ height: Math.min((4*view.height)/5, list.contentHeight)+page.dp*10
SimpleListView {
id: list
- anchors.fill: parent
+ anchors {
+ fill: parent
+ margins: page.dp*4
+ }
role: "description"
model: view.model
diff --git a/mobile/plugins/widgets/material/KAlgebraPage.qml b/mobile/plugins/widgets/material/KAlgebraPage.qml
index 83eb004..5abff2a 100644
--- a/mobile/plugins/widgets/material/KAlgebraPage.qml
+++ b/mobile/plugins/widgets/material/KAlgebraPage.qml
@@ -2,4 +2,5 @@ import Material 0.1
Page
{
+ property real dp: Units.dp(1)
}
diff --git a/mobile/plugins/widgets/qtcontrols/KAlgebraPage.qml b/mobile/plugins/widgets/qtcontrols/KAlgebraPage.qml
index d6b67eb..53fe127 100644
--- a/mobile/plugins/widgets/qtcontrols/KAlgebraPage.qml
+++ b/mobile/plugins/widgets/qtcontrols/KAlgebraPage.qml
@@ -2,4 +2,5 @@ import QtQuick 2.0
Item
{
+ property real dp: 1
}