Skip to content

Commit

Permalink
Unblacklist tst_QGraphicsProxyWidget::windowOpacity on macOS
Browse files Browse the repository at this point in the history
Setting the opacity on an NSWindow does not result in a paint event.

Pick-to: 6.8
Change-Id: I6d2780191ba97082f7ca80e2aa1094ccf796fb75
Reviewed-by: Volker Hilsheimer <[email protected]>
  • Loading branch information
torarnv committed Sep 19, 2024
1 parent 0a1c5d6 commit 3d1ec9e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
[scrollUpdate]
android
b2qt
[windowOpacity]
macos ci
[wheelEventPropagation]
android
[forwardTouchEvent]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2609,11 +2609,8 @@ void tst_QGraphicsProxyWidget::windowOpacity()
// and not on the widget or the proxy itself. The entire proxy needs an update
// in case it has a window decoration. Update: QGraphicsItem::CacheMode is
// disabled on platforms without alpha channel support in QPixmap (e.g.,
// X11 without XRender). On macOS, we always get a paint event.
// X11 without XRender).
int paints = 0;
#ifdef Q_OS_MACOS
paints = 1;
#endif
QTRY_COMPARE(eventSpy.counts[QEvent::UpdateRequest], 0);
QTRY_COMPARE(eventSpy.counts[QEvent::Paint], paints);

Expand Down

0 comments on commit 3d1ec9e

Please sign in to comment.