From: Joel Holdsworth Date: Tue, 1 Sep 2015 01:51:00 +0000 (-0600) Subject: ViewItem: Make paint_label optional X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=commitdiff_plain;h=fa792224c7c38519b0e7b58e997f82815cd53966;hp=4b5782e1c7b6fec1f9c4ff2ba6f282cadecd70cd ViewItem: Make paint_label optional --- diff --git a/pv/view/viewitem.cpp b/pv/view/viewitem.cpp index 662c15d..0c61578 100644 --- a/pv/view/viewitem.cpp +++ b/pv/view/viewitem.cpp @@ -93,6 +93,13 @@ QPen ViewItem::highlight_pen() Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin); } +void ViewItem::paint_label(QPainter &p, const QRect &rect, bool hover) +{ + (void)p; + (void)rect; + (void)hover; +} + void ViewItem::paint_back(QPainter &p, const ViewItemPaintParams &pp) { (void)p; diff --git a/pv/view/viewitem.hpp b/pv/view/viewitem.hpp index dd3d2aa..82851e5 100644 --- a/pv/view/viewitem.hpp +++ b/pv/view/viewitem.hpp @@ -116,7 +116,7 @@ public: * @param rect the rectangle of the header area. * @param hover true if the label is being hovered over by the mouse. */ - virtual void paint_label(QPainter &p, const QRect &rect, bool hover) = 0; + virtual void paint_label(QPainter &p, const QRect &rect, bool hover); /** * Paints the background layer of the item with a QPainter