projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ViewItem: Added rect parameter to point()
[pulseview.git]
/
pv
/
view
/
viewitem.hpp
diff --git
a/pv/view/viewitem.hpp
b/pv/view/viewitem.hpp
index 3e6801fe3186dffe74c10263f27b4192e95ef871..11efbc0cdd1f7bd79855b7fe4c77cc67583f8922 100644
(file)
--- a/
pv/view/viewitem.hpp
+++ b/
pv/view/viewitem.hpp
@@
-44,6
+44,7
@@
class ViewItem : public QObject
Q_OBJECT
public:
Q_OBJECT
public:
+ static const QSizeF LabelPadding;
static const int HighlightRadius;
public:
static const int HighlightRadius;
public:
@@
-87,8
+88,9
@@
public:
/**
* Get the drag point.
/**
* 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.
/**
* Computes the outline rectangle of a label.