equal
deleted
inserted
replaced
296 return; |
296 return; |
297 } |
297 } |
298 //to avoid opening email account mistakenly when tabbing expand/collapse button |
298 //to avoid opening email account mistakenly when tabbing expand/collapse button |
299 //we dont handle events that are on the top, down or right side of the button |
299 //we dont handle events that are on the top, down or right side of the button |
300 QPointF posFromScene = mapFromScene(event->mapToGraphicsScene(gesture->position())); |
300 QPointF posFromScene = mapFromScene(event->mapToGraphicsScene(gesture->position())); |
301 if(posFromScene.x() < mUnreadCountLabel->geometry().right()) |
301 bool inArea = false; |
302 { |
302 |
|
303 if(this->layoutDirection() == Qt::LeftToRight && |
|
304 posFromScene.x() < mUnreadCountLabel->geometry().right()) { |
|
305 inArea = true; |
|
306 } |
|
307 else if(this->layoutDirection() == Qt::RightToLeft && |
|
308 posFromScene.x() > mUnreadCountLabel->geometry().right()) { |
|
309 inArea = true; |
|
310 } |
|
311 |
|
312 if (inArea) { |
303 switch (gesture->state()) { |
313 switch (gesture->state()) { |
304 case Qt::GestureStarted: |
314 case Qt::GestureStarted: |
305 setHighlighedFontsColor(true); |
315 setHighlighedFontsColor(true); |
306 showHighlight(true); |
316 showHighlight(true); |
307 break; |
317 break; |