import QtQuick 2.0
import Sailfish.Silica 1.0
CoverBackground {
Label {
id: pasteAppText
width: parent.width / 1.1
wrapMode: Label.WordWrap
horizontalAlignment: Label.AlignHCenter
x: Theme.horizontalPageMargin / 2
}
CoverActionList {
id: coverAction
CoverAction {
iconSource: "image://theme/icon-l-clipboard"
onTriggered: {
pasteAppText.text = Clipboard.text
console.log( "Cover Action:" + Clipboard.text )
}
}
}
}
FirstPage.qml
i used TextField for this purpose;
import QtQuick 2.0
import Sailfish.Silica 1.0
Page {
id: page
allowedOrientations: Orientation.All
SilicaFlickable {
anchors.fill: parent
contentHeight: column.height
Column {
id: column
width: page.width
spacing: Theme.paddingLarge
PageHeader {
title: "Cover text"
}
Label {
id: info
wrapMode: Label.WordWrap
width: parent.width / 1.1
x: Theme.horizontalPageMargin
horizontalAlignment: Label.AlignLeft
text: "Place your text copied from the app's cover into the box below."
}
TextField {
width: 400
color: Theme.secondaryHighlightColor
font.pixelSize: Theme.fontSizeSmall
placeholderText: "Paste your text here. . ."
}
}
}
}