X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fview.cpp;h=c6a6afd323dcccac191061bfac65c640bac36c68;hp=6a342915972312b96e29e731fd75fed59191df6e;hb=2ad82c2e40b6865481733913a2c32735602f63c4;hpb=a3f678a7cad210fe796f4a76370996a1284da6d4 diff --git a/pv/view/view.cpp b/pv/view/view.cpp index 6a342915..c6a6afd3 100644 --- a/pv/view/view.cpp +++ b/pv/view/view.cpp @@ -408,8 +408,7 @@ pair View::get_time_extents() const { boost::optional left_time, right_time; const set< shared_ptr > visible_data = get_visible_data(); - for (const shared_ptr d : visible_data) - { + for (const shared_ptr d : visible_data) { const vector< shared_ptr > segments = d->segments(); for (const shared_ptr &s : segments) { @@ -727,8 +726,7 @@ vector< shared_ptr > View::extract_new_traces_for_channels( { vector< shared_ptr > filtered_traces; - for (const auto &channel : channels) - { + for (const auto &channel : channels) { const auto map_iter = signal_map.find(channel); if (map_iter == signal_map.end()) continue; @@ -793,7 +791,7 @@ bool View::eventFilter(QObject *object, QEvent *event) bool View::viewportEvent(QEvent *e) { - switch(e->type()) { + switch (e->type()) { case QEvent::Paint: case QEvent::MouseButtonPress: case QEvent::MouseButtonRelease: @@ -804,7 +802,6 @@ bool View::viewportEvent(QEvent *e) case QEvent::TouchUpdate: case QEvent::TouchEnd: return false; - default: return QAbstractScrollArea::viewportEvent(e); } @@ -920,8 +917,7 @@ void View::signals_changed() signal_map[sig->channel()] = sig; // Populate channel groups - for (auto entry : sr_dev->channel_groups()) - { + for (auto entry : sr_dev->channel_groups()) { const shared_ptr &group = entry.second; if (group->channels().size() <= 1)