Fine tune the position of pictures in the profile

Start a new column a little bit earlier otherwise it will get difficult
to fit a high number of pictures.
Don't put more than ~16 pictures in one column.

Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
Stefan Fuchs 2017-12-11 21:28:33 +01:00 committed by Dirk Hohndel
parent 003e490dd2
commit 7bc77947f6

View file

@ -2014,7 +2014,7 @@ void ProfileWidget2::plotPictures()
x = timeAxis->posAtValue(offsetSeconds);
if (i == 0)
y = 10;
else if (fabs(x - lastX) < 4)
else if (fabs(x - lastX) < 3 && lastY <= (10 + 14 * 3))
y = lastY + 3;
else
y = 10;