improve call tips window

This commit is contained in:
wmayer
2018-10-26 19:37:16 +02:00
parent 4cff87ed57
commit 76590be8ac

View File

@@ -206,13 +206,14 @@ QMap<QString, CallTip> CallTipsList::extractTips(const QString& context) const
try {
Py::Module module("__main__");
Py::Dict dict = module.getDict();
#if 0
// this is used to filter out input of the form "1."
QStringList items = context.split(QLatin1Char('.'));
QString modname = items.front();
items.pop_front();
if (!dict.hasKey(std::string(modname.toLatin1())))
return tips; // unknown object
#if 0
// get the Python object we need
Py::Object obj = dict.getItem(std::string(modname.toLatin1()));
while (!items.isEmpty()) {