Skip to content

Commit

Permalink
User Chart UI tweaks
Browse files Browse the repository at this point in the history
.. scaling maximum increased to x10 which helps on hi-dpi
   displays and the overview

.. slightly reduce the border on overview to make more of
   the available screen real estate.
  • Loading branch information
liversedge committed Aug 24, 2021
1 parent 524dad3 commit 1e18321
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Charts/UserChart.cpp
Expand Up @@ -777,9 +777,9 @@ UserChartSettings::UserChartSettings(Context *context, bool rangemode, GenericCh
scale = new QSlider(Qt::Horizontal, this);
scale->setTickInterval(1);
scale->setMinimum(1);
scale->setMaximum(9);
scale->setMaximum(18);
scale->setSingleStep(1);
scale->setValue(1 + ((chart.scale-1)*2)); // 1-5 mapped to 1-7, where scale is 1,1.5,2,2.5,3,3.5,4,4.5,5
scale->setValue(1 + ((chart.scale-1)*2)); // scale is in increments of 0.5
cf->addRow(tr("Scale"), scale);


Expand Down
2 changes: 1 addition & 1 deletion src/Charts/UserChartOverviewItem.cpp
Expand Up @@ -98,7 +98,7 @@ void
UserChartOverviewItem::itemGeometryChanged() {

QRectF geom = geometry();
proxy->setGeometry(QRectF(geom.x()+40,geom.y()+(ROWHEIGHT*2),geom.width()-80, geom.height()-((ROWHEIGHT*2)+40)));
proxy->setGeometry(QRectF(geom.x()+20,geom.y()+(ROWHEIGHT*2),geom.width()-40, geom.height()-((ROWHEIGHT*2)+20)));

if (drag) chart->hide();
else /*if (parent->state != ChartSpace::DRAG)*/ chart->show();
Expand Down

0 comments on commit 1e18321

Please sign in to comment.