harbour-nextcloudnotes/qml/pages/NotePage.qml

46 lines
963 B
QML
Raw Normal View History

2018-10-16 18:50:58 +03:00
import QtQuick 2.0
import Sailfish.Silica 1.0
Page {
id: page
property var note
2018-10-16 18:50:58 +03:00
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
2018-10-16 18:50:58 +03:00
}
TextArea {
width: parent.width
readOnly: true
text: note.content
2018-10-16 18:50:58 +03:00
}
}
VerticalScrollDecorator {}
}
}