2020-12-29 Fred Gleason <fredg@paravelsystems.com>

* Refactored the Full Log widget in rdairplay to use the model-based
	API.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2020-12-29 12:47:31 -05:00
parent ca7ead3ea3
commit 1ce6d0ddc3
33 changed files with 984 additions and 1573 deletions

View File

@@ -72,7 +72,7 @@ void LogModel::setServiceName(const QString &str)
}
QColor LogModel::backgroundColor(int line,RDLogLine *ll) const
QColor LogModel::rowBackgroundColor(int row,RDLogLine *ll) const
{
QDateTime now=QDateTime(QDate::currentDate(),QTime::currentTime());
@@ -82,7 +82,7 @@ QColor LogModel::backgroundColor(int line,RDLogLine *ll) const
case RDCart::AlwaysValid:
if(d_group_list->groupIsValid(ll->groupName())||
ll->groupName().isEmpty()) {
return RDLogModel::backgroundColor(line,ll);
return RDLogModel::rowBackgroundColor(row,ll);
}
return RD_CART_INVALID_SERVICE_COLOR;
@@ -102,9 +102,9 @@ QColor LogModel::backgroundColor(int line,RDLogLine *ll) const
default:
if(d_group_list->groupIsValid(ll->groupName())||ll->groupName().isEmpty()) {
return RDLogModel::backgroundColor(line,ll);
return RDLogModel::rowBackgroundColor(row,ll);
}
return RD_CART_INVALID_SERVICE_COLOR;
}
return RDLogModel::backgroundColor(line,ll);
return RDLogModel::rowBackgroundColor(row,ll);
}