Ticket #8567: tooltip.patch

File tooltip.patch, 1014 bytes (added by dburkart, 4 years ago)

Adds tooltip while scrubbing around on a track

  • src/apps/mediaplayer/interface/TransportControlGroup.cpp

    diff --git a/src/apps/mediaplayer/interface/TransportControlGroup.cpp b/src/apps/mediaplayer/interface/TransportControlGroup.cpp
    index 1aa4c60..9e1e1f5 100644
    a b  
    1717#include <Shape.h>
    1818#include <SpaceLayoutItem.h>
    1919#include <String.h>
     20#include <ToolTipManager.h>
    2021
    2122#include "DurationView.h"
    2223#include "PeakView.h"
    TransportControlGroup::SetPosition(float value, bigtime_t position,  
    483484    fPositionToolTip->Update(position, duration);
    484485    fDurationView->Update(position, duration);
    485486
    486     if (fSeekSlider->IsTracking())
     487    if (fSeekSlider->IsTracking()) {
     488        BToolTipManager *manager = BToolTipManager::Manager();
     489        manager->ShowTip(fPositionToolTip, fPositionToolTip->MouseRelativeLocation(), this);
    487490        return;
     491    }
    488492
    489493    fSeekSlider->SetPosition(value);
    490494}
    TransportControlGroup::_CreateSpeakerShape(float height) const  
    845849
    846850    return shape;
    847851}
    848