2 import Qt.labs.components 1.0
3 import com.nokia.meego 1.0
5 import com.nokia.extras 1.0
7 import QtMobility.gallery 1.1
13 Component.onCompleted: console.log("TorrentPicker Running!")
14 DocumentGalleryModel {
17 rootType: DocumentGallery.File
19 filter: GalleryWildcardFilter {
24 onProgressChanged: console.log("Width has changed to: ", progress)
28 // for (var i = 0; i < count; i++)
29 // selection.append({"selected": false})
32 // TODO: Don't really need this, we can only select one file, I guess?
37 width: 200; height: 400
38 model: torrentFileModel
39 delegate: torrentFileDelegate
42 id: torrentFileDelegate
54 onClicked: { console.log("selected torrent: " + url); }