]> git.lyx.org Git - features.git/commit
Cleanup button handling in InsetInclude
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 19 Jan 2021 12:23:03 +0000 (13:23 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 19 Jan 2021 18:24:10 +0000 (19:24 +0100)
commit5908bb3ea6e6962308c70bd05a7f61baa8f2e0ce
treeeb4fd34bc753e6e4c18782570283c8364c9ba91d
parent64b22a6d807b58047d09b6b8c0732870b5872ef7
Cleanup button handling in InsetInclude

The include inset has its own button_ object, that hides the button_
object of the InsetCommand parent. Remove that.

Remove the hand-made caching that uses the set_label_ boolean.

Let metrics() and draw() use the inherited methods. This requires to
use setBroken as needed and to implement inheritFont.

The use of InsetCommand::draw is what restores the hover effect.

Fixes bug #10415.
src/insets/InsetCommand.h
src/insets/InsetInclude.cpp
src/insets/InsetInclude.h