1 #ifndef LC_CUSTOMTOOLBAR_H
2 #define LC_CUSTOMTOOLBAR_H
3 
4 #include <QToolBar>
5 #include <QMap>
6 
7 class LC_CustomToolbar : public QToolBar
8 {
9     Q_OBJECT
10 
11 public:
12 
13     LC_CustomToolbar(QWidget* parent);
14     ~LC_CustomToolbar();
15 
16     void actions_from_file(const QString& path,
17                            QMap<QString, QAction*>& a_map);
18     void add_separator();
19 
20     QStringList state_list;
21     QString file_path;
22     QAction* most_recent_action=nullptr;
23 
24 public slots:
25 
26     void slot_add_or_remove_action();
27     void slot_most_recent_action(QAction* q_action);
28 
29 };
30 
31 #endif // LC_CUSTOMTOOLBAR_H
32