mirror of
https://invent.kde.org/plasma/plasma-desktop.git
synced 2026-11-03 14:49:44 -09:00
31 lines
706 B
C++
31 lines
706 B
C++
/*
|
|
SPDX-FileCopyrightText: 2009 Ben Cooksley <ben@eclipse.endoftheinternet.org>
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#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;
|
|
};
|