Align pressure details, and hide Events string while alt pressed to fit on smaller screens

This commit is contained in:
Mark Watkins 2014-07-21 02:48:43 +10:00
parent ed3df8b773
commit b7fca58fd1
2 changed files with 4 additions and 3 deletions

View File

@ -266,7 +266,7 @@ void gLineChart::paint(QPainter &painter, gGraph &w, const QRegion &region)
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);
} }
} }

View File

@ -352,9 +352,10 @@ void gLineOverlaySummary::paint(QPainter &painter, gGraph &w, const QRegion &reg
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;