]> sigrok.org Git - pulseview.git/blobdiff - pv/view/viewitem.hpp
ViewItem: Added rect parameter to point()
[pulseview.git] / pv / view / viewitem.hpp
index 3e6801fe3186dffe74c10263f27b4192e95ef871..11efbc0cdd1f7bd79855b7fe4c77cc67583f8922 100644 (file)
@@ -44,6 +44,7 @@ class ViewItem : public QObject
        Q_OBJECT
 
 public:
+       static const QSizeF LabelPadding;
        static const int HighlightRadius;
 
 public:
@@ -87,8 +88,9 @@ public:
 
        /**
         * Get the drag point.
+        * @param rect the rectangle of the widget area.
         */
-       virtual QPoint point() const = 0;
+       virtual QPoint point(const QRect &rect) const = 0;
 
        /**
         * Computes the outline rectangle of a label.