Paste from Cover?

import QtQuick 2.0
import Sailfish.Silica 1.0

CoverBackground {
    id: cover

    Label {
        id: copyThisText
        text: "My slap hap app"
        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: {
                Clipboard.text = copyThisText.text
                console.log( "Cover Action:" + copyThisText.text)
                window.activate()
            }
        }
    }
}
1 Like