From: Joel Holdsworth Date: Sat, 13 Dec 2014 15:01:14 +0000 (+0000) Subject: View: Fixed naming of View::RowItem{H,V}ExtentsChanged X-Git-Tag: pulseview-0.3.0~357 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=76fea660eea8a2e1963b4703906392a0999669d0;p=pulseview.git View: Fixed naming of View::RowItem{H,V}ExtentsChanged --- diff --git a/pv/view/view.cpp b/pv/view/view.cpp index f349861f..6cd274b0 100644 --- a/pv/view/view.cpp +++ b/pv/view/view.cpp @@ -618,8 +618,8 @@ void View::appearance_changed(bool label, bool content) void View::extents_changed(bool horz, bool vert) { sticky_events_ |= - (horz ? SelectableItemHExtentsChanged : 0) | - (vert ? SelectableItemVExtentsChanged : 0); + (horz ? RowItemHExtentsChanged : 0) | + (vert ? RowItemVExtentsChanged : 0); lazy_event_handler_.start(); } @@ -742,9 +742,9 @@ void View::on_signals_moved() void View::process_sticky_events() { - if (sticky_events_ & SelectableItemHExtentsChanged) + if (sticky_events_ & RowItemHExtentsChanged) update_layout(); - if (sticky_events_ & SelectableItemVExtentsChanged) + if (sticky_events_ & RowItemVExtentsChanged) restack_all_row_items(); // Clear the sticky events diff --git a/pv/view/view.hpp b/pv/view/view.hpp index 5fc6e4e0..59d51d18 100644 --- a/pv/view/view.hpp +++ b/pv/view/view.hpp @@ -53,8 +53,8 @@ class View : public QAbstractScrollArea, public RowItemOwner { private: enum StickyEvents { - SelectableItemHExtentsChanged = 1, - SelectableItemVExtentsChanged = 2 + RowItemHExtentsChanged = 1, + RowItemVExtentsChanged = 2 }; private: