Qt6 migration
This commit is contained in:
parent
87553b2554
commit
423043d431
19 changed files with 64 additions and 87 deletions
|
|
@ -86,7 +86,7 @@ void copySelectionToClipboard(const QTableView *view)
|
|||
|
||||
if (selectedIndexes.count() > 0) {
|
||||
QString clipboard_string;
|
||||
QTextStream out(&clipboard_string, QIODevice::WriteOnly);
|
||||
QTextStream out(&clipboard_string, QTextStream::WriteOnly);
|
||||
CsvWriter csv(&out);
|
||||
csv.setSeperator('\t');
|
||||
csv.setQuote('"');
|
||||
|
|
@ -153,7 +153,7 @@ QString ConvertToMultiLineCString(const QString &in_)
|
|||
if (token.ok) {
|
||||
if (token.tokenType == BasicTokenType::Comment) {
|
||||
// save comment is seperate variable
|
||||
comment = "//" + token.out.rightRef(token.out.length()-2);
|
||||
comment = "//" + token.out.right(token.out.length()-2);
|
||||
// Trim whitespace on right
|
||||
int idx;
|
||||
for (idx = comment.length() - 1; idx >= 0 && comment[idx].isSpace(); --idx) ;
|
||||
|
|
@ -168,7 +168,7 @@ QString ConvertToMultiLineCString(const QString &in_)
|
|||
++idx;
|
||||
if (!comment.isEmpty()) {
|
||||
// put the whitespace in front of the comment so it will be outside the contents of the string literal but alignment of comments is preserved
|
||||
comment = line.rightRef(line.length() - (idx)) + comment;
|
||||
comment = line.right(line.length() - (idx)) + comment;
|
||||
}
|
||||
line.truncate(idx);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue