From 92d4c260a0e86694182718493db5f5b4e016cf47 Mon Sep 17 00:00:00 2001 From: Srivats P Date: Wed, 6 Dec 2017 20:47:26 +0530 Subject: [PATCH] Stream stats UX improvements * Enable button only when one or more port is selected * Reorder the button to make it first in the stats group * Show some helpful text instead of a blank window when no stream stats are available --- client/portstatswindow.cpp | 1 + client/portstatswindow.ui | 32 ++++++++++++++++---------------- client/streamstatswindow.ui | 33 +++++++++++++++++++++++---------- 3 files changed, 40 insertions(+), 26 deletions(-) diff --git a/client/portstatswindow.cpp b/client/portstatswindow.cpp index 42092a1..55f8284 100644 --- a/client/portstatswindow.cpp +++ b/client/portstatswindow.cpp @@ -108,6 +108,7 @@ void PortStatsWindow::when_tvPortStats_selectionChanged( tbViewCapture->setDisabled(isEmpty); tbClear->setDisabled(isEmpty); + tbGetStreamStats->setDisabled(isEmpty); tbResolveNeighbors->setDisabled(isEmpty); tbClearNeighbors->setDisabled(isEmpty); diff --git a/client/portstatswindow.ui b/client/portstatswindow.ui index 7c9b8e1..28ff522 100644 --- a/client/portstatswindow.ui +++ b/client/portstatswindow.ui @@ -78,6 +78,22 @@ + + + + Fetch Selected Port Stream Stats + + + Fetches stream statistics from the selected port(s) + + + Fetch Stream Stats + + + :/icons/stream_stats.png + + + @@ -112,22 +128,6 @@ - - - - Fetch Selected Port Stream Stats - - - Fetches stream statistics from the selected port(s) - - - Fetch Stream Stats - - - :/icons/stream_stats.png - - - diff --git a/client/streamstatswindow.ui b/client/streamstatswindow.ui index 23d3b6c..d6e9f89 100644 --- a/client/streamstatswindow.ui +++ b/client/streamstatswindow.ui @@ -1,7 +1,8 @@ - + + StreamStatsWindow - - + + 0 0 @@ -9,27 +10,39 @@ 452 - + Stream Statistics - + - - + + Qt::ActionsContextMenu + + Oops! We don't seem to have any stream statistics for the requested port(s) + +Wait a little bit to see if they appear, otherwise verify your stream stats configuration + - - + + true - + Show Byte Counters + + + XTableView + QTableView +
xtableview.h
+
+