forked from qt-creator/qt-creator
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:
@@ -350,6 +350,18 @@ public:
|
|||||||
return {};
|
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:
|
private:
|
||||||
InterpreterOptionsWidget *m_widget = nullptr;
|
InterpreterOptionsWidget *m_widget = nullptr;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user