summaryrefslogtreecommitdiff
path: root/muse2/muse/widgets/colorframe.cpp
blob: 8e61ae4b1debaf10779e8ffc907616977a54db39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <QPainter>
#include <QPaintEvent>

#include "colorframe.h"

ColorFrame::ColorFrame(QWidget *parent) :
    QWidget(parent)
{
}

void ColorFrame::paintEvent(QPaintEvent *e)
{
    QRect r(e->rect());
    QPainter p(this);
    p.fillRect(r, color);
}