Show/hide UI elements for setting resolution and aspect ratio
[harmattan/cameraplus] / qml / VideoSettings.qml
index 7df57e0..99a0c62 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 import QtCamera 1.0
 
 Flickable {
+    property Camera camera: null
+    id: flick
+
     contentHeight: col.height
     anchors.fill: parent
     anchors.margins: 10
@@ -39,6 +42,7 @@ Flickable {
         }
 
         VideoResolutionSettings {
+            camera: flick.camera
             width: parent.width
         }