qt5base-lts/tests/auto/widgets
Dongmei Wang eea585ad0b QMenu: Fix margins related display issues
Currently the contents margins and the menu paddings are not considered
for calculating the menu size, the positions and the size of tear-off
bar, scrollers and the positions of the menu items when scrolling the
menu, which results in the following problems when valid contents
margins and/or menu paddings are set:

- The tear off area is displayed in a wrong position. The mouse events
are not handled correctly in the tear off area. For example, when you
click in the tear off area, the menu should be torn off but nothing
happens
- For a multi-column menu, the menu width is not calculated correctly
- For a scrollable menu,
  - the menu width is not calculated correctly
  - the menu items are not displayed in correct positions
  - the scrollers are not displayed in correct positions
  - menu items are displayed on the area of borders and margins when
    scrolling the menu
  - the last menu item is not displayed above the bottom of the content
    area when scrolling the menu to the end.

The changes are to fix the problems above.

Change-Id: I7931e1088dff0029f2d4825e2aa34b4e32fdccd9
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@qt.io>
2017-04-14 17:06:00 +00:00
..
dialogs Merge remote-tracking branch 'origin/5.8' into 5.9 2017-02-08 15:49:18 +01:00
effects QtWidgets: Remove Windows CE. 2016-04-07 10:24:45 +00:00
gestures autotests: use QTest::createTouchDevice() 2016-06-10 13:07:17 +00:00
graphicsview Merge remote-tracking branch 'origin/5.8' into 5.9 2017-04-06 14:16:31 +02:00
itemviews Fix tst_QDirModel for qemu 2017-04-07 05:53:47 +00:00
kernel Extend blacklisting of tst_QWidget to cover Ubuntu 16.04 2017-04-03 06:54:04 +00:00
styles tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
util Merge remote-tracking branch 'origin/5.8' into 5.9 2017-03-13 15:55:44 +01:00
widgets QMenu: Fix margins related display issues 2017-04-14 17:06:00 +00:00
widgets.pro Add autotest for QGestureRecognizer. 2014-10-23 21:11:28 +02:00