[go: up one dir, main page]

Menu

[ceb706]: / buttoncolor.h  Maximize  Restore  History

Download this file

33 lines (21 with data), 464 Bytes

 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
#ifndef BUTTONCOLOR_H
#define BUTTONCOLOR_H
#include <QPushButton>
class ButtonColor : public QPushButton
{
Q_OBJECT
public:
explicit ButtonColor(QColor color,QWidget *parent = 0);
signals:
void colorChanged() ;
public slots:
void setColor(QColor color);
QColor color(){
return m_color;
}
private:
QColor m_color;
private slots:
void getColor();
};
#endif // BUTTONCOLOR_H