mirror-chatterino2/notebookpagedroppreview.cpp

17 lines
393 B
C++
Raw Normal View History

2017-01-01 02:30:42 +01:00
#include "notebookpagedroppreview.h"
#include "QPainter"
#include "colorscheme.h"
NotebookPageDropPreview::NotebookPageDropPreview(QWidget *parent = 0)
: QWidget(parent)
{
setHidden(true);
2017-01-01 02:30:42 +01:00
}
void NotebookPageDropPreview::paintEvent(QPaintEvent *)
{
QPainter painter(this);
painter.fillRect(8, 8, width()-17, height()-17, ColorScheme::getInstance().DropPreviewBackground);
2017-01-01 02:30:42 +01:00
}