Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

Commit

Permalink
Include headers also when copying stream stats
Browse files Browse the repository at this point in the history
This is for plain text copy format.

This also replaces any newlines in the header text with a space to maintain
formatting.
  • Loading branch information
pstavirs committed Jun 26, 2023
1 parent 28b308c commit 268fad0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions client/streamstatswindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
<property name="contextMenuPolicy">
<enum>Qt::ActionsContextMenu</enum>
</property>
<property name="selectionBehavior">
<enum>QAbstractItemView::SelectRows</enum>
</property>
<property name="whatsThis">
<string>Oops! We don't seem to have any stream statistics for the requested port(s)

Expand Down
3 changes: 2 additions & 1 deletion client/xtableview.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ public slots:
for (int i = start; i < end; i++)
if (indexes.contains(model()->index(indexes.first().row(), i)))
text.append(model()->headerData(i, Qt::Horizontal)
.toString()+"\t");;
.toString().replace('\n', ' ')
+"\t");;
text.append("\n");
}

Expand Down

0 comments on commit 268fad0

Please sign in to comment.