diff -r bbb98528c666 -r 3738fe97f027 videoplayback/hbvideoplaybackview/controlsrc/mpxvideoplaybackstatuspanecontrol.cpp --- a/videoplayback/hbvideoplaybackview/controlsrc/mpxvideoplaybackstatuspanecontrol.cpp Thu Apr 01 23:22:15 2010 +0300 +++ b/videoplayback/hbvideoplaybackview/controlsrc/mpxvideoplaybackstatuspanecontrol.cpp Thu Apr 01 23:32:44 2010 +0300 @@ -15,7 +15,7 @@ * */ -// Version : %version: 12 % +// Version : %version: ou1cpsw#13 % #include @@ -49,13 +49,16 @@ { MPX_ENTER_EXIT(_L("QMPXVideoPlaybackStatusPaneControl::QMPXVideoPlaybackStatusPaneControl()")); - mActionBack = new HbAction( Hb::BackAction ); + mActionBack = new HbAction( Hb::BackNaviAction ); // // Press "back" key means going back to previous view if it's avaiable // connect( mActionBack, SIGNAL( triggered() ), mController->view(), SLOT( closePlaybackView() ) ); - hbInstance->allMainWindows()[0]->addSoftKeyAction( Hb::SecondarySoftKey , mActionBack ); + + HbMainWindow *mainWnd = hbInstance->allMainWindows().value(0); + HbView *currentView = mainWnd->currentView(); + currentView->setNavigationAction(mActionBack); connect( mController->view()->menu(), SIGNAL( aboutToShow() ), this, SLOT( handleAboutToShow() ) ); connect( mController->view()->menu(), SIGNAL( aboutToHide() ), this, SLOT( handleAboutToHide() ) ); @@ -74,7 +77,10 @@ disconnect( mActionBack, SIGNAL( triggered() ), mController->view(), SLOT( closePlaybackView() ) ); disconnect( mActionBack, SIGNAL( triggered() ), this, SLOT( openFullScreenView() ) ); - hbInstance->allMainWindows()[0]->removeSoftKeyAction( Hb::SecondarySoftKey , mActionBack ); + + HbMainWindow *mainWnd = hbInstance->allMainWindows().value(0); + HbView *currentView = mainWnd->currentView(); + currentView->setNavigationAction(0); disconnect( mController->view()->menu(), SIGNAL( aboutToShow() ), this, SLOT( handleAboutToShow() ) ); disconnect( mController->view()->menu(), SIGNAL( aboutToHide() ), this, SLOT( handleAboutToHide() ) );