mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
31 lines
528 B
C++
31 lines
528 B
C++
#include "chatwidget.h"
|
|
#include "QFont"
|
|
#include "QFontDatabase"
|
|
#include "QPainter"
|
|
#include "QVBoxLayout"
|
|
#include "colorscheme.h"
|
|
|
|
ChatWidget::ChatWidget(QWidget *parent)
|
|
: QWidget(parent)
|
|
, vbox(this)
|
|
{
|
|
vbox.setSpacing(0);
|
|
vbox.setMargin(1);
|
|
|
|
vbox.addWidget(&header);
|
|
vbox.addWidget(&view);
|
|
vbox.addWidget(&input);
|
|
}
|
|
|
|
ChatWidget::~ChatWidget()
|
|
{
|
|
}
|
|
|
|
void
|
|
ChatWidget::paintEvent(QPaintEvent *)
|
|
{
|
|
QPainter painter(this);
|
|
|
|
painter.fillRect(rect(), ColorScheme::instance().ChatBackground);
|
|
}
|