Chatterino
Classes | Namespaces | Macros
SettingsPage.hpp File Reference
#include <QCheckBox>
#include <QComboBox>
#include <QLineEdit>
#include <QSpinBox>
#include <pajlada/signals/signal.hpp>
#include "singletons/Settings.hpp"
#include <QLabel>
#include <QPainter>
#include <QPushButton>
Include dependency graph for SettingsPage.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  chatterino::SettingsPage
 

Namespaces

 chatterino
 

Macros

#define SETTINGS_PAGE_WIDGET_BOILERPLATE(type, parent)
 

Macro Definition Documentation

◆ 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); \
} \
} \
};