Merge lp:~phablet-team/camera-app/flash_fixes into lp:camera-app/staging

Proposed by Florian Boucault
Status: Merged
Approved by: Ugo Riboni
Approved revision: 619
Merged at revision: 618
Proposed branch: lp:~phablet-team/camera-app/flash_fixes
Merge into: lp:camera-app/staging
Diff against target: 35 lines (+1/-13)
2 files modified
CameraApp/advancedcamerasettings.cpp (+1/-1)
ViewFinderOverlay.qml (+0/-12)
To merge this branch: bzr merge lp:~phablet-team/camera-app/flash_fixes
Reviewer Review Type Date Requested Status
Ugo Riboni (community) Approve
Review via email: mp+279237@code.launchpad.net

Description of the change

Removed faulty workaround for flash. Was breaking video torch when focusing.
Proper fix added to qtubuntu-camera.

To post a comment you must log in.
Revision history for this message
Ugo Riboni (uriboni) wrote :

LGTM and tested ok

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'CameraApp/advancedcamerasettings.cpp'
2--- CameraApp/advancedcamerasettings.cpp 2015-11-25 13:54:58 +0000
3+++ CameraApp/advancedcamerasettings.cpp 2015-12-02 08:40:20 +0000
4@@ -338,7 +338,7 @@
5 {
6 float screenAspectRatio;
7 QScreen *screen = QGuiApplication::primaryScreen();
8- Q_ASSERT(!screen);
9+ Q_ASSERT(screen);
10 const int kScreenWidth = screen->geometry().width();
11 const int kScreenHeight = screen->geometry().height();
12 Q_ASSERT(kScreenWidth > 0 && kScreenHeight > 0);
13
14=== modified file 'ViewFinderOverlay.qml'
15--- ViewFinderOverlay.qml 2015-11-25 17:47:00 +0000
16+++ ViewFinderOverlay.qml 2015-12-02 08:40:20 +0000
17@@ -256,18 +256,6 @@
18 }
19 }
20
21- Connections {
22- target: camera.imageCapture
23- onReadyChanged: {
24- if (camera.imageCapture.ready) {
25- // FIXME: this is a workaround: simply setting
26- // camera.flash.mode to the settings value does not have any effect
27- camera.flash.mode = Camera.FlashOff;
28- camera.flash.mode = settings.flashMode;
29- }
30- }
31- }
32-
33 function optionsOverlayClose() {
34 print("optionsOverlayClose")
35 if (optionsOverlayLoader.item.valueSelectorOpened) {

Subscribers

People subscribed via source and target branches

to all changes: