mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-02-26 04:00:49 +01:00
Fixed/tweaked export output layout
This commit is contained in:
parent
ce38077281
commit
e83be4d553
@ -1161,6 +1161,7 @@ void GUI::plotMainPage(QPainter *painter, const QRectF &rect, qreal ratio,
|
|||||||
QLocale l(QLocale::system());
|
QLocale l(QLocale::system());
|
||||||
TrackInfo info;
|
TrackInfo info;
|
||||||
qreal ih, gh, mh;
|
qreal ih, gh, mh;
|
||||||
|
int sc;
|
||||||
|
|
||||||
|
|
||||||
if (!_pathName.isNull() && _options.printName)
|
if (!_pathName.isNull() && _options.printName)
|
||||||
@ -1209,11 +1210,15 @@ void GUI::plotMainPage(QPainter *painter, const QRectF &rect, qreal ratio,
|
|||||||
gh = (rect.width() > rect.height())
|
gh = (rect.width() > rect.height())
|
||||||
? 0.15 * r * (rect.height() - ih - 2*mh)
|
? 0.15 * r * (rect.height() - ih - 2*mh)
|
||||||
: 0.15 * (rect.height() - ih - 2*mh);
|
: 0.15 * (rect.height() - ih - 2*mh);
|
||||||
|
if (gh < 150)
|
||||||
|
gh = 150;
|
||||||
|
sc = 2;
|
||||||
GraphTab *gt = static_cast<GraphTab*>(_graphTabWidget->currentWidget());
|
GraphTab *gt = static_cast<GraphTab*>(_graphTabWidget->currentWidget());
|
||||||
gt->plot(painter, QRectF(rect.x(), rect.y() + rect.height() - gh,
|
gt->plot(painter, QRectF(rect.x(), rect.y() + rect.height() - gh,
|
||||||
rect.width(), gh), ratio);
|
rect.width(), gh), ratio);
|
||||||
} else {
|
} else {
|
||||||
gh = 0;
|
gh = 0;
|
||||||
|
sc = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
MapView::PlotFlags flags = MapView::NoFlags;
|
MapView::PlotFlags flags = MapView::NoFlags;
|
||||||
@ -1223,7 +1228,7 @@ void GUI::plotMainPage(QPainter *painter, const QRectF &rect, qreal ratio,
|
|||||||
flags |= MapView::Expand;
|
flags |= MapView::Expand;
|
||||||
|
|
||||||
_mapView->plot(painter, QRectF(rect.x(), rect.y() + ih + mh, rect.width(),
|
_mapView->plot(painter, QRectF(rect.x(), rect.y() + ih + mh, rect.width(),
|
||||||
rect.height() - (ih + 2*mh + gh)), ratio, flags);
|
rect.height() - (ih + sc*mh + gh)), ratio, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GUI::plotGraphsPage(QPainter *painter, const QRectF &rect, qreal ratio)
|
void GUI::plotGraphsPage(QPainter *painter, const QRectF &rect, qreal ratio)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user