equal
deleted
inserted
replaced
26 #include "univiewerutils.h" |
26 #include "univiewerutils.h" |
27 #include "unidatamodelplugininterface.h" |
27 #include "unidatamodelplugininterface.h" |
28 |
28 |
29 // LOCAL CONSTANTS |
29 // LOCAL CONSTANTS |
30 #define LOC_OPEN hbTrId("txt_common_menu_open") |
30 #define LOC_OPEN hbTrId("txt_common_menu_open") |
31 #define LOC_SAVE hbTrId("txt_common_menu_save") |
31 |
32 |
32 |
33 static const char VIDEO_MIMETYPE[] = "video"; |
33 static const char VIDEO_MIMETYPE[] = "video"; |
34 static const char AUDIO_ICON[] = "qtg_mono_audio"; |
34 static const char AUDIO_ICON[] = "qtg_mono_audio"; |
35 static const char VIDEO_ICON[] = "qtg_mono_video"; |
35 static const char VIDEO_ICON[] = "qtg_mono_video"; |
36 static const char CORRUPTED_AUDIO_ICON[] = "qtg_mono_corrupted"; |
36 static const char CORRUPTED_AUDIO_ICON[] = "qtg_mono_corrupted"; |
136 |
136 |
137 // Display context sensitive menu. |
137 // Display context sensitive menu. |
138 HbMenu* menu = new HbMenu; |
138 HbMenu* menu = new HbMenu; |
139 menu->setAttribute(Qt::WA_DeleteOnClose); |
139 menu->setAttribute(Qt::WA_DeleteOnClose); |
140 menu->addAction(LOC_OPEN, this, SLOT(handleOpen())); |
140 menu->addAction(LOC_OPEN, this, SLOT(handleOpen())); |
141 menu->addAction(LOC_SAVE, this, SLOT(handleSave())); |
|
142 menu->setPreferredPos(position); |
141 menu->setPreferredPos(position); |
143 menu->show(); |
142 menu->show(); |
144 } |
143 } |
145 |
144 |
146 //---------------------------------------------------------------------------- |
145 //---------------------------------------------------------------------------- |
158 |
157 |
159 //fire timer to regrab gesture after some delay. |
158 //fire timer to regrab gesture after some delay. |
160 QTimer::singleShot(300,this,SLOT(regrabGesture())); |
159 QTimer::singleShot(300,this,SLOT(regrabGesture())); |
161 } |
160 } |
162 |
161 |
163 //---------------------------------------------------------------------------- |
|
164 // UniViewerAudioWidget::handleSave |
|
165 // @see header file |
|
166 //---------------------------------------------------------------------------- |
|
167 void UniViewerAudioWidget::handleSave() |
|
168 { |
|
169 |
|
170 } |
|
171 |
|
172 //--------------------------------------------------------------- |
162 //--------------------------------------------------------------- |
173 // UniViewerAudioWidget::regrabGesture |
163 // UniViewerAudioWidget::regrabGesture |
174 // @see header file |
164 // @see header file |
175 //--------------------------------------------------------------- |
165 //--------------------------------------------------------------- |
176 void UniViewerAudioWidget::regrabGesture() |
166 void UniViewerAudioWidget::regrabGesture() |