#pragma once

#include <QPixmap>
#include <QString>
#include <QWidget>

class QLabel;

// One "<symbol> <name>  x<count>" line of a count summary. The same part serves the
// building summary and the field summary, which count different things the same way
// (REQ-UI-MULTI-SELECTION, REQ-UI-FIELD-MULTI-SELECTION).
class CountRow : public QWidget
{
    Q_OBJECT

public:
    // An empty symbol leaves the icon off, for the kinds of object that have none.
    CountRow(const QPixmap& symbol, const QString& name, int count,
             QWidget* parent = nullptr);

private:
    QLabel* m_symbolLabel;
    QLabel* m_nameLabel;
    QLabel* m_countLabel;
};
