]> git.baikalelectronics.ru Git - kernel.git/commit
kconfig: qconf: fix the popup menu in the ConfigInfoView window
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 17 Aug 2020 16:36:30 +0000 (01:36 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Tue, 18 Aug 2020 11:16:46 +0000 (20:16 +0900)
commit2340505d7d3a62ab2a7b473c9d6f3f44835025c1
tree7008145e8f54fd32d7cd441b7ad484dd9ef83db9
parent503b924c6f6330d88f4fc3d412b52f7f38de7df2
kconfig: qconf: fix the popup menu in the ConfigInfoView window

I do not know when ConfigInfoView::createStandardContextMenu() is
called.

Because QTextEdit::createStandardContextMenu() is not virtual,
ConfigInfoView::createStandardContextMenu() cannot override it.
Even if right-click the ConfigInfoView window, the "Show Debug Info"
menu does not show up.

Build up the menu in the constructor, and invoke it from the
contextMenuEvent().

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/qconf.cc
scripts/kconfig/qconf.h