diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2020-08-07 11:19:09 +0200 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2020-08-14 06:47:21 +0200 |
commit | d4bbe8a1b55aeaadfa0fa982b468eaec9b799f1a (patch) | |
tree | 4d6db3171d230dad873b2d189eaae6d40385d6a8 /scripts/kconfig/qconf.h | |
parent | kconfig: qconf: do not limit the pop-up menu to the first row (diff) | |
download | linux-d4bbe8a1b55aeaadfa0fa982b468eaec9b799f1a.tar.xz linux-d4bbe8a1b55aeaadfa0fa982b468eaec9b799f1a.zip |
kconfig: qconf: move setOptionMode() to ConfigList from ConfigView
ConfigView::setOptionMode() only gets access to the 'list' member.
Move it to the more relevant ConfigList class.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to '')
-rw-r--r-- | scripts/kconfig/qconf.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/scripts/kconfig/qconf.h b/scripts/kconfig/qconf.h index 460b858b0faa..461df6419f15 100644 --- a/scripts/kconfig/qconf.h +++ b/scripts/kconfig/qconf.h @@ -74,6 +74,8 @@ public slots: void changeValue(ConfigItem* item); void updateSelection(void); void saveSettings(void); + void setOptionMode(QAction *action); + signals: void menuChanged(struct menu *menu); void menuSelected(struct menu *menu); @@ -105,6 +107,8 @@ public: QPalette disabledColorGroup; QPalette inactivedColorGroup; QMenu* headerPopup; + + static QAction *showNormalAction, *showAllAction, *showPromptAction; }; class ConfigItem : public QTreeWidgetItem { @@ -196,7 +200,6 @@ public slots: void setShowName(bool); void setShowRange(bool); void setShowData(bool); - void setOptionMode(QAction *); signals: void showNameChanged(bool); void showRangeChanged(bool); @@ -207,10 +210,6 @@ public: static ConfigView* viewList; ConfigView* nextView; - - static QAction *showNormalAction; - static QAction *showAllAction; - static QAction *showPromptAction; }; class ConfigInfoView : public QTextBrowser { |