From 184403ddf2c1eb188a7eb533b1032ef78c6896b4 Mon Sep 17 00:00:00 2001 From: hjk Date: Wed, 28 Jun 2023 10:27:43 +0200 Subject: [PATCH] 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 --- src/plugins/python/pythonsettings.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/plugins/python/pythonsettings.cpp b/src/plugins/python/pythonsettings.cpp index da3c6e647e7..020aad52259 100644 --- a/src/plugins/python/pythonsettings.cpp +++ b/src/plugins/python/pythonsettings.cpp @@ -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; };