Initial commit

This commit is contained in:
torsten committed 2026-08-13 18:33:10 +02:00
commit b7d90b9afe
16245 files changed
+3396666

No files matched your search

@@ -0,0 +1,42 @@
/**
* @RDE_HEADER@
* Item Delegate class to show On/Off switch buttons.
* $Id$
* $HeadURL$
* $Author$
* Created by Filip Biedziak, NLE, 2020-08-10
*/
#pragma once
#include <QStyledItemDelegate>
namespace NGL
{
class INGLLogger;
}
namespace EffectManagement
{
class SwitchItemDelegate
: public QStyledItemDelegate
{
Q_OBJECT
public:
SwitchItemDelegate(QObject *parent = nullptr);
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
private:
static const QIcon s_iconOn;
static const QIcon s_iconOff;
NGL::INGLLogger &m_logger;
}; // SwitchItemDelegate
} // namespace EffectManagement