diff libgui/graphics/PushButtonControl.cc @ 29277:486ff0874d68

Fix regression with icon size on uicontrol buttons (bug #59827). * PushButtonControl.cc, ToggleButtonControl.cc (update): Call setIconSize() after updating icon with setIcon().
author Rik <rik@octave.org>
date Thu, 07 Jan 2021 09:48:27 -0800
parents a56ee7986ea4
children 7854d5752dd2
line wrap: on
line diff
--- a/libgui/graphics/PushButtonControl.cc	Thu Jan 07 18:02:15 2021 +0100
+++ b/libgui/graphics/PushButtonControl.cc	Thu Jan 07 09:48:27 2021 -0800
@@ -92,6 +92,7 @@
                                                   cdat.rows (),
                                                   cdat.columns ());
           btn->setIcon (QIcon (QPixmap::fromImage (img)));
+          btn->setIconSize (QSize (cdat.columns (), cdat.rows ()));
         }
         break;