Fix plain text copy to print selected columns
The case being fixed is when non contiguous columns were selected, e.g. column 3 and 7
This commit is contained in:
parent
6791eb06dd
commit
79ac3a2a20
@ -167,8 +167,9 @@ private:
|
|||||||
}
|
}
|
||||||
text.append("\t"); // column header for row number/title
|
text.append("\t"); // column header for row number/title
|
||||||
for (int i = start; i < end; i++)
|
for (int i = start; i < end; i++)
|
||||||
text.append(model()->headerData(i, Qt::Horizontal)
|
if (indexes.contains(model()->index(indexes.first().row(), i)))
|
||||||
.toString()+"\t");;
|
text.append(model()->headerData(i, Qt::Horizontal)
|
||||||
|
.toString()+"\t");;
|
||||||
text.append("\n");
|
text.append("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user