Commit 3c73ff04 authored by Masahiro Yamada's avatar Masahiro Yamada

kconfig: qconf: drop more localization code

This is a remnant of commit 694c49a7 ("kconfig: drop localization
support").

Get it back to the code prior to commit 3b9fa093 ("[PATCH] Kconfig
i18n support").
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent 5b75a6c8
...@@ -31,11 +31,6 @@ static ConfigSettings *configSettings; ...@@ -31,11 +31,6 @@ static ConfigSettings *configSettings;
QAction *ConfigMainWindow::saveAction; QAction *ConfigMainWindow::saveAction;
static inline QString qgettext(const char* str)
{
return QString::fromLocal8Bit(str);
}
ConfigSettings::ConfigSettings() ConfigSettings::ConfigSettings()
: QSettings("kernel.org", "qconf") : QSettings("kernel.org", "qconf")
{ {
...@@ -109,7 +104,7 @@ void ConfigItem::updateMenu(void) ...@@ -109,7 +104,7 @@ void ConfigItem::updateMenu(void)
sym = menu->sym; sym = menu->sym;
prop = menu->prompt; prop = menu->prompt;
prompt = qgettext(menu_get_prompt(menu)); prompt = menu_get_prompt(menu);
if (prop) switch (prop->type) { if (prop) switch (prop->type) {
case P_MENU: case P_MENU:
...@@ -135,7 +130,7 @@ void ConfigItem::updateMenu(void) ...@@ -135,7 +130,7 @@ void ConfigItem::updateMenu(void)
if (!sym) if (!sym)
goto set_prompt; goto set_prompt;
setText(nameColIdx, QString::fromLocal8Bit(sym->name)); setText(nameColIdx, sym->name);
type = sym_get_type(sym); type = sym_get_type(sym);
switch (type) { switch (type) {
...@@ -265,7 +260,7 @@ void ConfigLineEdit::show(ConfigItem* i) ...@@ -265,7 +260,7 @@ void ConfigLineEdit::show(ConfigItem* i)
{ {
item = i; item = i;
if (sym_get_string_value(item->menu->sym)) if (sym_get_string_value(item->menu->sym))
setText(QString::fromLocal8Bit(sym_get_string_value(item->menu->sym))); setText(sym_get_string_value(item->menu->sym));
else else
setText(QString()); setText(QString());
Parent::show(); Parent::show();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment