X-Git-Url: http://git.maemo.org/git/?p=qtrapids;a=blobdiff_plain;f=src%2Fqml-client%2Fqml%2FTorrentPickerPage.qml;fp=src%2Fqml-client%2Fqml%2FTorrentPickerPage.qml;h=44226af79a074c3f226bc39aebd7a0b4bc4641f7;hp=0000000000000000000000000000000000000000;hb=a4530ce6a29ea37465dd6acc9a359c6be5061e1d;hpb=fb1b5e73f9767fecad734f260b1c5397709f0f70;ds=sidebyside diff --git a/src/qml-client/qml/TorrentPickerPage.qml b/src/qml-client/qml/TorrentPickerPage.qml new file mode 100644 index 0000000..44226af --- /dev/null +++ b/src/qml-client/qml/TorrentPickerPage.qml @@ -0,0 +1,55 @@ +import QtQuick 1.1 +import Qt.labs.components 1.0 +import com.nokia.meego 1.0 +import com.meego 1.0 +import com.nokia.extras 1.0 + +import QtMobility.gallery 1.1 +import QtRapids 1.0 + +Page { + + id: torrentPickerPage + Component.onCompleted: console.log("TorrentPicker Running!") + DocumentGalleryModel { + id: torrentFileModel + + rootType: DocumentGallery.File + properties: ["url"] + filter: GalleryWildcardFilter { + property: "fileName"; + value: "*.torrent"; + } + + onProgressChanged: console.log("Width has changed to: ", progress) + +// onCountChanged: { +// selection.clear() +// for (var i = 0; i < count; i++) +// selection.append({"selected": false}) +// } + } + // TODO: Don't really need this, we can only select one file, I guess? +// ListModel { +// id: selection +// } + ListView { + width: 200; height: 400 + model: torrentFileModel + delegate: torrentFileDelegate + } + Component { + id: torrentFileDelegate + + Item { + height: 60 + width: parent.width + Text { + text: "Torrent" + } + Text { + text: url + } + } + } +} \ No newline at end of file