DPI Scale errors

.. overview window constraints on size

.. workout editor hide toolbar when small
This commit is contained in:
Mark Liversedge
2020-02-01 17:10:09 +00:00
parent 2ef1f407b5
commit 8ea4524630
2 changed files with 2 additions and 2 deletions

View File

@@ -2749,7 +2749,7 @@ OverviewWindow::eventFilter(QObject *, QEvent *event)
// min max width
if (setcolumn < 800) setcolumn = 800;
if (setcolumn > 2400) setcolumn = 2400;
if (setcolumn > 4400) setcolumn = 4400;
columns[stateData.xresize.column] = setcolumn;

View File

@@ -240,7 +240,7 @@ void
WorkoutWindow::resizeEvent(QResizeEvent *)
{
// show or hide toolbar if big enough
if (!recording && height() > MINTOOLHEIGHT) toolbar->show();
if (!recording && height() > (MINTOOLHEIGHT*dpiYFactor)) toolbar->show();
else toolbar->hide();
}