A widget for displaying audit results. More...
#include <audit_results_view.hpp>
Public Member Functions | |
| AuditResultsView (QWidget *parent=nullptr) | |
| Constructs an AuditResultsView widget. | |
| void | render () override |
| Renders the audit results in the view by dynamically creating and displaying widgets. | |
| void | displayResults (const QList< AuditResult > &results) |
| Displays a list of audit results. | |
Public Member Functions inherited from UIComponent | |
| virtual | ~UIComponent ()=default |
Private Attributes | |
| QList< AuditResult > | currentResults |
A widget for displaying audit results.
The AuditResultsView class provides a scrollable view to display audit results, including file summaries and detailed issues.
|
explicit |
Constructs an AuditResultsView widget.
Initializes the layout for displaying audit results.
| parent | The parent widget (default is nullptr). |
| void AuditResultsView::displayResults | ( | const QList< AuditResult > & | results | ) |
Displays a list of audit results.
Updates the view with the provided audit results and triggers a re-render to display the new data.
| results | A list of AuditResult objects to display. |
|
overridevirtual |
Renders the audit results in the view by dynamically creating and displaying widgets.
This method clears any existing widgets from the layout and then creates new widgets to display the current audit results. Each result is represented by a summary label, followed by a list of issues displayed as indented labels.
Implements UIComponent.
|
private |