X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Fviewitem.cpp;h=b833b4bbad0c19d2ea3afd6974381e35ecdf82fd;hb=09d5df110bc035256dcd8287094fe1a3b8e67466;hp=0d83ee846f01547f609c91fac8a8c85f4b566208;hpb=26e3af6b15f083239981729b2c3c109ed1d87ba8;p=pulseview.git diff --git a/pv/view/viewitem.cpp b/pv/view/viewitem.cpp index 0d83ee8..b833b4b 100644 --- a/pv/view/viewitem.cpp +++ b/pv/view/viewitem.cpp @@ -29,7 +29,7 @@ namespace pv { namespace view { -const int ViewItem::HighlightRadius = 6; +const int ViewItem::HighlightRadius = 3; ViewItem::ViewItem() : context_parent_(NULL), @@ -81,10 +81,28 @@ void ViewItem::delete_pressed() QPen ViewItem::highlight_pen() { return QPen(QApplication::palette().brush( - QPalette::Highlight), HighlightRadius, + QPalette::Highlight), HighlightRadius * 2, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin); } +void ViewItem::paint_back(QPainter &p, const ViewItemPaintParams &pp) +{ + (void)p; + (void)pp; +} + +void ViewItem::paint_mid(QPainter &p, const ViewItemPaintParams &pp) +{ + (void)p; + (void)pp; +} + +void ViewItem::paint_fore(QPainter &p, const ViewItemPaintParams &pp) +{ + (void)p; + (void)pp; +} + QColor ViewItem::select_text_colour(QColor background) { return (background.lightness() > 64) ? Qt::black : Qt::white;