|
|
@ -54,15 +54,19 @@ public: |
|
|
|
virtual void clear(); |
|
|
|
virtual void clear(); |
|
|
|
|
|
|
|
|
|
|
|
// QObject interface
|
|
|
|
// QObject interface
|
|
|
|
virtual bool event(QEvent*) override; |
|
|
|
virtual bool event(QEvent *e) override; |
|
|
|
|
|
|
|
|
|
|
|
protected: |
|
|
|
protected: |
|
|
|
// QWidget interface
|
|
|
|
// QWidget interface
|
|
|
|
void enterEvent(QEvent*) override; |
|
|
|
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)) |
|
|
|
void leaveEvent(QEvent*) override; |
|
|
|
void enterEvent(QEnterEvent *e) override; |
|
|
|
void mouseMoveEvent(QMouseEvent*) override; |
|
|
|
#else |
|
|
|
|
|
|
|
void enterEvent(QEvent *e) override; |
|
|
|
void paintEvent(QPaintEvent*) override; |
|
|
|
#endif |
|
|
|
|
|
|
|
void leaveEvent(QEvent *e) override; |
|
|
|
|
|
|
|
void mouseMoveEvent(QMouseEvent *e) override; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void paintEvent(QPaintEvent *e) override; |
|
|
|
void requestImageUpdate(); |
|
|
|
void requestImageUpdate(); |
|
|
|
|
|
|
|
|
|
|
|
QColor backgroundColor() const; |
|
|
|
QColor backgroundColor() const; |
|
|
|