blob: 0309832e496bdf175ebb883db198149930ceb963 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
//
// C++ Interface: BtColorWidget
//
// Description: A color choosing widget for the toolbar
//
//
// Author: The BibleTime team <info@bibletime.info>, (C) 1999-2008
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef BTCOLORWIDGET_H
#define BTCOLORWIDGET_H
#include <QFrame>
class QPaintEvent;
class BtColorWidget : public QFrame
{
Q_OBJECT
public:
BtColorWidget(QWidget* parent=0);
~BtColorWidget();
QSize sizeHint() const;
void setColor(const QColor& color);
protected:
// void paintEvent( QPaintEvent* );
void mouseReleaseEvent(QMouseEvent* event);
private:
void showColorDialog();
QColor m_color;
signals:
void changed(const QColor& color);
};
#endif
|