Fixed some ClickHandler bugs, bot keyboard active/pressed

states done, handling enterEvent() for ClickHandler activate.
This commit is contained in:
John Preston
2016-03-30 12:03:29 +04:00
parent 7f6cf32cdd
commit 3210aecbd2
8 changed files with 58 additions and 28 deletions
+5
View File
@@ -83,6 +83,11 @@ void FlatLabel::mouseReleaseEvent(QMouseEvent *e) {
}
}
void FlatLabel::enterEvent(QEvent *e) {
_lastMousePos = QCursor::pos();
updateHover();
}
void FlatLabel::leaveEvent(QEvent *e) {
ClickHandler::clearActive(this);
}