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

Commit

Permalink
Include state in port stats text copy to clipboard
Browse files Browse the repository at this point in the history
The view uses an icon-only delegate for state to suppress the text
display
  • Loading branch information
pstavirs committed Oct 11, 2023
1 parent fff61d7 commit 1e84869
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/portstatsmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,10 @@ QVariant PortStatsModel::data(const QModelIndex &index, int role) const

// States
case e_COMBO_STATE:
return QVariant();
return QString("Link %1%2%3")
.arg(LinkStateName.at(stats.state().link_state()))
.arg(stats.state().is_transmit_on() ? ";Tx On" : "")
.arg(stats.state().is_capture_on() ? ";Cap On" : "");

// Statistics
case e_STAT_FRAMES_RCVD:
Expand Down

0 comments on commit 1e84869

Please sign in to comment.