phonebookui/pbkcommonui/src/cnthistoryview.cpp
changeset 71 7cc7d74059f9
parent 65 ae724a111993
equal deleted inserted replaced
65:ae724a111993 71:7cc7d74059f9
   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 
   256     if ( createRequest ) {
   256     if ( createRequest ) {
   257         XQApplicationManager appMng;
   257         XQApplicationManager appMng;
   258     
   258     
   259         delete mRequest;
   259         delete mRequest;
   260         mRequest = NULL;
   260         mRequest = NULL;
   261         mRequest = appMng.create(interface, operation, false); // not embedded
   261         mRequest = appMng.create(interface, operation, true); // embedded
   262         
   262         
   263         if ( mRequest ) {
   263         if ( mRequest ) {
   264             mRequest->setArguments(args); 
   264             mRequest->setArguments(args); 
   265             mRequest->send();
   265             mRequest->send();
   266         }
   266         }