mirror of
https://github.com/status-im/QtModelsToolkit.git
synced 2026-08-31 01:51:08 +00:00
20 lines
328 B
C++
20 lines
328 B
C++
#pragma once
|
|||
|
|
|
||
|
|
#include <QObject>
|
||
|
|
#include <QVariant>
|
||
|
|
|
||
|
|
#include "qtmodelstoolkit/singleroleaggregator.h"
|
||
|
|
|
||
|
|
namespace qtmt {
|
||
|
|
|
||
|
|
class SumAggregator : public SingleRoleAggregator {
|
||
|
|
|
||
|
|
public:
|
||
|
|
explicit SumAggregator(QObject *parent = nullptr);
|
||
|
|
|
||
|
|
protected slots:
|
||
|
|
QVariant calculateAggregation() override;
|
||
|
|
};
|
||
|
|
|
||
|
|
} // namespace qtmt
|