From 39babc560feb9af4028368596918d45ceded36e3 Mon Sep 17 00:00:00 2001 From: wmayer Date: Fri, 26 Oct 2018 19:37:16 +0200 Subject: [PATCH] improve call tips window --- src/Gui/CallTips.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Gui/CallTips.cpp b/src/Gui/CallTips.cpp index 0c1b2079ca..d62d8998ea 100644 --- a/src/Gui/CallTips.cpp +++ b/src/Gui/CallTips.cpp @@ -206,13 +206,14 @@ QMap 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()) {