Browse Source

ctkPythonConsole - Enable SplitCopiedTextByLine property

Jean-Christophe Fillion-Robin 14 years ago
parent
commit
4d667b47a0
1 changed files with 3 additions and 0 deletions
  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();