summaryrefslogtreecommitdiff
path: root/muse2/muse/widgets/colorframe.cpp
diff options
context:
space:
mode:
authorRobert Jonsson <spamatica@gmail.com>2013-02-24 12:10:19 +0000
committerRobert Jonsson <spamatica@gmail.com>2013-02-24 12:10:19 +0000
commit402d761f25837310da17061b56182aa3e1f4b4b9 (patch)
tree41ddef230b2005bbdcdbc8254bb83c58fcfb4b82 /muse2/muse/widgets/colorframe.cpp
parentab9687c921fe352773314be8b85e6a2e06bbaaf7 (diff)
color fixes
Diffstat (limited to 'muse2/muse/widgets/colorframe.cpp')
-rw-r--r--muse2/muse/widgets/colorframe.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/muse2/muse/widgets/colorframe.cpp b/muse2/muse/widgets/colorframe.cpp
new file mode 100644
index 00000000..8e61ae4b
--- /dev/null
+++ b/muse2/muse/widgets/colorframe.cpp
@@ -0,0 +1,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);
+}
+