Skip to contentSkip to conversation

kconfig: sync main view with search dialog current menu

PATCH In review Marco Costalba 2 participants 2 messages Oct 5, 2006 – Mar 17, 2007 Kconfig

lore
Share & tools
lore
#0 lore raw

cover kconfig: sync main view with search dialog current menu

When changing current menu in search dialog update also main view

---

I've found handy this 'jump to context behaviour.

Please consider for applying.

scripts/kconfig/qconf.cc |    5 ++++-
scripts/kconfig/qconf.h  |    2 +-
2 files changed, 5 insertions(+), 2 deletions(-)
scripts/kconfig/qconf.cc +0 -0
index 393f374..eec81b0 100644
@@ -1176,7 +1176,7 @@ void ConfigInfoView::contentsContextMenu
	Parent::contentsContextMenuEvent(e);
}

-ConfigSearchWindow::ConfigSearchWindow(QWidget* parent, const char *name) +ConfigSearchWindow::ConfigSearchWindow(ConfigMainWindow* parent, const char *name)
: Parent(parent, name), result(NULL)

{
	setCaption("Search Config");
@@ -1200,6 +1200,9 @@ ConfigSearchWindow::ConfigSearchWindow(Q
	info = new ConfigInfoView(split, name);
	connect(list->list, SIGNAL(menuChanged(struct menu *)),
		info, SLOT(setInfo(struct menu *)));
+	connect(list->list, SIGNAL(menuChanged(struct menu *)),
+		parent, SLOT(setMenuLink(struct menu *)));
+
	layout1->addWidget(split);

	if (name) {
scripts/kconfig/qconf.h +0 -0
index 6a9e3b1..8d11f3c 100644
@@ -279,7 +279,7 @@ class ConfigSearchWindow : public QDialo
	Q_OBJECT
	typedef class QDialog Parent;

public:
- ConfigSearchWindow(QWidget* parent, const char *name = 0);
+ ConfigSearchWindow(ConfigMainWindow* parent, const char *name = 0);

public slots:

	void saveSettings(void);
Signature · 1 line
1.4.2.1.gbc1a5
#1 lore raw
Quoted 8 lines · Marco Costalba

When changing current menu in search dialog update also main view

---

I've found handy this 'jump to context behaviour.

Please consider for applying.

Looked good - applied.

Sam