locationpickerservice/src/locationpickerappwindow.cpp
changeset 30 96df3ab41000
parent 20 cd10d5b85554
child 31 8db05346071b
--- a/locationpickerservice/src/locationpickerappwindow.cpp	Fri Jun 11 13:33:47 2010 +0300
+++ b/locationpickerservice/src/locationpickerappwindow.cpp	Wed Jun 23 18:07:15 2010 +0300
@@ -80,11 +80,11 @@
         mLocationPickerLandscapeView = qobject_cast<LocationPickerLandscapeView*>(locationPickerWidget);
         mLocationPickerContent->populateModel(Qt::Horizontal);
         //initialize widgets and connect to respective signals 
-        mLocationPickerLandscapeView->init(Qt::Horizontal, mLocationPickerContent->getStandardGridModel());
+        mLocationPickerLandscapeView->init(Qt::Horizontal, mLocationPickerContent->getStandardModel());
         connectLandscapeSlots();
         addView(mLocationPickerLandscapeView);
         //connect to orientationChanged signal
-        connect(this, SIGNAL(orientationChanged(Qt::Orientation)),this, SLOT(changeOrientation(Qt::Orientation)));
+   	    connect(this, SIGNAL(orientationChanged(Qt::Orientation)),this, SLOT(changeOrientation(Qt::Orientation)));
         //launch the view in current orientation
         changeOrientation(this->orientation());
     }
@@ -147,7 +147,6 @@
     //set LocationPickerSearchview as current view
     setCurrentView(mLocationPickerSearchView);
     mviewType = ELocationPickerSearchView;
-
 }
 
 // ----------------------------------------------------------------------------
@@ -160,7 +159,7 @@
     if(this->orientation() == Qt::Horizontal)
     {
         mLocationPickerLandscapeView->setViewType( ELocationPickerContent );
-        mLocationPickerLandscapeView->manageGridView();
+        mLocationPickerLandscapeView->manageHgWidget();
         setCurrentView(mLocationPickerLandscapeView);
     }
     else
@@ -216,7 +215,7 @@
          //load landscape for all content except collectionlistcontent
     	 if(mLocationPickerPotraitView->getViewType() != ELocationPickerCollectionListContent)
     	 {
-             mLocationPickerLandscapeView->manageGridView();
+             mLocationPickerLandscapeView->manageHgWidget();
     		 setCurrentView(mLocationPickerLandscapeView);
 		 }
 	 }
@@ -289,7 +288,7 @@
 {
     //all list after collection list in horizontal orientation
     mLocationPickerLandscapeView->setViewType( ELocationPickerContent );
-    mLocationPickerLandscapeView->manageGridView();
+    mLocationPickerLandscapeView->manageHgWidget();
     setCurrentView(mLocationPickerLandscapeView);
 }