Make tooltip dialog hidden on the cursor entering the inactive ToolTipArea
Review Request #125443 - Created Sept. 29, 2015 and submitted
| Information | |
|---|---|
| Takahiro Hashimoto | |
| plasma-framework | |
| master | |
| 125402 | |
| Reviewers | |
| plasma | |
Now PlasmaCore.ToolTipArea can control status of active/inactive.
When a ToolTip dialog is visible and making mouse move to another inactive ToolTipArea, it remains unnaturally for a while.
I attached a urgy test program to reproduce this behavior. The instruction to reproduce is:
1.run qmlscene tooltip_hide.qml
2. make mouse cursor on the cell named "name1" (or any odd numbered one)
3. move the cursor to a even numberd cell like "name2"It results the "tip1" tooltip remains for a long time (current spec is 4000ms)
I think it would be better when a mouse entered into an inatcive ToolTipArea, the global tooltip dialog is dismissed soon. This patch is the implementation of this behavior.
I cannot check all side-effect to change this behavior. Many guys adivce are welcomed:)
Here's my reference use case: https://git.reviewboard.kde.org/r/125402/
Apply patch and build and test on master.
Tested with my test program attached this review request. Works fine to me.
Change Summary:
Add reference to my use case.
Description: |
|
|---|
-
src/declarativeimports/core/tooltip.cpp (Diff revision 1) -
I don't think you need the dismiss, It seems we can just wrap this keepAlive line in an if(m_active)
Otherwise this will have odd effect in nested ToolTipAreas even if only one is active.
Thanks for doing a test! it allowed me to test my comment above.
it'll be good to have it commited somewhere for future edits.
there's an existing tests/tooltip.qml that doesn't have any inactive areas maybe we can add one in the middle there?
Change Summary:
- Make dialog keepalive trigger simple
- Update tests/tooltip.qml for inactive ToolTipArea case.
Diff: |
Revision 2 (+26 -3) |
|---|
How about updated pacth?
Ship It!
