More wxQt fixes. (PR #24309)

15 views
Skip to first unread message

dsa-t

unread,
Feb 12, 2024, 10:52:59 AM2/12/24
to wx-...@googlegroups.com, Subscribed

Fixes for some more bugs encountered when running KiCad.


You can view, comment on, or merge this pull request online at:

  https://github.com/wxWidgets/wxWidgets/pull/24309

Commit Summary

  • 7a0149d Show popup menu at cursor on wxQt if needed.
  • e011963 Support SetLabel/GetLabel for wxRadioBox/wxRadioButton on wxQt.
  • 6ff8678 Call base class in SetLabel for some widgets on wxQt.
  • ffe38f2 Support mask in wxBitmap from wxImage on wxQt.

File Changes

(9 files)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/24309@github.com>

VZ

unread,
Feb 12, 2024, 11:09:27 AM2/12/24
to wx-...@googlegroups.com, Subscribed

@vadz approved this pull request.

Looks good to me, thanks!

@AliKet any comments?


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/24309/review/1875602521@github.com>

AliKet

unread,
Feb 12, 2024, 12:04:52 PM2/12/24
to wx-...@googlegroups.com, Subscribed

@AliKet commented on this pull request.


In src/qt/bitmap.cpp:

> @@ -237,6 +237,9 @@ void wxBitmap::InitFromImage(const wxImage& image, int depth, double WXUNUSED(sc
                  ? QBitmap::fromImage(ConvertImage(image), Qt::ThresholdDither)
                  : QPixmap::fromImage(ConvertImage(image, &mask));
 
+    if (mask)
+        qtImage.setMask(*mask->GetHandle());
+

Keeping the mask seperated from the qtImage is intentional because this is how the other ports works. IOW, setMask() merges the mask with the pixmap's alpha channel. And AFAIK none of the other ports do this by default.
If you really want the mask be merged just be explicit and call wxBitmap::QtBlendMaskWithAlpha()


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/24309/review/1875752366@github.com>

dsa-t

unread,
Feb 12, 2024, 12:50:35 PM2/12/24
to wx-...@googlegroups.com, Push

@dsa-t pushed 1 commit.

  • bff40b6 Blend mask with alpha for wxCursor initialized from wxImage on wxQt.


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/24309/push/17057451261@github.com>

AliKet

unread,
Feb 12, 2024, 1:02:19 PM2/12/24
to wx-...@googlegroups.com, Subscribed

@AliKet approved this pull request.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/24309/review/1875861903@github.com>

VZ

unread,
Feb 13, 2024, 4:10:12 PM2/13/24
to wx-...@googlegroups.com, Subscribed

Merged #24309 into master.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/24309/issue_event/11794007567@github.com>

Reply all
Reply to author
Forward
0 new messages