// -*- qml -*-
import QtQuick 1.1
import com.nokia.meego 1.1
+import com.nokia.extras 1.1
import QtCamera 1.0
import CameraPlus 1.0
}
}
+ function showError(msg) {
+ error.text = msg;
+ error.show();
+ }
+
+ InfoBanner {
+ id: error
+ }
+
Settings {
id: settings
}
target: platformWindow
onActiveChanged: {
if (platformWindow.active) {
- cam.start();
+ if (!cam.start()) {
+ showError("Camera failed to start. Please restart the camera.");
+ }
}
else {
// This is a noop if camera is not idle so calling it will not hurt