[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kalgebra] mobile/plugins: Polish on the About page
From: Aleix Pol <aleixpol () kde ! org>
Date: 2015-10-01 1:34:39
Message-ID: E1ZhSlb-0006R3-Fu () scm ! kde ! org
[Download RAW message or body]
Git commit 91526cb1807c7f89067fb3d8f38ca4643f65e4e3 by Aleix Pol.
Committed on 01/10/2015 at 01:27.
Pushed by apol into branch 'master'.
Polish on the About page
M +18 -12 mobile/plugins/About.qml
http://commits.kde.org/kalgebra/91526cb1807c7f89067fb3d8f38ca4643f65e4e3
diff --git a/mobile/plugins/About.qml b/mobile/plugins/About.qml
index 3084d90..03c0835 100644
--- a/mobile/plugins/About.qml
+++ b/mobile/plugins/About.qml
@@ -1,17 +1,21 @@
import QtQuick 2.0
+import QtQuick.Layouts 1.0
import org.kde.analitza 1.0
import widgets 1.0
KAlgebraPage
{
- Column {
+ ColumnLayout {
anchors.margins: 20
anchors.fill: parent
spacing: 20
Image {
+ id: icon
source: "qrc:/kalgebra.svgz"
- anchors.horizontalCenter: parent.horizontalCenter
+ Layout.fillWidth: true
+ fillMode: Image.PreserveAspectFit
+
MouseArea {
anchors.fill: parent
onClicked: Qt.openUrlExternally("http://edu.kde.org/applications/mathematics/kalgebra")
@@ -19,22 +23,20 @@ KAlgebraPage
}
Label {
- anchors.left: parent.left
- anchors.right: parent.right
+ Layout.fillWidth: true
wrapMode: Text.WordWrap
- horizontalAlignment: Text.AlignHCenter
+ horizontalAlignment: Text.AlignJustify
text: ("KAlgebra is brought to you by the lovely community of <a href='http://kde.org'>KDE</a> "+
"and <a href='http://edu.kde.org/'>KDE Edu</a> from a Free Software envionment.")
onLinkActivated: Qt.openUrlExternally(link)
}
Label {
- anchors.left: parent.left
- anchors.right: parent.right
+ Layout.fillWidth: true
wrapMode: Text.WordWrap
- horizontalAlignment: Text.AlignHCenter
+ horizontalAlignment: Text.AlignJustify
text: ("In case you want to learn more about KAlgebra, you can find more information "+
"<a href='http://edu.kde.org/applications/mathematics/kalgebra/'>in the official site</a> and in "+
"the <a href='http://userbase.kde.org/KAlgebra'>users wiki</a>.<br/>"+
@@ -43,23 +45,27 @@ KAlgebraPage
}
Label {
- anchors.left: parent.left
- anchors.right: parent.right
+ Layout.fillWidth: true
wrapMode: Text.WordWrap
- horizontalAlignment: Text.AlignHCenter
+ horizontalAlignment: Text.AlignJustify
text: "Aleix Pol Gonzalez <<a href='mailto:aleixpol@kde.org'>aleixpol@kde.org</a>>"
onLinkActivated: Qt.openUrlExternally(link)
}
Image {
source: "qrc:/kde-edu-logo.png"
- anchors.horizontalCenter: parent.horizontalCenter
+ Layout.fillWidth: true
+ fillMode: Image.PreserveAspectFit
+ Layout.maximumHeight: icon.height
MouseArea {
anchors.fill: parent
onClicked: Qt.openUrlExternally("http://edu.kde.org")
}
}
+ Item {
+ Layout.fillHeight: true
+ }
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic