45 lines
963 B
QML
45 lines
963 B
QML
import QtQuick 2.0
|
|
import Sailfish.Silica 1.0
|
|
|
|
Page {
|
|
id: page
|
|
|
|
property var note
|
|
|
|
property int id
|
|
property string etag
|
|
property date modified
|
|
property string title
|
|
property string category
|
|
property bool favorite
|
|
property string content
|
|
property bool error
|
|
property string errorMessage
|
|
|
|
|
|
// The effective value will be restricted by ApplicationWindow.allowedOrientations
|
|
allowedOrientations: Orientation.All
|
|
|
|
SilicaFlickable {
|
|
id: flickable
|
|
anchors.fill: parent
|
|
contentHeight: column.height
|
|
|
|
Column {
|
|
id: column
|
|
//x: Theme.horizontalPageMargin
|
|
width: parent.width// - 2*x
|
|
|
|
PageHeader {
|
|
title: note.title
|
|
}
|
|
|
|
TextArea {
|
|
width: parent.width
|
|
readOnly: true
|
|
text: note.content
|
|
}
|
|
}
|
|
VerticalScrollDecorator {}
|
|
}
|
|
}
|