equal
deleted
inserted
replaced
30 mModel(NULL), |
30 mModel(NULL), |
31 mDataManager(NULL) |
31 mDataManager(NULL) |
32 { |
32 { |
33 // Create a standard model for the view list |
33 // Create a standard model for the view list |
34 mModel = new QStandardItemModel( this ); |
34 mModel = new QStandardItemModel( this ); |
35 // create data manager to manage data in the model |
35 if(mModel) |
36 mDataManager = LocationPickerDataManager::getInstance(); |
36 { |
37 mDataManager->populateModel( *mModel, ELocationPickerCollectionListContent, mOrientation ); |
37 // create data manager to manage data in the model |
|
38 mDataManager = LocationPickerDataManager::getInstance(); |
|
39 bool populated = mDataManager->populateModel( *mModel, ELocationPickerCollectionListContent, mOrientation ); |
|
40 if(!populated) |
|
41 { |
|
42 qFatal("Error creating collection"); |
|
43 } |
|
44 } |
38 } |
45 } |
39 |
46 |
40 // ---------------------------------------------------------------------- |
47 // ---------------------------------------------------------------------- |
41 // LocationPickerCollectionListContent::~LocationPickerCollectionListContent() |
48 // LocationPickerCollectionListContent::~LocationPickerCollectionListContent() |
42 // ---------------------------------------------------------------------- |
49 // ---------------------------------------------------------------------- |