messagingapp/msgui/unifiedviewer/src/univiewerpixmapwidget.cpp
changeset 62 fdbe8253b596
parent 51 3507212d340e
child 63 eceabb8c7a12
equal deleted inserted replaced
59:fcb676ca077d 62:fdbe8253b596
    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 
   168 
   168 
   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 
   174 
   181 //---------------------------------------------------------------
   175 //---------------------------------------------------------------
   182 // UniViewerPixmapWidget::regrabGesture
   176 // UniViewerPixmapWidget::regrabGesture
   183 // @see header file
   177 // @see header file
   184 //---------------------------------------------------------------
   178 //---------------------------------------------------------------
   242     emit longTap(position);
   236     emit longTap(position);
   243 
   237 
   244     HbMenu* menu = new HbMenu;
   238     HbMenu* menu = new HbMenu;
   245     menu->setAttribute(Qt::WA_DeleteOnClose);
   239     menu->setAttribute(Qt::WA_DeleteOnClose);
   246     menu->addAction(LOC_OPEN, this, SLOT(handleOpen()));
   240     menu->addAction(LOC_OPEN, this, SLOT(handleOpen()));
   247     menu->addAction(LOC_SAVE, this, SLOT(handleSave()));
   241     
   248     menu->setPreferredPos(position);
   242     menu->setPreferredPos(position);
   249     menu->show();
   243     menu->show();
   250 }
   244 }
   251 
   245 
   252 //---------------------------------------------------------------
   246 //---------------------------------------------------------------