This commit is contained in:
Chenwenxuan
2024-03-06 14:54:30 +08:00
commit edac2715f0
1525 changed files with 809982 additions and 0 deletions

23
ui/generic/actionlist.h Normal file
View File

@@ -0,0 +1,23 @@
#ifndef ACTIONLIST_H
#define ACTIONLIST_H
#include <QListWidget>
class ActionList : public QListWidget
{
Q_OBJECT
public:
ActionList(QWidget* parent);
void addActionItem(QAction* action);
void fromActionList(const QList<QAction *>& a_list);
void fromActionMap(QMap<QString, QAction*>& a_map);
public slots:
void activateAction(QListWidgetItem*);
protected:
QList<QAction*> action_list;
};
#endif // ACTIONLIST_H