#include <QCheckBox>
#include <QComboBox>
#include <QLineEdit>
#include <QSpinBox>
#include <pajlada/signals/signal.hpp>
#include "singletons/Settings.hpp"
#include <QLabel>
#include <QPainter>
#include <QPushButton>
Go to the source code of this file.
◆ SETTINGS_PAGE_WIDGET_BOILERPLATE
#define SETTINGS_PAGE_WIDGET_BOILERPLATE |
( |
|
type, |
|
|
|
parent |
|
) |
| |
Value:class type : public parent \
{ \
using parent::parent; \
\
public: \
bool greyedOut{}; \
\
protected: \
void paintEvent(QPaintEvent *e) override \
{ \
parent::paintEvent(e); \
\
if (this->greyedOut) \
{ \
QPainter painter(this); \
QColor color = QColor("#222222"); \
color.setAlphaF(0.7); \
painter.fillRect(this->rect(), color); \
} \
} \
};