You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.4 KiB
53 lines
1.4 KiB
import QtQuick 2.0
|
|
import Sailfish.Silica 1.0
|
|
import fr.uca.iut 1.0
|
|
|
|
Page {
|
|
id: taskView
|
|
|
|
property Task taskModel: Task {}
|
|
|
|
SilicaFlickable {
|
|
anchors.fill: parent
|
|
|
|
Column {
|
|
width: parent.width - 2 * Theme.paddingLarge
|
|
spacing: Theme.paddingLarge
|
|
anchors {
|
|
horizontalCenter: parent.horizontalCenter
|
|
margins: Theme.paddingLarge
|
|
}
|
|
|
|
// this is to provide some top margin, to make the view easier to look at when a banner notification happens
|
|
Item {
|
|
width: parent.width
|
|
height: 2 * Theme.paddingLarge
|
|
}
|
|
|
|
Label {
|
|
text: taskModel.title
|
|
font.pixelSize: Theme.fontSizeExtraLarge
|
|
}
|
|
|
|
Label {
|
|
text: qsTr("Description")
|
|
font.bold: true
|
|
font.pixelSize: Theme.fontSizeLarge
|
|
}
|
|
|
|
Label {
|
|
text: taskModel.description
|
|
font.pixelSize: Theme.fontSizeMedium
|
|
}
|
|
|
|
Label {
|
|
text: qsTr("Priority ") + taskModel.priority
|
|
color: taskModel.priority === 0 ? "red" :
|
|
taskModel.priority === 1 ? "orange" :
|
|
taskModel.priority === 2 ? "blue" : Theme.primaryColor
|
|
font.pixelSize: Theme.fontSizeLarge
|
|
}
|
|
}
|
|
}
|
|
}
|