equal
deleted
inserted
replaced
44 /*! |
44 /*! |
45 Constructs the settings view. |
45 Constructs the settings view. |
46 */ |
46 */ |
47 MpSettingsView::MpSettingsView() |
47 MpSettingsView::MpSettingsView() |
48 : mWindow(0), |
48 : mWindow(0), |
49 mSoftKeyBack(0), |
49 mNavigationBack(0), |
50 mAudioEffectsWidget(0) |
50 mAudioEffectsWidget(0) |
51 { |
51 { |
52 TX_LOG |
52 TX_LOG |
53 } |
53 } |
54 |
54 |
56 Destructs the settings view. |
56 Destructs the settings view. |
57 */ |
57 */ |
58 MpSettingsView::~MpSettingsView() |
58 MpSettingsView::~MpSettingsView() |
59 { |
59 { |
60 TX_ENTRY |
60 TX_ENTRY |
61 delete mSoftKeyBack; |
61 delete mNavigationBack; |
62 TX_EXIT |
62 TX_EXIT |
63 } |
63 } |
64 |
64 |
65 /*! |
65 /*! |
66 Initializes the settings view. |
66 Initializes the settings view. |
81 qApp->installTranslator( &translator ); |
81 qApp->installTranslator( &translator ); |
82 |
82 |
83 } |
83 } |
84 |
84 |
85 mWindow = mainWindow(); |
85 mWindow = mainWindow(); |
86 mSoftKeyBack = new HbAction(Hb::BackAction, this); |
86 mNavigationBack = new HbAction(Hb::BackNaviAction, this); |
87 mAudioEffectsWidget = new MpSettingsAudioEffectsWidget(this); |
87 mAudioEffectsWidget = new MpSettingsAudioEffectsWidget(this); |
88 mAudioEffectsWidget->initialize(); |
88 mAudioEffectsWidget->initialize(); |
89 setWidget( mAudioEffectsWidget ); |
89 setWidget( mAudioEffectsWidget ); |
90 |
90 |
91 connect( mSoftKeyBack, |
91 connect( mNavigationBack, |
92 SIGNAL(triggered()), |
92 SIGNAL(triggered()), |
93 this, |
93 this, |
94 SLOT(back()) ); |
94 SLOT(back()) ); |
95 |
95 |
96 connect( mSoftKeyBack, |
96 connect( mNavigationBack, |
97 SIGNAL(triggered()), |
97 SIGNAL(triggered()), |
98 mAudioEffectsWidget, |
98 mAudioEffectsWidget, |
99 SLOT(persistBalance()) ); |
99 SLOT(persistBalance()) ); |
100 TX_EXIT |
100 TX_EXIT |
101 } |
101 } |
104 Activates the settings view. |
104 Activates the settings view. |
105 */ |
105 */ |
106 void MpSettingsView::activateView() |
106 void MpSettingsView::activateView() |
107 { |
107 { |
108 TX_ENTRY |
108 TX_ENTRY |
109 setNavigationAction( mSoftKeyBack ); |
109 setNavigationAction( mNavigationBack ); |
110 TX_EXIT |
110 TX_EXIT |
111 } |
111 } |
112 |
112 |
113 /*! |
113 /*! |
114 Deactivates the settings view. |
114 Deactivates the settings view. |