onboarding: set the Qt::WA_OpaquePaintEvent attribute (#21763)

old-commit-hash: 38a44f5ea1b663fe8bb906bcdd8cbd7935be5e4a
This commit is contained in:
Dean Lee
2021-07-29 02:17:25 +08:00
committed by GitHub
parent a73fe222ce
commit f25bfd3754
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -11,6 +11,10 @@
#include "selfdrive/ui/qt/util.h"
#include "selfdrive/ui/qt/widgets/input.h"
TrainingGuide::TrainingGuide(QWidget *parent) : QFrame(parent) {
setAttribute(Qt::WA_OpaquePaintEvent);
}
void TrainingGuide::mouseReleaseEvent(QMouseEvent *e) {
if (boundingRect[currentIndex].contains(e->x(), e->y())) {
if (currentIndex == 9) {
+1 -1
View File
@@ -13,7 +13,7 @@ class TrainingGuide : public QFrame {
Q_OBJECT
public:
explicit TrainingGuide(QWidget *parent = 0) : QFrame(parent) {};
explicit TrainingGuide(QWidget *parent = 0);
private:
void showEvent(QShowEvent *event) override;