浏览代码

ctkPythonConsole - Enable SplitCopiedTextByLine property

Jean-Christophe Fillion-Robin 14 年之前
父节点
当前提交
4d667b47a0
共有 1 个文件被更改,包括 3 次插入0 次删除
  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();