X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fpopups%2Fchannels.cpp;h=3cf2ff40ae2591333519367bb03b9cc6e70a3a95;hb=e71eb81c946c3524e01eaef9781ccbf170143d0c;hp=3d209e84bb15a9350cc7445966c15fbde81f3b08;hpb=78b0af3ebcbeab50e1c1634af729c0a7f97fb435;p=pulseview.git diff --git a/pv/popups/channels.cpp b/pv/popups/channels.cpp index 3d209e8..3cf2ff4 100644 --- a/pv/popups/channels.cpp +++ b/pv/popups/channels.cpp @@ -20,6 +20,9 @@ #include +#include +#include + #include #include #include @@ -28,6 +31,7 @@ #include "channels.hpp" #include +#include #include #include @@ -65,7 +69,7 @@ Channels::Channels(Session &session, QWidget *parent) : // Create the layout setLayout(&layout_); - shared_ptr device = session_.device(); + const shared_ptr device = session_.device()->device(); assert(device); // Collect a set of signals @@ -109,7 +113,7 @@ Channels::Channels(Session &session, QWidget *parent) : } // Create a group - populate_group(NULL, global_sigs); + populate_group(nullptr, global_sigs); // Create the enable/disable all buttons connect(&enable_all_channels_, SIGNAL(clicked()), @@ -199,7 +203,7 @@ QGridLayout* Channels::create_channel_group_grid( check_box_signal_map_[checkbox] = sig; - if(++col >= 8) + if (++col >= 8) col = 0, row++; }