equal
deleted
inserted
replaced
30 #include "univiewerutils.h" |
30 #include "univiewerutils.h" |
31 #include "unidatamodelplugininterface.h" |
31 #include "unidatamodelplugininterface.h" |
32 |
32 |
33 // LOCAL CONSTANTS |
33 // LOCAL CONSTANTS |
34 #define LOC_OPEN hbTrId("txt_common_menu_open") |
34 #define LOC_OPEN hbTrId("txt_common_menu_open") |
35 #define LOC_SAVE hbTrId("txt_common_menu_save") |
35 |
36 |
36 |
37 static const char PIXMAP_ICON[] = "qtg_small_image"; |
37 static const char PIXMAP_ICON[] = "qtg_small_image"; |
38 static const char CORRUPTED_PIXMAP_ICON[] = "qtg_large_corrupted"; |
38 static const char CORRUPTED_PIXMAP_ICON[] = "qtg_large_corrupted"; |
39 static const char VIDEO_MIMETYPE[] = "video"; |
39 static const char VIDEO_MIMETYPE[] = "video"; |
40 |
40 |
169 //fire timer to regrab gesture after some delay. |
169 //fire timer to regrab gesture after some delay. |
170 QTimer::singleShot(300,this,SLOT(regrabGesture())); |
170 QTimer::singleShot(300,this,SLOT(regrabGesture())); |
171 } |
171 } |
172 |
172 |
173 //--------------------------------------------------------------- |
173 //--------------------------------------------------------------- |
174 // UniViewerPixmapWidget::handleSave |
|
175 // @see header file |
|
176 //--------------------------------------------------------------- |
|
177 void UniViewerPixmapWidget::handleSave() |
|
178 { |
|
179 } |
|
180 |
|
181 //--------------------------------------------------------------- |
|
182 // UniViewerPixmapWidget::regrabGesture |
174 // UniViewerPixmapWidget::regrabGesture |
183 // @see header file |
175 // @see header file |
184 //--------------------------------------------------------------- |
176 //--------------------------------------------------------------- |
185 void UniViewerPixmapWidget::regrabGesture() |
177 void UniViewerPixmapWidget::regrabGesture() |
186 { |
178 { |
242 emit longTap(position); |
234 emit longTap(position); |
243 |
235 |
244 HbMenu* menu = new HbMenu; |
236 HbMenu* menu = new HbMenu; |
245 menu->setAttribute(Qt::WA_DeleteOnClose); |
237 menu->setAttribute(Qt::WA_DeleteOnClose); |
246 menu->addAction(LOC_OPEN, this, SLOT(handleOpen())); |
238 menu->addAction(LOC_OPEN, this, SLOT(handleOpen())); |
247 menu->addAction(LOC_SAVE, this, SLOT(handleSave())); |
239 |
248 menu->setPreferredPos(position); |
240 menu->setPreferredPos(position); |
249 menu->show(); |
241 menu->show(); |
250 } |
242 } |
251 |
243 |
252 //--------------------------------------------------------------- |
244 //--------------------------------------------------------------- |