Add some 'help' for printpoint format and arguments.

This commit is contained in:
Ernie Pasveer
2022-01-29 17:45:51 -06:00
parent 58543b33e7
commit 9d3da66898
2 changed files with 20 additions and 1 deletions
+14 -1
View File
@@ -215,7 +215,20 @@ QString SeerPrintpointCreateDialog::printpointText () const {
printpointParameters += " --line " + lineNumberText();
}
printpointParameters += " \"" + format() + "\"";
// Build the format string, ensuring a \" at the beggining and end of the string.
printpointParameters += " ";
if (format().front() != "\"") {
printpointParameters += "\"";
}
printpointParameters += format();
if (format().back() != "\"") {
printpointParameters += "\"";
}
// Add the arguments to the string.
printpointParameters += " " + arguments();
return printpointParameters;