equal
deleted
inserted
replaced
29 #include "msgunieditorutils.h" |
29 #include "msgunieditorutils.h" |
30 |
30 |
31 // LOCAL CONSTANTS |
31 // LOCAL CONSTANTS |
32 #define LOC_OPEN hbTrId("txt_common_menu_open") |
32 #define LOC_OPEN hbTrId("txt_common_menu_open") |
33 #define LOC_REMOVE hbTrId("txt_common_menu_remove") |
33 #define LOC_REMOVE hbTrId("txt_common_menu_remove") |
34 #define LOC_DETAILS hbTrId("txt_common_menu_details") |
|
35 |
34 |
36 const QString IMAGE_MIMETYPE("image"); |
35 const QString IMAGE_MIMETYPE("image"); |
37 |
36 |
38 //--------------------------------------------------------------- |
37 //--------------------------------------------------------------- |
39 // MsgUnifiedEditorPixmapWidget::MsgUnifiedEditorPixmapWidget |
38 // MsgUnifiedEditorPixmapWidget::MsgUnifiedEditorPixmapWidget |
133 void MsgUnifiedEditorPixmapWidget::handleRemove() |
132 void MsgUnifiedEditorPixmapWidget::handleRemove() |
134 { |
133 { |
135 emit remove(); |
134 emit remove(); |
136 } |
135 } |
137 |
136 |
138 //--------------------------------------------------------------- |
|
139 // MsgUnifiedEditorPixmapWidget::handleSave |
|
140 // @see header file |
|
141 //--------------------------------------------------------------- |
|
142 void MsgUnifiedEditorPixmapWidget::viewDetails() |
|
143 { |
|
144 |
|
145 } |
|
146 |
|
147 //---------------------------------------------------------------------------- |
137 //---------------------------------------------------------------------------- |
148 // MsgUnifiedEditorPixmapWidget::handleShortTap |
138 // MsgUnifiedEditorPixmapWidget::handleShortTap |
149 // @see header file |
139 // @see header file |
150 //---------------------------------------------------------------------------- |
140 //---------------------------------------------------------------------------- |
151 void MsgUnifiedEditorPixmapWidget::handleShortTap() |
141 void MsgUnifiedEditorPixmapWidget::handleShortTap() |
168 menu->setAttribute(Qt::WA_DeleteOnClose); |
158 menu->setAttribute(Qt::WA_DeleteOnClose); |
169 menu->setDismissPolicy(HbPopup::TapAnywhere); |
159 menu->setDismissPolicy(HbPopup::TapAnywhere); |
170 |
160 |
171 menu->addAction(LOC_OPEN, this, SLOT(handleOpen())); |
161 menu->addAction(LOC_OPEN, this, SLOT(handleOpen())); |
172 menu->addAction(LOC_REMOVE, this, SLOT(handleRemove())); |
162 menu->addAction(LOC_REMOVE, this, SLOT(handleRemove())); |
173 menu->addAction(LOC_DETAILS, this, SLOT(viewDetails())); |
|
174 |
163 |
175 menu->setPreferredPos(position); |
164 menu->setPreferredPos(position); |
176 menu->show(); |
165 menu->show(); |
177 } |
166 } |
178 |
167 |