locationpickerservice/src/locationpickerdocumentloader.cpp
changeset 31 8db05346071b
parent 20 cd10d5b85554
equal deleted inserted replaced
30:96df3ab41000 31:8db05346071b
    14 * Description: locationpickerdocumentloader implementation
    14 * Description: locationpickerdocumentloader implementation
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 #include "locationpickerdocumentloader.h"
    18 #include "locationpickerdocumentloader.h"
    19 #include "locationpickerpotraitview.h"
    19 #include "locationpickerview.h"
    20 #include "locationpickersearchview.h"
    20 #include "locationpickersearchview.h"
    21 #include "locationpickerlandscapeview.h"
       
    22 
    21 
    23 // ---------------------------------------------------------------------------
    22 // ---------------------------------------------------------------------------
    24 // LocationPickerDocumentLoader::LocationPickerDocumentLoader()
    23 // LocationPickerDocumentLoader::LocationPickerDocumentLoader()
    25 // ---------------------------------------------------------------------------
    24 // ---------------------------------------------------------------------------
    26 //
    25 //
    40 // LocationPickerDocumentLoader::createObject
    39 // LocationPickerDocumentLoader::createObject
    41 // ---------------------------------------------------------------------------
    40 // ---------------------------------------------------------------------------
    42 //
    41 //
    43 QObject *LocationPickerDocumentLoader::createObject( const QString& type, const QString &name )
    42 QObject *LocationPickerDocumentLoader::createObject( const QString& type, const QString &name )
    44 {   
    43 {   
    45     //for locationpickerpotraitview
    44     //for locationpickerview
    46     if ( name == LocationPickerPotraitView::staticMetaObject.className() )
    45     if ( name == LocationPickerView::staticMetaObject.className() )
    47     {
    46     {
    48         QObject *object = new LocationPickerPotraitView(this);
    47         QObject *object = new LocationPickerView(this);
    49         object->setObjectName( name );
       
    50         return object;
       
    51     }
       
    52     //for locationpickerlandscapeview
       
    53     if ( name == LocationPickerLandscapeView::staticMetaObject.className() )
       
    54     {
       
    55         QObject *object = new LocationPickerLandscapeView(this);
       
    56         object->setObjectName( name );
    48         object->setObjectName( name );
    57         return object;
    49         return object;
    58     }
    50     }
    59     //for locationpickersearchview
    51     //for locationpickersearchview
    60     if ( name == LocationPickerSearchView::staticMetaObject.className() )
    52     if ( name == LocationPickerSearchView::staticMetaObject.className() )