messagingapp/msgui/unifiedviewer/src/univiewerpixmapwidget.cpp
changeset 73 ecf6a73a9186
parent 63 eceabb8c7a12
equal deleted inserted replaced
68:e8a69c93c830 73:ecf6a73a9186
    25 #include <QPixmap>
    25 #include <QPixmap>
    26 #include <QTimer>
    26 #include <QTimer>
    27 #include <thumbnailmanager_qt.h>
    27 #include <thumbnailmanager_qt.h>
    28 
    28 
    29 // USER INCLUDES
    29 // USER INCLUDES
    30 #include "univiewerutils.h"
    30 #include "msgservicelaunchutil.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 
    35 
   160 void UniViewerPixmapWidget::handleOpen()
   160 void UniViewerPixmapWidget::handleOpen()
   161 {
   161 {
   162     this->ungrabGesture(Qt::TapGesture);
   162     this->ungrabGesture(Qt::TapGesture);
   163 
   163 
   164     if (!mViewerUtils) {
   164     if (!mViewerUtils) {
   165         mViewerUtils = new UniViewerUtils(this);
   165         mViewerUtils = new MsgServiceLaunchUtil(this);
   166     }
   166     }
   167     mViewerUtils->launchContentViewer(mMimeType, mPixmapPath);
   167     mViewerUtils->launchContentViewer(mMimeType, mPixmapPath);
   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 
       
   173 
   172 
   174 
   173 //---------------------------------------------------------------
   175 //---------------------------------------------------------------
   174 // UniViewerPixmapWidget::regrabGesture
   176 // UniViewerPixmapWidget::regrabGesture
   175 // @see header file
   177 // @see header file
   176 //---------------------------------------------------------------
   178 //---------------------------------------------------------------