X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Fselectableitem.hpp;h=b61c54d6430bebd04c575a2ee3e101285e9ee34e;hb=4a5c385ee6a9ce387e0fe908f4d9367aa96d8342;hp=29a5c9557973b852504e4a1ff7d7ca7bdcdad80e;hpb=689dea92f288564260ef521f6f499e03e3cdbbd2;p=pulseview.git diff --git a/pv/view/selectableitem.hpp b/pv/view/selectableitem.hpp index 29a5c95..b61c54d 100644 --- a/pv/view/selectableitem.hpp +++ b/pv/view/selectableitem.hpp @@ -88,6 +88,13 @@ public: */ virtual QPoint point() const = 0; + /** + * Computes the outline rectangle of a label. + * @param rect the rectangle of the header area. + * @return Returns the rectangle of the signal label. + */ + virtual QRectF label_rect(const QRectF &rect) const = 0; + public: /** * Gets the text colour.