Ubuntu Pastebin

Paste from cimi at Tue, 8 Mar 2016 15:06:33 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
    Item {
        id: socialActionsModel
        property var model: []
        property bool hasActions: {
            var actions = components["socialActions"];
            var hasActionsFlag = (actions != undefined);

            model = []
            if (hasActionsFlag) {
                model.push( {"id":"text", "icon":"image://theme/ok" } );
            }
            return hasActionsFlag
        }
    }
Download as text