Limo
A simple mod manager
Loading...
Searching...
No Matches
listaction.h
Go to the documentation of this file.
1
5
6#pragma once
7
8#include <QAction>
9#include <QObject>
10
11
15class ListAction : public QAction
16{
17 Q_OBJECT
18public:
24 explicit ListAction(int index, QObject* parent = nullptr);
25
26private:
28 int index_;
29
30private slots:
32 void onTriggeredAt();
33
34signals:
39 void triggeredAt(int index);
40};
int index_
Index belonging to this action.
Definition listaction.h:28
void onTriggeredAt()
Emits triggeredAt.
Definition listaction.cpp:9
void triggeredAt(int index)
Emits this action's index.
ListAction(int index, QObject *parent=nullptr)
Constructs a new action with the given index.
Definition listaction.cpp:4