Rename Campass and Orientation to CameraCompass and CameraOrientation
authorMohammed Sameer <msameer@foolab.org>
Wed, 31 Jul 2013 17:47:56 +0000 (20:47 +0300)
committerMohammed Sameer <msameer@foolab.org>
Wed, 31 Jul 2013 17:47:56 +0000 (20:47 +0300)
qml/MainPage.qml
src/main.cpp

index ee91177..c1ca7bc 100644 (file)
@@ -128,12 +128,12 @@ CameraPage {
         dateTimeEnabled: true
     }
 
-    Orientation {
+    CameraOrientation {
         id: orientation
         active: viewfinder.camera.running || (mainView.currentIndex == 2 && Qt.application.active)
     }
 
-    Compass {
+    CameraCompass {
         id: compass
         active: viewfinder.camera.running
     }
index b6aa3d0..0ddd0fd 100644 (file)
@@ -119,8 +119,8 @@ Q_DECL_EXPORT int main(int argc, char *argv[]) {
   qmlRegisterType<DisplayState>("CameraPlus", 1, 0, "DisplayState");
   qmlRegisterType<FSMonitor>("CameraPlus", 1, 0, "FSMonitor");
   qmlRegisterType<CameraResources>("CameraPlus", 1, 0, "CameraResources");
-  qmlRegisterType<Compass>("CameraPlus", 1, 0, "Compass");
-  qmlRegisterType<Orientation>("CameraPlus", 1, 0, "Orientation");
+  qmlRegisterType<Compass>("CameraPlus", 1, 0, "CameraCompass");
+  qmlRegisterType<Orientation>("CameraPlus", 1, 0, "CameraOrientation");
   qmlRegisterType<MountProtector>("CameraPlus", 1, 0, "MountProtector");
   qmlRegisterType<TrackerStore>("CameraPlus", 1, 0, "TrackerStore");
   qmlRegisterType<FocusRectangle>("CameraPlus", 1, 0, "FocusRectangle");