GUI: undo Windows * -> + change as formatting data, not filenames, doh

This commit is contained in:
gitlost 2022-07-05 01:35:24 +01:00
parent 8525597b81
commit 9870fc6a61
4 changed files with 10 additions and 14 deletions

View File

@ -341,12 +341,12 @@ each line of text in the right hand panel. The format field determines the
format of the automatically generated sequence where characters have the
meanings as given below:
| Character | Effect |
|:-------------------|:---------------------------------------------------|
|`$` | Insert leading zeroes |
|`#` | Insert leading spaces |
|`*` | Insert leading asterisks (or plus signs on Windows)|
|Any other character | Interpreted literally |
| Character | Effect |
|:-------------------|:------------------------|
|`$` | Insert leading zeroes |
|`#` | Insert leading spaces |
|`*` | Insert leading asterisks|
|Any other character | Interpreted literally |
Table: {#tbl:sequence_format_characters tag=": Sequence Format Characters"}

View File

@ -502,10 +502,10 @@ format of the automatically generated sequence where characters have the
meanings as given below:
Character Effect
--------------------- -----------------------------------------------------
--------------------- --------------------------
$ Insert leading zeroes
# Insert leading spaces
* Insert leading asterisks (or plus signs on Windows)
* Insert leading asterisks
Any other character Interpreted literally
: Table : Sequence Format Characters:

View File

@ -121,7 +121,7 @@
<string>Format sequence using special characters&lt;table cellspacing=&quot;3&quot;&gt;
&lt;tr&gt;&lt;td&gt;$&lt;/td&gt;&lt;td&gt;Number or '0'&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;#&lt;/td&gt;&lt;td&gt;Number or space&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;*&lt;/td&gt;&lt;td&gt;Number or '*' ('+' on Windows)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;*&lt;/td&gt;&lt;td&gt;Number or '*'&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Other&lt;/td&gt;&lt;td&gt;Insert literally&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</string>
</property>
@ -139,7 +139,7 @@
<string>Format sequence using special characters&lt;table cellspacing=&quot;3&quot;&gt;
&lt;tr&gt;&lt;td&gt;$&lt;/td&gt;&lt;td&gt;Number or '0'&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;#&lt;/td&gt;&lt;td&gt;Number or space&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;*&lt;/td&gt;&lt;td&gt;Number or '*' ('+' on Windows)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;*&lt;/td&gt;&lt;td&gt;Number or '*'&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Other&lt;/td&gt;&lt;td&gt;Insert literally&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</string>
</property>

View File

@ -120,11 +120,7 @@ QString SequenceWindow::apply_format(const QString& raw_number)
adjusted += raw_number[inpos - 1];
inpos--;
} else {
#ifndef _WIN32
adjusted += '*';
#else
adjusted += '+';
#endif
}
break;
default: