mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Marco Costalba" <mcostalba@gmail.com>
To: sam@ravnborg.org, zippel@linux-m68k.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH 0/1] kconfig: sync main view with search dialog current menu
Date: Thu, 5 Oct 2006 19:12:59 +0200	[thread overview]
Message-ID: <e5bfff550610051012r659089f3ofec6aedb7be05e02@mail.gmail.com> (raw)

When changing current menu in search dialog update also main view

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
---

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(-)

diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc
index 393f374..eec81b0 100644
--- a/scripts/kconfig/qconf.cc
+++ b/scripts/kconfig/qconf.cc
@@ -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) {
diff --git a/scripts/kconfig/qconf.h b/scripts/kconfig/qconf.h
index 6a9e3b1..8d11f3c 100644
--- a/scripts/kconfig/qconf.h
+++ b/scripts/kconfig/qconf.h
@@ -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);
-- 
1.4.2.1.gbc1a5

             reply	other threads:[~2006-10-05 17:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-05 17:12 Marco Costalba [this message]
2007-03-17  8:22 ` Sam Ravnborg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e5bfff550610051012r659089f3ofec6aedb7be05e02@mail.gmail.com \
    --to=mcostalba@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sam@ravnborg.org \
    --cc=zippel@linux-m68k.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®