Summary: | Khelpcenter menu does not work (some parts of TreeView) | ||
---|---|---|---|
Product: | [Applications] khelpcenter | Reporter: | Pavel <mars> |
Component: | general | Assignee: | Documentation Editorial Team <kde-doc-english> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 5.7.3 | ||
Target Milestone: | --- | ||
Platform: | Neon | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/khelpcenter/d2940a285b1b3657c51a45d85947dd0196249216 | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: | KInfoCenter Modules — Help Center |
Description
Pavel
2018-10-01 12:39:18 UTC
Git commit d2940a285b1b3657c51a45d85947dd0196249216 by Luigi Toscano, on behalf of Aleksei Nikiforov. Committed on 19/11/2018 at 00:47. Pushed by ltoscano into branch 'Applications/18.12'. Contents items expanding issue Summary: There is contents tree on left side of application window of Khelpcenter. If you select "Single click to open files and directories" in application "System Settings" in menu "Input devices" -> "Mouse", upon single click on any expandable item in contents (let's for example take "Application Manuals" or "System Settings Modules") it expands, upon double click it swiftly expands and collapses back. If it's already expanded, it collapses, and on double click it collapses and expands back. However, if you select "Double click to open files and directories (select icons on first click)" in "System Settings", you no longer can expand/collapse any expandable items in Khelpcenter's contents tree using mouse clicks. You need to double click to expand it, and in best case you can see it swiftly expanding and collapsing back if it's collapsed, or vice versa if it's expanded. It looks like with "Double click" setting selected contents item receives two events on double click: "selected" and "double click". On first event "expanded/collapsed" state is toggled via explicit calls to corresponding functions (see function Navigator::slotItemSelected), on second event this state is toggled again, thus reverting it to original state. This patch sets a specific setting to get rid of second event and make behaviour similar no matter which mouse settings is used, "single click" or "double click". Reviewers: yurchor, mlaurent, ltoscano Reviewed By: ltoscano Subscribers: pavelmos, ltoscano, kde-doc-english Tags: #documentation Differential Revision: https://phabricator.kde.org/D16352 M +1 -0 navigator.cpp https://commits.kde.org/khelpcenter/d2940a285b1b3657c51a45d85947dd0196249216 |