~phablet-team/mediaplayer-app/remove_powerd

« back to all changes in this revision

Viewing changes to src/qml/sdk/ShareMenu.qml

Implemented support for share movie scene on share menu.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
import QtQuick 2.0
19
19
import Ubuntu.Components.ListItems 0.1 as ListItem
 
20
import SDKHelper 1.0
20
21
 
21
22
Item {
22
23
    id: sharemenu
52
53
            onClicked: {
53
54
                sharemenu.selected()
54
55
                if (service == "Facebook") {
 
56
                    _shareFile.writeShareFile(shareMenu.picturePath);
55
57
                    if (loader.status != Loader.Ready) console.log("Application launching not available on this platform");
56
58
                    else loader.item.switchToShareApplication();
57
59
                } else {
61
63
        }
62
64
    }
63
65
 
 
66
    ShareFile {
 
67
        id: _shareFile
 
68
    }
 
69
 
64
70
    Loader {
65
71
        id: loader
66
72
        source: "UbuntuApplicationWrapper.qml"