[khelpcenter] [Bug 399275] Khelpcenter menu does not work (some parts of TreeView)

Luigi Toscano bugzilla_noreply at kde.org
Mon Nov 19 00:47:35 GMT 2018


https://bugs.kde.org/show_bug.cgi?id=399275

Luigi Toscano <luigi.toscano at tiscali.it> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REPORTED                    |RESOLVED
      Latest Commit|                            |https://commits.kde.org/khe
                   |                            |lpcenter/d2940a285b1b3657c5
                   |                            |1a45d85947dd0196249216
         Resolution|---                         |FIXED

--- Comment #1 from Luigi Toscano <luigi.toscano at tiscali.it> ---
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

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the kde-doc-english mailing list