Fix flickering when running with Direct2D (#4851)

This commit is contained in:
nerix
2023-10-01 07:13:37 +02:00
committed by GitHub
parent 4d8b62364d
commit 916427a612
6 changed files with 14 additions and 5 deletions
+7 -1
View File
@@ -56,7 +56,13 @@ signals:
void leftMousePress();
protected:
virtual void paintEvent(QPaintEvent *) override;
void paintEvent(QPaintEvent * /*event*/) override;
/// Paint this button.
/// This is intended for child classes that may want to paint the overlay.
/// This function should be used after rendering the custom button,
/// because the painter's state will be modified by this function.
void paintButton(QPainter &painter);
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
void enterEvent(QEnterEvent * /*event*/) override;
#else