overflows when clipping fixed

This commit is contained in:
Uwe Rathmann 2020-11-19 16:23:43 +01:00
parent 4e983f4b07
commit 6be542394a

View File

@ -144,8 +144,10 @@ namespace
Often the current tab button grows beyond the bounding rectangle
of the tab bar, so that it looks like being on top of the tab page
border. So we only want to clip in scroll direction.
Note: std::numeric_limits< int >::max() does not work - guess
some overflow somewhere ...
*/
constexpr qreal expanded = std::numeric_limits< int >::max();
constexpr qreal expanded = 0.90 * std::numeric_limits< int >::max();
if ( flickableOrientations() & Qt::Horizontal )
{