Problem 1497

Summary: Qt interface: allow pasting multiple lines
Product: Geant4 Reporter: Mojca Miklavec <mojca.miklavec.lists>
Component: visualizationAssignee: garnier
Status: RESOLVED FIXED    
Severity: enhancement CC: garnier
Priority: P5    
Version: 9.6   
Hardware: All   
OS: All   

Description Mojca Miklavec 2013-07-17 04:59:39 CEST
When entering commands into "Session:" into Qt window, it would be very nice if one was able to copy-paste multiple lines of text at once.

At the moment it is not even possible to paste single lines with a trailing newline character (for example "/vis/drawVolume" errors out with "command not found" if the copied text included the newline).

I like copying single chunks of code (several lines) instead of storing those commands to a file first. This works in terminal mode when newline is equivalent of "return", but in Qt errors appear when trying to copy-paste multiple commands at once.
Comment 1 garnier 2013-08-08 11:09:31 CEST
Ok, it works fine for tcsh because each "carriage return" trigger a new command. In Qt that is not the case for the moment, but we can do this.
Comment 2 Mojca Miklavec 2013-08-08 18:00:43 CEST
Thank you very much for fixing this. Is it possible to see the patch, so that I can apply it myself locally until the next version of 9.6/10.0 gets released?

Mojca