commit before modify
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#pragma execution_character_set("utf-8")
|
||||
#pragma execution_character_set("utf-8")
|
||||
|
||||
#include "imageswitch.h"
|
||||
#include "qpainter.h"
|
||||
@@ -19,6 +19,7 @@ void ImageSwitch::mousePressEvent(QMouseEvent*)
|
||||
imgFile = isChecked ? imgOffFile : imgOnFile;
|
||||
isChecked = !isChecked;
|
||||
this->update();
|
||||
emit clicked();
|
||||
}
|
||||
|
||||
void ImageSwitch::paintEvent(QPaintEvent*)
|
||||
|
||||
Reference in New Issue
Block a user