~ubuntu-branches/ubuntu/trusty/muse/trusty

« back to all changes in this revision

Viewing changes to muse/widgets/colorframe.cpp

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2013-08-28 16:25:57 UTC
  • mto: This revision was merged to the branch mainline in revision 27.
  • Revision ID: package-import@ubuntu.com-20130828162557-knls3ip7j262eepx
Tags: upstream-2.1.2
ImportĀ upstreamĀ versionĀ 2.1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <QPainter>
 
2
#include <QPaintEvent>
 
3
 
 
4
#include "colorframe.h"
 
5
 
 
6
ColorFrame::ColorFrame(QWidget *parent) :
 
7
    QWidget(parent)
 
8
{
 
9
}
 
10
 
 
11
void ColorFrame::paintEvent(QPaintEvent *e)
 
12
{
 
13
    QRect r(e->rect());
 
14
    QPainter p(this);
 
15
    p.fillRect(r, color);
 
16
}
 
17