ViewItem: Make paint_label optional
authorJoel Holdsworth <joel@airwebreathe.org.uk>
Tue, 1 Sep 2015 01:51:00 +0000 (19:51 -0600)
committerJoel Holdsworth <joel@airwebreathe.org.uk>
Sun, 18 Oct 2015 21:32:29 +0000 (15:32 -0600)
pv/view/viewitem.cpp
pv/view/viewitem.hpp

index 662c15de0a46d46392fc97ff6145488c85910533..0c61578c0c2acfcb1517e40009a5a91675568caa 100644 (file)
@@ -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;
index dd3d2aa0c2c61a4969a53c6a5fc899cb5c7e802b..82851e5c2685571b0b063d1c2c816a98299f5234 100644 (file)
@@ -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