mirror-chatterino2/notebookpagedroppreview.cpp
2017-01-15 11:21:59 -05:00

19 lines
411 B
C++

#include "notebookpagedroppreview.h"
#include "QPainter"
#include "colorscheme.h"
NotebookPageDropPreview::NotebookPageDropPreview(QWidget *parent)
: QWidget(parent)
{
setHidden(true);
}
void
NotebookPageDropPreview::paintEvent(QPaintEvent *)
{
QPainter painter(this);
painter.fillRect(8, 8, width() - 17, height() - 17,
ColorScheme::instance().DropPreviewBackground);
}