equal
deleted
inserted
replaced
17 */ |
17 */ |
18 |
18 |
19 |
19 |
20 |
20 |
21 #include <glxcommandfactory.h> |
21 #include <glxcommandfactory.h> |
22 #include <photoeditor_highway.hrh> |
22 |
|
23 |
|
24 #ifdef FF_IMAGE_EDITOR |
|
25 #include <photoeditor_highway.hrh> |
|
26 #endif //FF_IMAGE_EDITOR |
|
27 |
23 #include "glxcommandhandlereditimage.h" |
28 #include "glxcommandhandlereditimage.h" |
24 #include <glxcommandhandlers.hrh> |
29 #include <glxcommandhandlers.hrh> |
25 #include <glxmodelparm.h> |
30 #include <glxmodelparm.h> |
26 #include <glxmediamodel.h> |
31 #include <glxmediamodel.h> |
27 #include <XQServiceRequest.h> |
32 #include <XQServiceRequest.h> |
64 QString imagePath = (mediaModel->data(mediaModel->index(mediaModel->data(mediaModel->index(0,0),GlxFocusIndexRole).value<int>(),0),GlxUriRole)).value<QString>(); |
69 QString imagePath = (mediaModel->data(mediaModel->index(mediaModel->data(mediaModel->index(0,0),GlxFocusIndexRole).value<int>(),0),GlxUriRole)).value<QString>(); |
65 delete mediaModel; |
70 delete mediaModel; |
66 |
71 |
67 QList<QVariant> args; |
72 QList<QVariant> args; |
68 args << imagePath; |
73 args << imagePath; |
|
74 #ifdef FF_IMAGE_EDITOR |
69 if(EGlxCmdSetWallpaper == commandId) |
75 if(EGlxCmdSetWallpaper == commandId) |
70 { |
76 { |
71 args << EEditorHighwayWallpaperCrop; |
77 args << EEditorHighwayWallpaperCrop; |
72 } |
78 } |
73 else if(EGlxCmdRotateImgCrop == commandId) |
79 else if(EGlxCmdRotateImgCrop == commandId) |
81 else // if(EGlxCmdRotateImgCCW == aCommandId) |
87 else // if(EGlxCmdRotateImgCCW == aCommandId) |
82 { |
88 { |
83 args << EEditorHighwayRotateCCW; |
89 args << EEditorHighwayRotateCCW; |
84 } |
90 } |
85 mReq->setArguments(args); |
91 mReq->setArguments(args); |
|
92 #endif //FF_IMAGE_EDITOR |
86 |
93 |
87 // Send the request |
94 // Send the request |
88 bool res = mReq->send(); |
95 bool res = mReq->send(); |
89 if (!res) |
96 if (!res) |
90 { |
97 { |