44 lines
1,001 B
QML
44 lines
1,001 B
QML
|
import QtQuick 2.0
|
||
|
import Sailfish.Silica 1.0
|
||
|
|
||
|
Page {
|
||
|
|
||
|
id: aboutPage
|
||
|
|
||
|
allowedOrientations: Orientation.All
|
||
|
|
||
|
property var printer
|
||
|
|
||
|
SilicaFlickable {
|
||
|
id: flick
|
||
|
anchors.fill : parent
|
||
|
contentHeight: textArea.height + header.height
|
||
|
contentWidth : parent.width - (2.0 * Theme.paddingLarge)
|
||
|
|
||
|
PageHeader {
|
||
|
id: header
|
||
|
title: printer.attrs["printer-name"].value
|
||
|
}
|
||
|
|
||
|
TextArea {
|
||
|
id: textArea
|
||
|
|
||
|
readOnly: true
|
||
|
width: parent.width
|
||
|
anchors.top: header.bottom
|
||
|
anchors.bottom: flick.bottom
|
||
|
font.family: "courier"
|
||
|
font.pixelSize: Theme.fontSizeTiny
|
||
|
wrapMode: TextEdit.Wrap
|
||
|
text: JSON.stringify(printer.attrs, null, " ")
|
||
|
|
||
|
onPressAndHold: {
|
||
|
selectAll()
|
||
|
copy()
|
||
|
deselect()
|
||
|
notifier.notify("Copied to clipboard")
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|