messagingapp/msgui/unifiedviewer/src/univiewerattachmentwidget.cpp
changeset 70 a15d9966050f
parent 43 35b64624a9e7
equal deleted inserted replaced
61:8ba0afbb4637 70:a15d9966050f
    33 #include "univiewerutils.h"
    33 #include "univiewerutils.h"
    34 #include "unidatamodelplugininterface.h"
    34 #include "unidatamodelplugininterface.h"
    35 
    35 
    36 // LOCAL CONSTANTS
    36 // LOCAL CONSTANTS
    37 #define LOC_OPEN hbTrId("txt_common_menu_open")
    37 #define LOC_OPEN hbTrId("txt_common_menu_open")
    38 #define LOC_SAVE hbTrId("txt_common_menu_save")
       
    39 #define LOC_SAVE_TO_CONTACTS hbTrId("txt_messaging_menu_save_to_contacts")
    38 #define LOC_SAVE_TO_CONTACTS hbTrId("txt_messaging_menu_save_to_contacts")
    40 
    39 
    41 const QString BG_FRAME_NORMAL("qtg_fr_list_normal");
    40 const QString BG_FRAME_NORMAL("qtg_fr_list_normal");
    42 const QString BG_FRAME_PRESSED("qtg_fr_list_pressed");
    41 const QString BG_FRAME_PRESSED("qtg_fr_list_pressed");
    43 const QString ATTACHMENT_ICON("qtg_small_attachment");
    42 const QString ATTACHMENT_ICON("qtg_small_attachment");
   180     //fire timer to regrab gesture after some delay.
   179     //fire timer to regrab gesture after some delay.
   181     QTimer::singleShot(300,this,SLOT(regrabGesture()));
   180     QTimer::singleShot(300,this,SLOT(regrabGesture()));
   182 }
   181 }
   183 
   182 
   184 //----------------------------------------------------------------------------
   183 //----------------------------------------------------------------------------
   185 // UniViewerAttachmentWidget::handleSave
       
   186 // @see header file
       
   187 //----------------------------------------------------------------------------
       
   188 void UniViewerAttachmentWidget::handleSave()
       
   189 {
       
   190 
       
   191 }
       
   192 
       
   193 //----------------------------------------------------------------------------
       
   194 // UniViewerAttachmentWidget::handleShortTap
   184 // UniViewerAttachmentWidget::handleShortTap
   195 // @see header file
   185 // @see header file
   196 //----------------------------------------------------------------------------
   186 //----------------------------------------------------------------------------
   197 void UniViewerAttachmentWidget::handleShortTap()
   187 void UniViewerAttachmentWidget::handleShortTap()
   198 {
   188 {
   219         // For vcard opening & saving is same.
   209         // For vcard opening & saving is same.
   220         menu->addAction(LOC_SAVE_TO_CONTACTS, this, SLOT(handleOpen()));
   210         menu->addAction(LOC_SAVE_TO_CONTACTS, this, SLOT(handleOpen()));
   221     }
   211     }
   222     else {
   212     else {
   223         menu->addAction(LOC_OPEN, this, SLOT(handleOpen()));
   213         menu->addAction(LOC_OPEN, this, SLOT(handleOpen()));
   224         menu->addAction(LOC_SAVE, this, SLOT(handleSave()));
   214         
   225     }
   215     }
   226 
   216 
   227     menu->show();
   217     menu->show();
   228 }
   218 }
   229 
   219