Bläddra i källkod

ctkPythonConsole - Enable SplitCopiedTextByLine property

Jean-Christophe Fillion-Robin 14 år sedan
förälder
incheckning
4d667b47a0
1 ändrade filer med 3 tillägg och 0 borttagningar
  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();