From 688f086b2e223dcb89dbae13d9daf7c40bee7a20 Mon Sep 17 00:00:00 2001 From: Sergey Magidovich Date: Thu, 5 Oct 2017 15:54:39 +0300 Subject: [PATCH] Show segment status near segment id. It shows status code for now. --- .../openlr_assessment_tool/traffic_mode.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openlr/openlr_match_quality/openlr_assessment_tool/traffic_mode.cpp b/openlr/openlr_match_quality/openlr_assessment_tool/traffic_mode.cpp index ec337d3c94..f1cfc4e809 100644 --- a/openlr/openlr_match_quality/openlr_assessment_tool/traffic_mode.cpp +++ b/openlr/openlr_match_quality/openlr_assessment_tool/traffic_mode.cpp @@ -212,7 +212,7 @@ int TrafficMode::rowCount(const QModelIndex & parent) const return static_cast(m_segments.size()); } -int TrafficMode::columnCount(const QModelIndex & parent) const { return 1; } +int TrafficMode::columnCount(const QModelIndex & parent) const { return 2; } QVariant TrafficMode::data(const QModelIndex & index, int role) const { @@ -228,6 +228,9 @@ QVariant TrafficMode::data(const QModelIndex & index, int role) const if (index.column() == 0) return m_segments[index.row()].GetPartnerSegmentId(); + if (index.column() == 1) + return static_cast(m_segments[index.row()].GetStatus()); + return QVariant(); }