diff options
author | Robert Jonsson <spamatica@gmail.com> | 2013-02-24 12:10:19 +0000 |
---|---|---|
committer | Robert Jonsson <spamatica@gmail.com> | 2013-02-24 12:10:19 +0000 |
commit | 402d761f25837310da17061b56182aa3e1f4b4b9 (patch) | |
tree | 41ddef230b2005bbdcdbc8254bb83c58fcfb4b82 /muse2/muse/widgets/colorframe.h | |
parent | ab9687c921fe352773314be8b85e6a2e06bbaaf7 (diff) |
color fixes
Diffstat (limited to 'muse2/muse/widgets/colorframe.h')
-rw-r--r-- | muse2/muse/widgets/colorframe.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/muse2/muse/widgets/colorframe.h b/muse2/muse/widgets/colorframe.h new file mode 100644 index 00000000..8dc940f5 --- /dev/null +++ b/muse2/muse/widgets/colorframe.h @@ -0,0 +1,23 @@ +#ifndef COLORFRAME_H +#define COLORFRAME_H + +#include <QWidget> + +class ColorFrame : public QWidget +{ + Q_OBJECT + virtual void paintEvent(QPaintEvent*); + +public: + explicit ColorFrame(QWidget *parent = 0); + void setColor(QColor c) {color = c; update();} + +signals: + +public slots: + +private: + QColor color; +}; + +#endif // COLORFRAME_H |