equal
deleted
inserted
replaced
59 { |
59 { |
60 HbMainWindow *window = hbInstance->allMainWindows().first(); |
60 HbMainWindow *window = hbInstance->allMainWindows().first(); |
61 |
61 |
62 mAgendaUtil = mAppControllerIf.agendaUtil(); |
62 mAgendaUtil = mAppControllerIf.agendaUtil(); |
63 |
63 |
64 connect( |
|
65 mAgendaUtil, SIGNAL(instanceViewCreationCompleted(int)), |
|
66 this,SLOT(handleInstanceViewCreationCompleted(int))); |
|
67 |
|
68 // Check the Application Startup reason from Activity Manager |
64 // Check the Application Startup reason from Activity Manager |
69 int activityReason = qobject_cast<HbApplication*>(qApp)->activateReason(); |
65 int activityReason = qobject_cast<HbApplication*>(qApp)->activateReason(); |
70 |
66 |
71 if (Hb::ActivationReasonActivity == activityReason) // Check if application is started |
67 if (Hb::ActivationReasonActivity == activityReason) // Check if application is started |
72 // from an application |
68 // from an application |
94 { |
90 { |
95 // Load the main view at the start up. |
91 // Load the main view at the start up. |
96 loadNotesMainView(); |
92 loadNotesMainView(); |
97 } |
93 } |
98 |
94 |
|
95 connect( |
|
96 mAgendaUtil, SIGNAL(instanceViewCreationCompleted(int)), |
|
97 this,SLOT(handleInstanceViewCreationCompleted(int))); |
|
98 |
99 // Delay loading of other views till main view is loaded. |
99 // Delay loading of other views till main view is loaded. |
100 connect( |
100 connect( |
101 window, SIGNAL(viewReady()), |
101 window, SIGNAL(viewReady()), |
102 this, SLOT(loadOtherViews())); |
102 this, SLOT(loadOtherViews())); |
103 } |
103 } |
401 // Populate collections view. |
401 // Populate collections view. |
402 mCollectionView->populateListView(); |
402 mCollectionView->populateListView(); |
403 |
403 |
404 // Update the title for to-do view. |
404 // Update the title for to-do view. |
405 mTodoView->updateTitle(); |
405 mTodoView->updateTitle(); |
|
406 |
|
407 // Update the plain notes view. |
|
408 mNoteView->updateNoteView(); |
|
409 |
|
410 // Update the favorites view. |
|
411 mFavoriteView->updateFavoriteView(); |
406 } |
412 } |
407 // End of file --Don't remove this. |
413 // End of file --Don't remove this. |