~ubuntu-branches/ubuntu/utopic/camera-app/utopic-proposed

« back to all changes in this revision

Viewing changes to ViewFinderOverlay.qml

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, CI bot, Florian Boucault
  • Date: 2014-07-30 19:30:55 UTC
  • mfrom: (1.1.35)
  • Revision ID: package-import@ubuntu.com-20140730193055-m5pjdy89igzd0xgq
Tags: 3.0.0+14.10.20140730-0ubuntu1
[ CI bot ]
* Resync trunk

[ Florian Boucault ]
* Save state of viewfinder: preserve back/front mode, picture/video
  mode, flash, HDR and location settings. (LP: #1344274)
* Photo roll: Added feedback upon pressed. Use icons from theme
  instead of custom PNGs .
* Exit the options overlay upon tapping anywhere outside the buttons.
  It used to work relying on the behaviour of the toolkit's Panel but
  it recently changed under our feet (rev 1000.119.19 from lp:ubuntu-
  ui-toolkit). (LP: #1348643)
* Make sure all files are visible in QtCreator. No need for
  qmlproject.
* Photo roll: elide header title. (LP: #1348645)
* Sharing: make content type dynamic. (LP: #1337587)
* Save videos in a subfolder of ~/Videos (LP: #1337594)

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
import QtQuick 2.2
18
18
import QtQuick.Window 2.0
19
 
import Ubuntu.Components 1.0
 
19
import Ubuntu.Components 1.1
20
20
import QtMultimedia 5.0
21
21
import QtPositioning 5.2
22
22
import CameraApp 0.1
41
41
        property bool gpsEnabled: false
42
42
        property bool hdrEnabled: false
43
43
        property int videoFlashMode: Camera.FlashOff
 
44
 
 
45
        StateSaver.properties: "flashMode, gpsEnabled, hdrEnabled, videoFlashMode"
44
46
    }
45
47
 
46
48
    Binding {
75
77
        }
76
78
    }
77
79
 
 
80
    MouseArea {
 
81
        id: bottomEdgeClose
 
82
        anchors.fill: parent
 
83
        onClicked: bottomEdge.close()
 
84
    }
 
85
 
78
86
    Panel {
79
87
        id: bottomEdge
80
88
        anchors {
413
421
                bottomMargin: units.gu(6)
414
422
            }
415
423
 
 
424
            enabled: !camera.switchInProgress
416
425
            iconName: "camera-flip"
417
426
            onClicked: controls.switchCamera()
418
427
        }