47 , mActionBack( NULL ) |
47 , mActionBack( NULL ) |
48 , mFrameItem( NULL ) |
48 , mFrameItem( NULL ) |
49 { |
49 { |
50 MPX_ENTER_EXIT(_L("QMPXVideoPlaybackStatusPaneControl::QMPXVideoPlaybackStatusPaneControl()")); |
50 MPX_ENTER_EXIT(_L("QMPXVideoPlaybackStatusPaneControl::QMPXVideoPlaybackStatusPaneControl()")); |
51 |
51 |
52 mActionBack = new HbAction( Hb::BackAction ); |
52 mActionBack = new HbAction( Hb::BackNaviAction ); |
53 |
53 |
54 // |
54 // |
55 // Press "back" key means going back to previous view if it's avaiable |
55 // Press "back" key means going back to previous view if it's avaiable |
56 // |
56 // |
57 connect( mActionBack, SIGNAL( triggered() ), mController->view(), SLOT( closePlaybackView() ) ); |
57 connect( mActionBack, SIGNAL( triggered() ), mController->view(), SLOT( closePlaybackView() ) ); |
58 hbInstance->allMainWindows()[0]->addSoftKeyAction( Hb::SecondarySoftKey , mActionBack ); |
58 |
|
59 HbMainWindow *mainWnd = hbInstance->allMainWindows().value(0); |
|
60 HbView *currentView = mainWnd->currentView(); |
|
61 currentView->setNavigationAction(mActionBack); |
59 |
62 |
60 connect( mController->view()->menu(), SIGNAL( aboutToShow() ), this, SLOT( handleAboutToShow() ) ); |
63 connect( mController->view()->menu(), SIGNAL( aboutToShow() ), this, SLOT( handleAboutToShow() ) ); |
61 connect( mController->view()->menu(), SIGNAL( aboutToHide() ), this, SLOT( handleAboutToHide() ) ); |
64 connect( mController->view()->menu(), SIGNAL( aboutToHide() ), this, SLOT( handleAboutToHide() ) ); |
62 |
65 |
63 QGraphicsWidget *widget1 = mController->layoutLoader()->findWidget( QString( "title" ) ); |
66 QGraphicsWidget *widget1 = mController->layoutLoader()->findWidget( QString( "title" ) ); |
72 { |
75 { |
73 MPX_DEBUG(_L("QMPXVideoPlaybackStatusPaneControl::QMPXVideoPlaybackStatusPaneControl")); |
76 MPX_DEBUG(_L("QMPXVideoPlaybackStatusPaneControl::QMPXVideoPlaybackStatusPaneControl")); |
74 |
77 |
75 disconnect( mActionBack, SIGNAL( triggered() ), mController->view(), SLOT( closePlaybackView() ) ); |
78 disconnect( mActionBack, SIGNAL( triggered() ), mController->view(), SLOT( closePlaybackView() ) ); |
76 disconnect( mActionBack, SIGNAL( triggered() ), this, SLOT( openFullScreenView() ) ); |
79 disconnect( mActionBack, SIGNAL( triggered() ), this, SLOT( openFullScreenView() ) ); |
77 hbInstance->allMainWindows()[0]->removeSoftKeyAction( Hb::SecondarySoftKey , mActionBack ); |
80 |
|
81 HbMainWindow *mainWnd = hbInstance->allMainWindows().value(0); |
|
82 HbView *currentView = mainWnd->currentView(); |
|
83 currentView->setNavigationAction(0); |
78 |
84 |
79 disconnect( mController->view()->menu(), SIGNAL( aboutToShow() ), this, SLOT( handleAboutToShow() ) ); |
85 disconnect( mController->view()->menu(), SIGNAL( aboutToShow() ), this, SLOT( handleAboutToShow() ) ); |
80 disconnect( mController->view()->menu(), SIGNAL( aboutToHide() ), this, SLOT( handleAboutToHide() ) ); |
86 disconnect( mController->view()->menu(), SIGNAL( aboutToHide() ), this, SLOT( handleAboutToHide() ) ); |
81 |
87 |
82 mController->view()->menu()->close(); |
88 mController->view()->menu()->close(); |