Kaynağa Gözat

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 yıl önce
ebeveyn
işleme
93cffdf3eb

+ 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);