Pārlūkot izejas kodu

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 gadi atpakaļ
vecāks
revīzija
93cffdf3eb
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  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);