equal
deleted
inserted
replaced
80 |
80 |
81 //Home screen canvas menu item for opening picture gallery |
81 //Home screen canvas menu item for opening picture gallery |
82 const char hsLocTextId_ContextMenu_ChangeWallpaper[] = "txt_homescreen_list_change_wallpaper"; |
82 const char hsLocTextId_ContextMenu_ChangeWallpaper[] = "txt_homescreen_list_change_wallpaper"; |
83 |
83 |
84 //Home screen canvas menu item for opening Application library |
84 //Home screen canvas menu item for opening Application library |
85 const char hsLocTextId_ContextMenu_AddContent[] = "txt_homescreen_list_add_content"; |
85 const char hsLocTextId_ContextMenu_AddContent[] = "txt_homescreen_opt_add_content"; |
86 |
86 |
87 //Home screen options menu item for opening Task switcher |
87 //Home screen options menu item for opening Task switcher |
88 const char hsLocTextId_OptionsMenu_TaskSwitcher[] = "txt_homescreen_opt_task_switcher"; |
88 const char hsLocTextId_OptionsMenu_TaskSwitcher[] = "txt_homescreen_opt_task_switcher"; |
89 |
89 |
90 //Heading text in confirmation dialog while removing page with content |
90 //Heading text in confirmation dialog while removing page with content |
655 emit event_moveWidget(); |
655 emit event_moveWidget(); |
656 } |
656 } |
657 |
657 |
658 void HsIdleState::onWidgetMoveUpdated(const QPointF &scenePos, HsWidgetHost *widget) |
658 void HsIdleState::onWidgetMoveUpdated(const QPointF &scenePos, HsWidgetHost *widget) |
659 { |
659 { |
|
660 /* If move was interrupted by a popup and and we plan to move second widget. |
|
661 * Then the erroneous first widget instance is received here, as there is no cancel gesture |
|
662 -> we need to use active widget that was saved during TapAndHold. |
|
663 */ |
|
664 widget = HsScene::instance()->activeWidget(); |
|
665 |
660 QRectF widgetRect = widget->visual()->geometry(); |
666 QRectF widgetRect = widget->visual()->geometry(); |
661 |
667 |
662 // Move widget to updated position. |
668 // Move widget to updated position. |
663 mWidgetHotSpot = scenePos; |
669 mWidgetHotSpot = scenePos; |
664 widgetRect.moveTopLeft(mWidgetHotSpot - mWidgetHotSpotOffset); |
670 widgetRect.moveTopLeft(mWidgetHotSpot - mWidgetHotSpotOffset); |