Skip to content
Snippets Groups Projects
Commit 7eb7c106 authored by Maxime Chretien's avatar Maxime Chretien Committed by Masahiro Yamada
Browse files

kconfig: qconf: Fix mouse events in search view


On menu properties mouse events didn't do anything in search view
(listMode).

As there are no menus in listMode we can add an exception in tests to
always change the value on mouse events if we are in listMode.

Signed-off-by: default avatarMaxime Chretien <maxime.chretien@bootlin.com>
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent 8410e655
No related branches found
No related tags found
No related merge requests found
...@@ -785,7 +785,8 @@ void ConfigList::mouseReleaseEvent(QMouseEvent* e) ...@@ -785,7 +785,8 @@ void ConfigList::mouseReleaseEvent(QMouseEvent* e)
break; break;
ptype = menu->prompt ? menu->prompt->type : P_UNKNOWN; ptype = menu->prompt ? menu->prompt->type : P_UNKNOWN;
if (ptype == P_MENU && rootEntry != menu && if (ptype == P_MENU && rootEntry != menu &&
mode != fullMode && mode != menuMode) mode != fullMode && mode != menuMode &&
mode != listMode)
emit menuSelected(menu); emit menuSelected(menu);
else else
changeValue(item); changeValue(item);
...@@ -835,7 +836,7 @@ void ConfigList::mouseDoubleClickEvent(QMouseEvent* e) ...@@ -835,7 +836,7 @@ void ConfigList::mouseDoubleClickEvent(QMouseEvent* e)
if (!menu) if (!menu)
goto skip; goto skip;
ptype = menu->prompt ? menu->prompt->type : P_UNKNOWN; ptype = menu->prompt ? menu->prompt->type : P_UNKNOWN;
if (ptype == P_MENU) { if (ptype == P_MENU && mode != listMode) {
if (mode == singleMode) if (mode == singleMode)
emit itemSelected(menu); emit itemSelected(menu);
else if (mode == symbolMode) else if (mode == symbolMode)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment