[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kalgebra] mobile: Polishing on kalgebramobile
From: Aleix Pol <aleixpol () kde ! org>
Date: 2015-10-01 1:34:40
Message-ID: E1ZhSlc-0006R3-A3 () scm ! kde ! org
[Download RAW message or body]
Git commit 50ece7bb184ba97551ae7acd020194cc5530037f by Aleix Pol.
Committed on 01/10/2015 at 01:30.
Pushed by apol into branch 'master'.
Polishing on kalgebramobile
M +1 -0 mobile/plugins/Tables.qml
M +27 -31 mobile/plugins/widgets/kde/KAlgebraMobile.qml
M +1 -1 mobile/pluginsmodel.cpp
http://commits.kde.org/kalgebra/50ece7bb184ba97551ae7acd020194cc5530037f
diff --git a/mobile/plugins/Tables.qml b/mobile/plugins/Tables.qml
index 9ff960d..56aa4d8 100644
--- a/mobile/plugins/Tables.qml
+++ b/mobile/plugins/Tables.qml
@@ -77,6 +77,7 @@ KAlgebraPage
topMargin: 5
}
currentIndex: -1
+ clip: true
model: resultsModel
role: "element"
diff --git a/mobile/plugins/widgets/kde/KAlgebraMobile.qml \
b/mobile/plugins/widgets/kde/KAlgebraMobile.qml index 915afa5..63d0d96 100644
--- a/mobile/plugins/widgets/kde/KAlgebraMobile.qml
+++ b/mobile/plugins/widgets/kde/KAlgebraMobile.qml
@@ -35,7 +35,7 @@ Window {
id: init
anchors.margins: 10
- Flow {
+ ListView {
anchors.fill: parent
spacing: 5
@@ -46,38 +46,34 @@ Window {
}
}
- Repeater {
- delegate:
- ListItem {
- width: 200
- height: 100
- enabled: true
- Column {
- anchors.fill: parent
- spacing: 10
-
- QIconItem {
- id: icon
- width: 50
- height: 50
- anchors.horizontalCenter: parent.horizontalCenter
- icon: decoration
- }
-
- Text {
- id: description
- anchors.left: parent.left
- anchors.right: parent.right
- horizontalAlignment: Text.AlignHCenter
- text: i18n("%1<br/>\n<em>%2</em>", title, subtitle)
- }
+ delegate: ListItem {
+ height: 100
+ enabled: true
+ Column {
+ anchors.fill: parent
+ spacing: 10
+
+ QIconItem {
+ id: icon
+ width: 50
+ height: 50
+ anchors.horizontalCenter: parent.horizontalCenter
+ icon: decoration
+ }
+
+ Text {
+ id: description
+ anchors.left: parent.left
+ anchors.right: parent.right
+ horizontalAlignment: Text.AlignHCenter
+ text: i18n("%1<br/>\n<em>%2</em>", title, subtitle)
}
-
- onClicked: goToPage(model.path, decoration)
}
-
- model: PluginsModel { id: plugins }
- }
+
+ onClicked: goToPage(model.path, decoration)
+ }
+
+ model: PluginsModel { id: plugins }
}
tools: ToolBarLayout {}
diff --git a/mobile/pluginsmodel.cpp b/mobile/pluginsmodel.cpp
index 49424c7..6088901 100644
--- a/mobile/pluginsmodel.cpp
+++ b/mobile/pluginsmodel.cpp
@@ -69,7 +69,7 @@ PluginsModel::PluginsModel(QObject* parent) \
:QStandardItemModel(parent) item->setData(scriptPath, PathRole);
item->setData(priority, PriorityRole);
item->setData(cg.value("Name", QString()), TitleRole);
- item->setData(cg.value("Comment", QString()), SubtitleRole);
+ item->setData(cg.value("Comment", QStringLiteral("")), SubtitleRole);
item->setData(cg.value("Icon", QString()), Qt::DecorationRole);
items += item;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic