summaryrefslogtreecommitdiffstats
path: root/scripts/kconfig
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2020-08-29 10:14:13 +0200
committerMasahiro Yamada <masahiroy@kernel.org>2020-09-24 17:37:13 +0200
commitf3eea294e93facc78ffcf3881f88ea02732283a9 (patch)
tree2a10911a094a9d5cc88e5e58c246c92ef9c4635f /scripts/kconfig
parentkconfig: qconf: allow to edit "int", "hex", "string" menus in-place (diff)
downloadlinux-f3eea294e93facc78ffcf3881f88ea02732283a9.tar.xz
linux-f3eea294e93facc78ffcf3881f88ea02732283a9.zip
kconfig: qconf: remove ConfigLineEdit class
Now that "int", "hex", "string" menus are edited in-place, this class is no longer needed. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/kconfig')
-rw-r--r--scripts/kconfig/qconf.cc39
-rw-r--r--scripts/kconfig/qconf.h18
2 files changed, 0 insertions, 57 deletions
diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc
index af8d5cc1b24b..461681aa5b19 100644
--- a/scripts/kconfig/qconf.cc
+++ b/scripts/kconfig/qconf.cc
@@ -307,42 +307,6 @@ parent:
QStyledItemDelegate::setModelData(editor, model, index);
}
-ConfigLineEdit::ConfigLineEdit(ConfigView* parent)
- : Parent(parent)
-{
- connect(this, SIGNAL(editingFinished()), SLOT(hide()));
-}
-
-void ConfigLineEdit::show(ConfigItem* i)
-{
- item = i;
- if (sym_get_string_value(item->menu->sym))
- setText(sym_get_string_value(item->menu->sym));
- else
- setText(QString());
- Parent::show();
- setFocus();
-}
-
-void ConfigLineEdit::keyPressEvent(QKeyEvent* e)
-{
- switch (e->key()) {
- case Qt::Key_Escape:
- break;
- case Qt::Key_Return:
- case Qt::Key_Enter:
- sym_set_string_value(item->menu->sym, text().toLatin1());
- ConfigList::updateListForAll();
- break;
- default:
- Parent::keyPressEvent(e);
- return;
- }
- e->accept();
- parent()->list->setFocus();
- hide();
-}
-
ConfigList::ConfigList(ConfigView* p, const char *name)
: Parent(p),
updateAll(false),
@@ -990,9 +954,6 @@ ConfigView::ConfigView(QWidget* parent, const char *name)
list = new ConfigList(this);
verticalLayout->addWidget(list);
- lineEdit = new ConfigLineEdit(this);
- lineEdit->hide();
- verticalLayout->addWidget(lineEdit);
}
void ConfigView::setShowName(bool b)
diff --git a/scripts/kconfig/qconf.h b/scripts/kconfig/qconf.h
index b02acf2464ec..a3ee91565d49 100644
--- a/scripts/kconfig/qconf.h
+++ b/scripts/kconfig/qconf.h
@@ -20,7 +20,6 @@
class ConfigView;
class ConfigList;
class ConfigItem;
-class ConfigLineEdit;
class ConfigMainWindow;
class ConfigSettings : public QSettings {
@@ -187,22 +186,6 @@ public:
const QModelIndex &index) const override;
};
-class ConfigLineEdit : public QLineEdit {
- Q_OBJECT
- typedef class QLineEdit Parent;
-public:
- ConfigLineEdit(ConfigView* parent);
- ConfigView* parent(void) const
- {
- return (ConfigView*)Parent::parent();
- }
- void show(ConfigItem *i);
- void keyPressEvent(QKeyEvent *e);
-
-public:
- ConfigItem *item;
-};
-
class ConfigView : public QWidget {
Q_OBJECT
typedef class QWidget Parent;
@@ -219,7 +202,6 @@ signals:
void showRangeChanged(bool);
public:
ConfigList* list;
- ConfigLineEdit* lineEdit;
};
class ConfigInfoView : public QTextBrowser {