浏览代码

ENH: In pythonShell, the consoleWidget created internally is now set to be the focusProxy

See http://doc.qt.nokia.com/4.6/qwidget.html#setFocusProxy
Jean-Christophe Fillion-Robin 15 年之前
父节点
当前提交
93cffdf3eb
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Libs/Scripting/Python/Widgets/ctkPythonShell.cpp

+ 2 - 0
Libs/Scripting/Python/Widgets/ctkPythonShell.cpp

@@ -261,6 +261,8 @@ ctkPythonShell::ctkPythonShell(ctkAbstractPythonManager* pythonManager, QWidget*
 
   this->setObjectName("pythonShell");
 
+  this->setFocusProxy(&this->Implementation->Console);
+
   ctkPythonShellCompleter* completer = new ctkPythonShellCompleter(*this);
   this->Implementation->Console.setCompleter(completer);