calendarwidgetplugin/src/contentlayoutgesture.cpp
changeset 1 f8e7eccf5f96
parent 0 db1bf15cefff
equal deleted inserted replaced
0:db1bf15cefff 1:f8e7eccf5f96
   129 /*
   129 /*
   130  * ContentLayoutGesture::onTap
   130  * ContentLayoutGesture::onTap
   131  */
   131  */
   132 void ContentLayoutGesture::onTap(QPointF& point)
   132 void ContentLayoutGesture::onTap(QPointF& point)
   133 {
   133 {
   134     LOGS("ContentLayoutGesture::launchApplication");
   134     LOGS("ContentLayoutGesture::onTap");
   135 	if (mLayout->sceneBoundingRect().contains(point)) {
   135     //traslate the container rect to right position according to the scene
       
   136     QRectF layoutRect( QPointF( mLayout->rect().topLeft().x() + mLayout->pos().x(), mLayout->rect().topLeft().y() + mLayout->pos().y() ), 
       
   137                        QPointF( mLayout->rect().bottomRight().x() + mLayout->pos().x(), mLayout->rect().bottomRight().y() + mLayout->pos().y() ));
       
   138 	
       
   139     if ( layoutRect.contains(point) ) {
   136         if (mTapAction == "launchApplication") {
   140         if (mTapAction == "launchApplication") {
   137             launchApplication(mTapParameters, mTapParametersType);
   141             launchApplication(mTapParameters, mTapParametersType);
   138             mTestID = 1;
   142             mTestID = 1;
   139         }
   143         }
   140     }
   144     }
   155     //XQAiwRequest request = aiwMgr.create(url);
   159     //XQAiwRequest request = aiwMgr.create(url);
   156     XQAiwRequest* request = aiwMgr.create(service, interface, method, false);
   160     XQAiwRequest* request = aiwMgr.create(service, interface, method, false);
   157     if (request == NULL) {
   161     if (request == NULL) {
   158         return;
   162         return;
   159     }
   163     }
       
   164     
       
   165     XQRequestInfo options;
       
   166     options.setForeground(true);
       
   167     request->setInfo(options);
   160 
   168 
   161     // Connect result handling signal
   169     // Connect result handling signal
   162     connect(request, SIGNAL(requestOk(const QVariant&)), this, SLOT(handleOk(const QVariant&)));
   170     connect(request, SIGNAL(requestOk(const QVariant&)), this, SLOT(handleOk(const QVariant&)));
   163     // Connect error handling signal or apply lastError function instead.
   171     // Connect error handling signal or apply lastError function instead.
   164     connect(request, SIGNAL(requestError(int,const QString&)), this, SLOT(handleError(int,const QString&)));
   172     connect(request, SIGNAL(requestError(int,const QString&)), this, SLOT(handleError(int,const QString&)));