Summary: | make the popupDialog of group in tasks applet hide automatically | ||
---|---|---|---|
Product: | [Unmaintained] plasma4 | Reporter: | 潘卫平 <wppan> |
Component: | general | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | aseigo |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
popup dialog shows with konsole' tooltip
the problem is the same make the popup dialog of group hide automatically the patch above has side effect, fix it the popup dialog shows with tooltips the popup dialog shows with tooltips the popup dialog shows with context menu the popup dialog shows with tooltips the popup dialog shows with context menu (it was covered) hide the popup automatically, but less annoying |
Description
潘卫平
2009-07-06 07:27:54 UTC
i think you really need to include some screenshots or screencasts that show the problem, as i am not sure what you are referring to. :/ Created attachment 35083 [details]
popup dialog shows with konsole' tooltip
The mouse moves to konsole, but popup dialog of dolphin is still there.
Created attachment 35084 [details]
the problem is the same
Created attachment 35085 [details]
make the popup dialog of group hide automatically
When the mouse move out of the popup dialog of group, and it isn't hovering on the group, I let the dialog hide automically.
Created attachment 35092 [details]
the patch above has side effect, fix it
Let me try to explain the bug and patch clearly. The bug is about plasma applet tasks. I found a problem that the popup dialog of a group can't hide automically. Repruduce steps: 1、set "By Program Name" grouping strategy, and uncheck "Only when the taskbar is full". 2、run one konsole application 3、run two dolphin applications, they will group together on the taskbar. 4、click the dolphin group, a popup dialog will show. 5、move the mouse over konsole on the taskbar, a tooltip will show, but the popup dialog of dolphin doesn't hide automatically. It is still there! see Comment #2 And now the tooltip of konsole and the popup dialog of dolphin show together, and side by side. I think that we should make the popup dialog of dolphin group hide automatically when it receives a hoverLeaveEvent, make it seem to be more intelligent. I found that this problem is more complicated than I expected. First, the popup dialog of group shows together with plasma tooltips. Second, It shows together with context menu. Third, the popup dialog, tooltip and context menu may belongs to different applets. Created attachment 35183 [details]
the popup dialog shows with tooltips
Created attachment 35184 [details]
the popup dialog shows with tooltips
Created attachment 35185 [details]
the popup dialog shows with context menu
Created attachment 35186 [details]
the popup dialog shows with tooltips
Created attachment 35187 [details]
the popup dialog shows with context menu (it was covered)
Created attachment 35221 [details]
hide the popup automatically, but less annoying
I still think that hiding the popup automatically is more convenient than rejecting showing tooltip and context menu.
Since AbstractTaskItem has a m_applet pointer, I add a function to hide the popup dialog in class Tasks. Every time a WindowTaskItem or a TaskGroupItem wants to show a tooltip or a context menu, it first calls that function to hide the popup dialog which is showing.
SVN commit 1002921 by peterpan: reject showing tooltips when the popup dialog is showing. BUG:199107 M +9 -0 taskgroupitem.cpp M +15 -1 tasks.cpp M +3 -3 tasks.h M +32 -12 windowtaskitem.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1002921 |