void
IntervalSummaryWindow::intervalHover(RideFileInterval x)
{
    // if we're not visible don't bother
    if (!isVisible()) return;

    // we already have summries!
    if (context->athlete->intervalWidget->selectedItems().count()) return;

    QString html = GCColor::css();
    html += "<body>";

    if (x == RideFileInterval()) {
    	html += "<i>" + tr("select an interval for summary info") + "</i>";
    } else {
        calcInterval(x, html);
    }
    html += "</body>";
    setHtml(html);
    return;
}
Esempio n. 2
0
void
Athlete::intervalTreeWidgetSelectionChanged()
{
    context->notifyIntervalHover(RideFileInterval()); // clear
    context->notifyIntervalSelected();
}