Python: Implement PythonSettings::keywords()

Avoids instantiation of the widget when searchings using the search box
only to find nothing.

Change-Id: Id335de7f6cc2168d38905afe42b07e509c70f791
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2023-06-28 10:27:43 +02:00
parent e5e2d47d69
commit 184403ddf2

View File

@@ -350,6 +350,18 @@ public:
return {};
}
QStringList keywords() const final
{
return {
Tr::tr("Name:"),
Tr::tr("Executable"),
Tr::tr("&Add"),
Tr::tr("&Delete"),
Tr::tr("&Clean Up"),
Tr::tr("&Make Default")
};
}
private:
InterpreterOptionsWidget *m_widget = nullptr;
};