qt6-bb10/tests/auto/widgets
Giuseppe D'Angelo bb3d2ca9f1 QToolButton: properly reset the size hint when a menu is set on it
QToolButton::sizeHint() takes into account the presence of a menu.
However, setMenu() doesn't retrigger a size hint recalculation. Hence,
(un)setting a menu on an already sized tool button won't properly
reset the size hint. Since the calculated size hint is cached,
delete the cached value and call updateGeometry to cause a
recalculation.

Task-number: QTBUG-38949
Change-Id: I6e79e5e70e31afdfd129282b3668875eca86f51d
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
2014-09-16 22:42:47 +02:00
..
dialogs Ensure transient parents are top level widgets. 2014-07-18 09:25:05 +02:00
effects QtWidgets tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-28 02:02:14 +01:00
graphicsview Stabilize and speed up tst_QGraphicsItem::cursor(). 2014-05-22 21:44:01 +02:00
itemviews Fix visual index lookup in QTreeViewPrivate::adjustViewOptionsForIndex(). 2014-05-06 16:35:56 +02:00
kernel Avoid adding widget to its own layout 2014-09-05 00:05:45 +02:00
styles Uncomment some tests which accidently got commented 2014-08-07 10:08:51 +02:00
util QNX: Fix QCompleter autotest 2014-04-09 20:53:06 +02:00
widgets QToolButton: properly reset the size hint when a menu is set on it 2014-09-16 22:42:47 +02:00
widgets.pro