3
0
mirror of https://github.com/Qortal/Brooklyn.git synced 2025-02-23 07:35:54 +00:00
2022-03-05 22:41:29 +05:00

36 lines
762 B
C++

/*
SPDX-FileCopyrightText: 2014-2015 Eike Hein <hein@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#pragma once
#include "abstractmodel.h"
#include "systementry.h"
class SystemModel : public AbstractModel
{
Q_OBJECT
public:
explicit SystemModel(QObject *parent = nullptr);
~SystemModel() override;
QString description() const override;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
Q_INVOKABLE bool trigger(int row, const QString &actionId, const QVariant &argument) override;
protected Q_SLOTS:
void refresh() override;
private:
void populate();
QVector<SystemEntry *> m_entries;
};