#include "ElaCheckBox.h"

#include "ElaCheckBoxStyle.h"
ElaCheckBox::ElaCheckBox(QWidget *parent) : QCheckBox(parent) {
    _pBorderRadius = 3;
    setMouseTracking(true);
    setObjectName("ElaCheckBox");
    setStyle(new ElaCheckBoxStyle(style()));
    QFont font = this->font();
    font.setPixelSize(15);
    setFont(font);
}

ElaCheckBox::ElaCheckBox(const QString &text, QWidget *parent) : ElaCheckBox(parent) { setText(text); }

ElaCheckBox::~ElaCheckBox() { delete this->style(); }
