~phablet-team/+junk/qtmultimedia-declarative-playlist

« back to all changes in this revision

Viewing changes to examples/multimedia/video/qmlvideofx/qml/qmlvideofx/FileBrowser.qml

  • Committer: Package Import Robot
  • Author(s): Adam Conrad
  • Date: 2013-05-23 19:47:12 UTC
  • mfrom: (1.1.1) (7.1.2 saucy-proposed)
  • Revision ID: package-import@ubuntu.com-20130523194712-ng8dawnyetljbjkv
Tags: 5.0.2-2ubuntu2
Update libqt5multimedia5.symbols for qreal substitutions for armhf.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/****************************************************************************
2
2
**
3
 
** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
 
3
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
4
4
** Contact: http://www.qt-project.org/legal
5
5
**
6
6
** This file is part of the Qt Mobility Components.
52
52
    signal fileSelected(string file)
53
53
 
54
54
    function selectFile(file) {
55
 
        if (file != "")
 
55
        if (file !== "") {
56
56
            folder = loader.item.folders.folder
 
57
            fileBrowser.fileSelected(file)
 
58
        }
57
59
        loader.sourceComponent = undefined
58
 
        fileBrowser.fileSelected(file)
59
60
    }
60
61
 
61
62
    Loader {
101
102
                Rectangle {
102
103
                    id: wrapper
103
104
                    function launch() {
 
105
                        var path = "file:///" + filePath
104
106
                        if (folders.isFolder(index))
105
 
                            down(filePath);
 
107
                            down(path);
106
108
                        else
107
 
                            fileBrowser.selectFile(filePath)
 
109
                            fileBrowser.selectFile(path)
108
110
                    }
109
111
                    width: root.width
110
112
                    height: 52
160
162
                }
161
163
            }
162
164
 
163
 
            Rectangle {
164
 
                id: cancelButton
165
 
                width: 100
166
 
                height: titleBar.height - 7
167
 
                color: "black"
168
 
                anchors { bottom: parent.bottom; horizontalCenter: parent.horizontalCenter }
169
 
 
170
 
                Text {
171
 
                    anchors { fill: parent; margins: 4 }
172
 
                    text: "Cancel"
173
 
                    color: "white"
174
 
                    horizontalAlignment: Text.AlignHCenter
175
 
                    verticalAlignment: Text.AlignVCenter
176
 
                    font.pixelSize: 20
177
 
                }
178
 
 
179
 
                MouseArea {
180
 
                    anchors.fill: parent
181
 
                    onClicked: fileBrowser.selectFile("")
182
 
                }
183
 
            }
184
 
 
185
165
            ListView {
186
166
                id: view1
187
167
                anchors.top: titleBar.bottom
279
259
                Keys.onPressed: root.keyPressed(event.key)
280
260
            }
281
261
 
 
262
            Rectangle {
 
263
                id: cancelButton
 
264
                width: 100
 
265
                height: titleBar.height - 7
 
266
                color: "black"
 
267
                anchors { bottom: parent.bottom; horizontalCenter: parent.horizontalCenter }
 
268
 
 
269
                Text {
 
270
                    anchors { fill: parent; margins: 4 }
 
271
                    text: "Cancel"
 
272
                    color: "white"
 
273
                    horizontalAlignment: Text.AlignHCenter
 
274
                    verticalAlignment: Text.AlignVCenter
 
275
                    font.pixelSize: 20
 
276
                }
 
277
 
 
278
                MouseArea {
 
279
                    anchors.fill: parent
 
280
                    onClicked: fileBrowser.selectFile("")
 
281
                }
 
282
            }
 
283
 
282
284
            Keys.onPressed: {
283
285
                root.keyPressed(event.key);
284
286
                if (event.key == Qt.Key_Return || event.key == Qt.Key_Select || event.key == Qt.Key_Right) {