diff options
author | Marco Costalba <mcostalba@gmail.com> | 2006-10-05 13:12:59 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2007-05-02 14:58:08 -0400 |
commit | 63431e75691c410819023ab0e6cd047cbfcf64e2 (patch) | |
tree | b34cc62882172f7b95d323b8866fc9b7a4ff6b9b /scripts/kconfig | |
parent | f88d205501e35195444bdd41983e26546af3f56a (diff) |
kconfig/xconfig: sync main view with search dialog current menu
When changing current menu in search dialog update also main view
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/kconfig')
-rw-r--r-- | scripts/kconfig/qconf.cc | 5 | ||||
-rw-r--r-- | 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 512c2f5c341d..f2a23a9c3938 100644 --- a/scripts/kconfig/qconf.cc +++ b/scripts/kconfig/qconf.cc | |||
@@ -1182,7 +1182,7 @@ void ConfigInfoView::contentsContextMenuEvent(QContextMenuEvent *e) | |||
1182 | Parent::contentsContextMenuEvent(e); | 1182 | Parent::contentsContextMenuEvent(e); |
1183 | } | 1183 | } |
1184 | 1184 | ||
1185 | ConfigSearchWindow::ConfigSearchWindow(QWidget* parent, const char *name) | 1185 | ConfigSearchWindow::ConfigSearchWindow(ConfigMainWindow* parent, const char *name) |
1186 | : Parent(parent, name), result(NULL) | 1186 | : Parent(parent, name), result(NULL) |
1187 | { | 1187 | { |
1188 | setCaption("Search Config"); | 1188 | setCaption("Search Config"); |
@@ -1206,6 +1206,9 @@ ConfigSearchWindow::ConfigSearchWindow(QWidget* parent, const char *name) | |||
1206 | info = new ConfigInfoView(split, name); | 1206 | info = new ConfigInfoView(split, name); |
1207 | connect(list->list, SIGNAL(menuChanged(struct menu *)), | 1207 | connect(list->list, SIGNAL(menuChanged(struct menu *)), |
1208 | info, SLOT(setInfo(struct menu *))); | 1208 | info, SLOT(setInfo(struct menu *))); |
1209 | connect(list->list, SIGNAL(menuChanged(struct menu *)), | ||
1210 | parent, SLOT(setMenuLink(struct menu *))); | ||
1211 | |||
1209 | layout1->addWidget(split); | 1212 | layout1->addWidget(split); |
1210 | 1213 | ||
1211 | if (name) { | 1214 | if (name) { |
diff --git a/scripts/kconfig/qconf.h b/scripts/kconfig/qconf.h index 6fc1c5f14425..b3b5657b6b35 100644 --- a/scripts/kconfig/qconf.h +++ b/scripts/kconfig/qconf.h | |||
@@ -279,7 +279,7 @@ class ConfigSearchWindow : public QDialog { | |||
279 | Q_OBJECT | 279 | Q_OBJECT |
280 | typedef class QDialog Parent; | 280 | typedef class QDialog Parent; |
281 | public: | 281 | public: |
282 | ConfigSearchWindow(QWidget* parent, const char *name = 0); | 282 | ConfigSearchWindow(ConfigMainWindow* parent, const char *name = 0); |
283 | 283 | ||
284 | public slots: | 284 | public slots: |
285 | void saveSettings(void); | 285 | void saveSettings(void); |