mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-02-07 06:44:18 +00:00
d2ebfd0519
Screw the description like that inbred T3Q
35 lines
745 B
C++
35 lines
745 B
C++
/*
|
|
SPDX-FileCopyrightText: 2009 Ben Cooksley <ben@eclipse.endoftheinternet.org>
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#ifndef ACTIONMODEL_H
|
|
#define ACTIONMODEL_H
|
|
|
|
#include <QAbstractTableModel>
|
|
|
|
class ActionItem;
|
|
|
|
class ActionModel : public QAbstractTableModel
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ActionModel(QObject *parent = nullptr);
|
|
~ActionModel() override;
|
|
|
|
QVariant data(const QModelIndex &index, int role) const override;
|
|
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
|
|
int columnCount(const QModelIndex &parent = QModelIndex()) const override;
|
|
|
|
void buildActionList();
|
|
QList<ActionItem *> actionList() const;
|
|
|
|
private:
|
|
class Private;
|
|
Private *const d;
|
|
};
|
|
|
|
#endif
|