3
0
mirror of https://github.com/Qortal/Brooklyn.git synced 2025-02-07 06:44:18 +00:00
Brooklyn/plasma/kcms/solid_actions/ActionModel.h
Scare Crowe d2ebfd0519 QortalOS Titan 5.60.12
Screw the description like that inbred T3Q
2022-03-05 21:17:59 +05:00

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