Include headers also when copying stream stats

This is for plain text copy format.

This also replaces any newlines in the header text with a space to maintain
formatting.
This commit is contained in:
Srivats P 2023-06-26 18:08:49 +05:30
parent 28b308ce6c
commit 268fad0690
2 changed files with 5 additions and 1 deletions

View File

@ -19,6 +19,9 @@
<property name="contextMenuPolicy"> <property name="contextMenuPolicy">
<enum>Qt::ActionsContextMenu</enum> <enum>Qt::ActionsContextMenu</enum>
</property> </property>
<property name="selectionBehavior">
<enum>QAbstractItemView::SelectRows</enum>
</property>
<property name="whatsThis"> <property name="whatsThis">
<string>Oops! We don't seem to have any stream statistics for the requested port(s) <string>Oops! We don't seem to have any stream statistics for the requested port(s)

View File

@ -169,7 +169,8 @@ private:
for (int i = start; i < end; i++) for (int i = start; i < end; i++)
if (indexes.contains(model()->index(indexes.first().row(), i))) if (indexes.contains(model()->index(indexes.first().row(), i)))
text.append(model()->headerData(i, Qt::Horizontal) text.append(model()->headerData(i, Qt::Horizontal)
.toString()+"\t");; .toString().replace('\n', ' ')
+"\t");;
text.append("\n"); text.append("\n");
} }