Bug 199107

Summary: make the popupDialog of group in tasks applet hide automatically
Product: [Unmaintained] plasma4 Reporter: 潘卫平 <wppan>
Component: generalAssignee: 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
Version:            (using Devel)
Compiler:          svn r 991963 
OS:                Linux
Installed from:    Compiled sources


reproduce steps:
1、set "By Program Name" grouping strategy, uncheck "Only when the taskbar is full"
2、open one konsole application
3、open two dolphin applications, they will group together
4、click the dolphin group, a dialog will show
5、move the mouse over konsole, a tooltip will show with the dialog together, the dialog doesn't hide automatically.

And if you move the mouse out of the dialog, the dialog won't hide automatically.

I think that we should make popupDialog of group hide automatically, seems to be more intelligent.
Comment 1 Aaron J. Seigo 2009-07-06 10:31:09 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. :/
Comment 2 潘卫平 2009-07-06 10:54:56 UTC
Created attachment 35083 [details]
popup dialog shows with konsole' tooltip

The mouse moves to konsole, but popup dialog of dolphin is still there.
Comment 3 潘卫平 2009-07-06 10:56:43 UTC
Created attachment 35084 [details]
the problem is the same
Comment 4 潘卫平 2009-07-06 11:26:02 UTC
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.
Comment 5 潘卫平 2009-07-06 12:00:04 UTC
Created attachment 35092 [details]
the patch above has side effect, fix it
Comment 6 潘卫平 2009-07-07 13:47:07 UTC
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.
Comment 7 潘卫平 2009-07-09 12:07:43 UTC
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.
Comment 8 潘卫平 2009-07-09 12:10:53 UTC
Created attachment 35183 [details]
the popup dialog shows with tooltips
Comment 9 潘卫平 2009-07-09 12:11:56 UTC
Created attachment 35184 [details]
the popup dialog shows with tooltips
Comment 10 潘卫平 2009-07-09 12:12:46 UTC
Created attachment 35185 [details]
the popup dialog shows with context menu
Comment 11 潘卫平 2009-07-09 12:13:35 UTC
Created attachment 35186 [details]
the popup dialog shows with tooltips
Comment 12 潘卫平 2009-07-09 12:15:20 UTC
Created attachment 35187 [details]
the popup dialog shows with context menu (it was covered)
Comment 13 潘卫平 2009-07-10 15:39:25 UTC
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.
Comment 14 潘卫平 2009-07-27 12:13:01 UTC
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