diff --git a/customcheckablebutton.cpp b/customcheckablebutton.cpp new file mode 100644 --- /dev/null +++ b/customcheckablebutton.cpp @@ -0,0 +1,12 @@ +#include "customcheckablebutton.h" + +CustomCheckableButton::CustomCheckableButton(QWidget *parent) : + QPushButton(parent) +{ + this->setCheckable(true); +} + +void CustomCheckableButton::nextCheckState() +{ + /* Do nothing! Check state will be altered by parent. */ +}