Explorar o código

ctkPythonConsole - Enable SplitCopiedTextByLine property

Jean-Christophe Fillion-Robin %!s(int64=14) %!d(string=hai) anos
pai
achega
4d667b47a0
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      Libs/Scripting/Python/Widgets/ctkPythonConsole.cpp

+ 3 - 0
Libs/Scripting/Python/Widgets/ctkPythonConsole.cpp

@@ -265,6 +265,9 @@ ctkPythonConsole::ctkPythonConsole(ctkAbstractPythonManager* pythonManager, QWid
   // Disable RemoveTrailingSpaces and AutomaticIndentation
   this->setEditorHints(this->editorHints() ^ (RemoveTrailingSpaces | AutomaticIndentation));
 
+  // Enable SplitCopiedTextByLine
+  this->setEditorHints(this->editorHints() | SplitCopiedTextByLine);
+
   // The call to mainContext() ensures that python has been initialized.
   Q_ASSERT(d->PythonManager);
   d->PythonManager->mainContext();