mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-08 20:20:44 +00:00
Align pressure details, and hide Events string while alt pressed to fit on smaller screens
This commit is contained in:
parent
ed3df8b773
commit
b7fca58fd1
@ -266,7 +266,7 @@ void gLineChart::paint(QPainter &painter, gGraph &w, const QRegion ®ion)
|
|||||||
|
|
||||||
int wid, h;
|
int wid, h;
|
||||||
GetTextExtent(text, wid, h);
|
GetTextExtent(text, wid, h);
|
||||||
w.renderText(text, left + width/2 - wid/2, top -h);
|
w.renderText(text, left + width/2 - wid/2, top-h+4);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -352,9 +352,10 @@ void gLineOverlaySummary::paint(QPainter &painter, gGraph &w, const QRegion ®
|
|||||||
if ((w.graphView()->selectionInProgress() || w.graphView()->metaSelect()) && (!w.selDurString().isEmpty())) {
|
if ((w.graphView()->selectionInProgress() || w.graphView()->metaSelect()) && (!w.selDurString().isEmpty())) {
|
||||||
a = QObject::tr("Duration")+": "+w.selDurString();
|
a = QObject::tr("Duration")+": "+w.selDurString();
|
||||||
} else {
|
} else {
|
||||||
|
if (!w.graphView()->metaSelect()) {
|
||||||
a = QObject::tr("Events") + ": " + QString::number(cnt) + ", " +
|
a = QObject::tr("Events") + ": " + QString::number(cnt) + ", " +
|
||||||
QObject::tr("Duration") + " " + QString().sprintf("%02i:%02i:%02i", h, m, s) + ", " + m_text + ": " + QString::number(val, 'f', 2);
|
QObject::tr("Duration") + " " + QString().sprintf("%02i:%02i:%02i", h, m, s) + ", " + m_text + ": " + QString::number(val, 'f', 2);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (isSpan) {
|
if (isSpan) {
|
||||||
float sph;
|
float sph;
|
||||||
|
Loading…
Reference in New Issue
Block a user