projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RowItemOwner: Renamed appearance_changed to row_item_appearance_changed
[pulseview.git]
/
pv
/
view
/
view.hpp
diff --git
a/pv/view/view.hpp
b/pv/view/view.hpp
index 026c7683ffaef224c501ed94ad6cdbe586452742..9ba86b7260b1d72935e857b50c88ea28d499ed86 100644
(file)
--- a/
pv/view/view.hpp
+++ b/
pv/view/view.hpp
@@
-53,8
+53,8
@@
class View : public QAbstractScrollArea, public RowItemOwner {
private:
enum StickyEvents {
private:
enum StickyEvents {
-
Selectable
ItemHExtentsChanged = 1,
-
Selectable
ItemVExtentsChanged = 2
+
Row
ItemHExtentsChanged = 1,
+
Row
ItemVExtentsChanged = 2
};
private:
};
private:
@@
-200,19
+200,17
@@
private:
/**
* Satisifies RowItem functionality.
* @param p the QPainter to paint into.
/**
* Satisifies RowItem functionality.
* @param p the QPainter to paint into.
- * @param right the x-coordinate of the right edge of the header
- * area.
+ * @param rect the rectangle of the header area.
* @param hover true if the label is being hovered over by the mouse.
*/
* @param hover true if the label is being hovered over by the mouse.
*/
- void paint_label(QPainter &p,
int righ
t, bool hover);
+ void paint_label(QPainter &p,
const QRect &rec
t, bool hover);
/**
* Computes the outline rectangle of a label.
/**
* Computes the outline rectangle of a label.
- * @param right the x-coordinate of the right edge of the header
- * area.
+ * @param rect the rectangle of the header area.
* @return Returns the rectangle of the signal label.
*/
* @return Returns the rectangle of the signal label.
*/
- QRectF label_rect(
int righ
t);
+ QRectF label_rect(
const QRectF &rec
t);
static bool add_channels_to_owner(
const std::vector< std::shared_ptr<sigrok::Channel> > &channels,
static bool add_channels_to_owner(
const std::vector< std::shared_ptr<sigrok::Channel> > &channels,
@@
-233,7
+231,7
@@
private:
void resizeEvent(QResizeEvent *e);
public:
void resizeEvent(QResizeEvent *e);
public:
- void appearance_changed(bool label, bool content);
+ void
row_item_
appearance_changed(bool label, bool content);
void extents_changed(bool horz, bool vert);
void extents_changed(bool horz, bool vert);