diff --git a/oscar/Graphs/gLineOverlay.cpp b/oscar/Graphs/gLineOverlay.cpp index 9ae0ddd4..b2d731cf 100644 --- a/oscar/Graphs/gLineOverlay.cpp +++ b/oscar/Graphs/gLineOverlay.cpp @@ -223,7 +223,10 @@ void gLineOverlayBar::paint(QPainter &painter, gGraph &w, const QRegion ®ion) painter.drawRect(rect); // Queue tooltip - QString lab2 = QString("%1 (%2)").arg(schema::channel[m_code].fullname()).arg(raw); + QString lab2 = QString("%1").arg(schema::channel[m_code].fullname()); + if (raw != 0) // Hide duration when it is zero + lab2 += QString(" (%1)").arg(raw); + w.ToolTip(lab2, x1 - 10, start_py + 24 + (3 * w.printScaleY()), TT_AlignRight, AppSetting->tooltipTimeout()); painter.setPen(QPen(col,3));