mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-09-07 17:16:00 -05:00
Add MacroListEntryWidget
To be used for macro tab's macro list as regular QListWidgetItem are too limited
This commit is contained in:
24
src/headers/macro-list-entry-widget.hpp
Normal file
24
src/headers/macro-list-entry-widget.hpp
Normal 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;
|
||||
};
|
||||
Reference in New Issue
Block a user