18 lines
261 B
C++
18 lines
261 B
C++
|
#include <QCheckBox>
|
||
|
#include <QPixmap>
|
||
|
|
||
|
class QPaintEvernt;
|
||
|
|
||
|
class VisibilityCheckBox : public QCheckBox {
|
||
|
Q_OBJECT
|
||
|
|
||
|
QPixmap checkedImage;
|
||
|
QPixmap uncheckedImage;
|
||
|
|
||
|
public:
|
||
|
VisibilityCheckBox();
|
||
|
|
||
|
protected:
|
||
|
void paintEvent(QPaintEvent *event) override;
|
||
|
};
|