ViewItem: Make paint_label optional
[pulseview.git] / pv / view / viewitem.hpp
index 5b80c4e86efdb8fe3e9a95320bcd3aa232cd65a4..82851e5c2685571b0b063d1c2c816a98299f5234 100644 (file)
@@ -39,6 +39,8 @@ class Popup;
 
 namespace view {
 
+class ViewItemOwner;
+
 class ViewItem : public QObject
 {
        Q_OBJECT
@@ -114,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