20 lines
265 B
C++
20 lines
265 B
C++
#pragma once
|
|
|
|
#include <QCheckBox>
|
|
#include <QPixmap>
|
|
|
|
class QPaintEvernt;
|
|
|
|
class LockedCheckBox : public QCheckBox {
|
|
Q_OBJECT
|
|
|
|
QPixmap lockedImage;
|
|
QPixmap unlockedImage;
|
|
|
|
public:
|
|
LockedCheckBox();
|
|
|
|
protected:
|
|
void paintEvent(QPaintEvent *event) override;
|
|
};
|