Bug 424060

Summary: When you open PlasmaComponents2.Combobox in a widget on your desktop, plasmoid goes into edit mode.
Product: [Frameworks and Libraries] libplasma Reporter: Driglu4it <Dr>
Component: componentsAssignee: Marco Martin <notmart>
Status: CONFIRMED ---    
Severity: normal CC: kde, nate, plasma-bugs-null, zrenfire
Priority: NOR    
Version First Reported In: 5.71.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Driglu4it 2020-07-10 10:37:32 UTC
SUMMARY
When you open PlasmaComponents.Combobox in a widget on your desktop, plasmoid goes into edit mode.

STEPS TO REPRODUCE
1. Add plasmoid with combobox
2. Click to open popup


OBSERVED RESULT
After a couple of seconds, plasmoid goes into edit mode.

EXPECTED RESULT
The widget should not be edited, just popup should open

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux
KDE Plasma Version: 5.19.3
KDE Frameworks Version: 5.71.0
Qt Version: 5.15.0

ADDITIONAL INFORMATION
on panel representation all work fine
Comment 1 David Edmundson 2020-07-10 10:47:44 UTC
Can you give more specific instructions. Which plasmoid(s) does this happen with.

I know there's no code in combobox that would trigger this directly in the combobox itself.
Comment 2 Driglu4it 2020-07-10 11:44:51 UTC
Please try to install the plasmoid by the link and add it to the desktop. The left combo box will not work as it should (the right one helped me fix it).
http://qml.i-glu4it.ru/org.kde.plasma.translator-for-test.tar.gz
Comment 3 David Edmundson 2020-07-10 12:29:11 UTC
Installed it, the left combobox is the wrong colours but other than that appears to work correctly.

Can you include some screenshots or video of plasmoid going into edit mode.
Comment 4 Driglu4it 2020-07-10 12:52:58 UTC
(In reply to David Edmundson from comment #3)
> Installed it, the left combobox is the wrong colours but other than that
> appears to work correctly.
> 
> Can you include some screenshots or video of plasmoid going into edit mode.

This is video: http://qml.i-glu4it.ru/2020-07-10-1550.mov
Comment 5 Chris Holland 2020-07-10 15:39:19 UTC
Note this affects PlasmaComponents2 (QQC1) ComboBoxes only. Didn't happen with QQC2 (PlasmaComponents3).

It happens with a click in QQC1, whereas QQC2 requires a pressandhold to trigger edit mode.

This is probably because QQC1 creates a native window popup, while QQC2 creates a... I think it's a fake window that only stays within the parent window. So I assume QQC1 recognizes the press, creates a new window, but doesn't send a press released event to the ComboBox, and the Plasma Widget wrapper that detects a press and hold event.

I was personally testing by changing this to "PlasmaComponents.ComboBox":
https://github.com/Zren/plasma-applet-gitlabissues/blob/master/package/contents/ui/IssueListView.qml#L87

Note that when editable=true, clicking the TextField doesn't trigger edit mode, but clicking the indicator to open the dropdown does trigger edit mode.
Note I'm also I'm using Manjaro's Stable plasma-git.

Eg: https://www.youtube.com/watch?v=NuoFbmxVM0o
Comment 6 Bug Janitor Service 2020-07-25 04:33:09 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Christoph Feck 2020-08-03 16:12:50 UTC
Requested information was added in comment 4 and comment 5; changing status for inspection.