150 this, SLOT(updateScrollingPosition())); |
150 this, SLOT(updateScrollingPosition())); |
151 connect(mHistoryModel, SIGNAL(rowsRemoved(const QModelIndex &, int, int)), |
151 connect(mHistoryModel, SIGNAL(rowsRemoved(const QModelIndex &, int, int)), |
152 this, SLOT(showClearHistoryMenu())); |
152 this, SLOT(showClearHistoryMenu())); |
153 connect(mHistoryModel, SIGNAL(layoutChanged()), |
153 connect(mHistoryModel, SIGNAL(layoutChanged()), |
154 this, SLOT(updateScrollingPosition())); |
154 this, SLOT(updateScrollingPosition())); |
|
155 connect(mHistoryModel, SIGNAL(modelReset()), |
|
156 this, SLOT(updateScrollingPosition())); |
|
157 connect(mHistoryModel, SIGNAL(modelReset()), |
|
158 this, SLOT(showClearHistoryMenu())); |
155 |
159 |
156 // Connect the menu options to respective slots |
160 // Connect the menu options to respective slots |
157 mClearHistory = static_cast<HbAction*>(docLoader()->findObject("cnt:clearhistory")); |
161 mClearHistory = static_cast<HbAction*>(docLoader()->findObject("cnt:clearhistory")); |
158 mClearHistory->setParent(mView); |
162 mClearHistory->setParent(mView); |
159 connect(mClearHistory, SIGNAL(triggered()), this, SLOT(clearHistory())); |
163 connect(mClearHistory, SIGNAL(triggered()), this, SLOT(clearHistory())); |
160 showClearHistoryMenu(); |
164 showClearHistoryMenu(); |
161 |
|
162 HbMainWindow* mainWindow = mView->mainWindow(); |
|
163 connect(mainWindow, SIGNAL(orientationChanged(Qt::Orientation)), |
|
164 this, SLOT(updateScrollingPosition())); |
|
165 |
165 |
166 connect(cm, SIGNAL(contactsRemoved(const QList<QContactLocalId>&)), |
166 connect(cm, SIGNAL(contactsRemoved(const QList<QContactLocalId>&)), |
167 this, SLOT(contactDeletedFromOtherSource(const QList<QContactLocalId>&))); |
167 this, SLOT(contactDeletedFromOtherSource(const QList<QContactLocalId>&))); |
168 } |
168 } |
169 |
169 |