2021-07-11 15:27:03 +03:00
|
|
|
import QtQuick 2.6
|
2020-01-26 15:27:56 +03:00
|
|
|
import Sailfish.Silica 1.0
|
2022-01-04 21:29:03 +03:00
|
|
|
import "utils.js" as Utils
|
2020-01-26 15:27:56 +03:00
|
|
|
|
|
|
|
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
|
2022-01-04 21:29:03 +03:00
|
|
|
title: Utils.unknownForEmptyString(printer.attrs["printer-name"].value)
|
2020-01-26 15:27:56 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
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()
|
2020-08-09 20:25:54 +03:00
|
|
|
notifier.notify(qsTr("Copied to clipboard"))
|
2020-01-26 15:27:56 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|