Add MacroListEntryWidget

To be used for macro tab's macro list as regular QListWidgetItem are too
limited
This commit is contained in:
WarmUpTill
2022-01-30 22:15:02 +01:00
committed by WarmUpTill
parent a4f66dbbcd
commit dc698e426d
3 changed files with 65 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
#pragma once
#include <QLabel>
#include <QCheckBox>
#include <memory>
class Macro;
class MacroListEntryWidget : public QWidget {
Q_OBJECT
public:
MacroListEntryWidget(std::shared_ptr<Macro>, QWidget *parent);
void SetName(const QString &);
void SetMacro(std::shared_ptr<Macro> &);
private slots:
void PauseChanged(int);
private:
QLabel *_name;
QCheckBox *_running;
std::shared_ptr<Macro> _macro;
};