]> sigrok.org Git - pulseview.git/commitdiff
View: Fixed naming of View::RowItem{H,V}ExtentsChanged
authorJoel Holdsworth <redacted>
Sat, 13 Dec 2014 15:01:14 +0000 (15:01 +0000)
committerJoel Holdsworth <redacted>
Sat, 20 Dec 2014 10:57:09 +0000 (10:57 +0000)
pv/view/view.cpp
pv/view/view.hpp

index f349861f226fe0f1833974b0d9ca9216e6a1466c..6cd274b0dc8f74605f480baaadfb61e7a725cfd3 100644 (file)
@@ -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
index 5fc6e4e0a619c94442dea0e34e87dab8438af02c..59d51d18e09fbf4efe0bb5ea7960b00f8b6343d3 100644 (file)
@@ -53,8 +53,8 @@ class View : public QAbstractScrollArea, public RowItemOwner {
 
 private:
        enum StickyEvents {
-               SelectableItemHExtentsChanged = 1,
-               SelectableItemVExtentsChanged = 2
+               RowItemHExtentsChanged = 1,
+               RowItemVExtentsChanged = 2
        };
 
 private: