const int Trace::LabelHitPadding = 2;
Trace::Trace(QString name) :
- _view(NULL),
_name(name),
- _v_offset(0),
_popup(NULL),
_popup_form(NULL)
{
_colour = colour;
}
-int Trace::get_v_offset() const
-{
- return _v_offset;
-}
-
-void Trace::set_v_offset(int v_offset)
-{
- _v_offset = v_offset;
-}
-
-void Trace::set_view(pv::view::View *view)
-{
- assert(view);
- _view = view;
-}
-
-void Trace::paint_back(QPainter &p, int left, int right)
-{
- (void)p;
- (void)left;
- (void)right;
-}
-
-void Trace::paint_mid(QPainter &p, int left, int right)
-{
- (void)p;
- (void)left;
- (void)right;
-}
-
-void Trace::paint_fore(QPainter &p, int left, int right)
-{
- (void)p;
- (void)left;
- (void)right;
-}
-
void Trace::paint_label(QPainter &p, int right, bool hover)
{
const int y = get_y();
return _popup;
}
-int Trace::get_y() const
-{
- assert(_view);
- return _v_offset - _view->v_offset();
-}
-
QRectF Trace::label_rect(int right)
{
using pv::view::View;
label_size.height());
}
-void Trace::hover_point_changed()
-{
-}
-
QColor Trace::get_text_colour() const
{
return (_colour.lightness() > 64) ? Qt::black : Qt::white;