AnalogSignal: Recalculate scale when restoring div height When restoring analog signal settings from a *.pvs file changes the div height, the vertical scale must be recalculated. Otherwise, the signal is scaled as if the div height had not changed, until a UI event triggers recalculation.
trace: fix crash on empty channel name in popup form sr_dev_channel_name_set returns SR_ERR_ARG when a channel name is empty and pulseview crashes once user deletes all characters from a channel name in trace popup form. This patch forbids to set empty channel name and keeps last non-empty name provided by user.
Fix warning and remove cursor pair selected state Fixes warning "QObject::connect: Cannot connect (nullptr)::closed() to pv::views::trace::Ruler::on_popup_closed()" and removes showing the selected state for the cursor pair as it doesn't serve a purpose.
Flags: Always save raw text, not display text in session setup Before, get_text() would return the delta time to a selected flag, so if one was selected as the session was saved, this delta time would be saved as the name.
pv: adjust application source code for Qt6 support Prepare application source code (C++ programming language files) for Qt6 compatibility. Implement alternative code paths where the API has changed compared to Qt5. This unbreaks Mac OSX 12 builds with homebrew. This change is based on work that was submitted by Dominik Sliwa <redacted>.
Signal: Add missing item separator in channel names list The SCL item in the ChannelNames[] table lacked the separator, which made it "run into" the next item (preprocessor string concatenation). Add the missing separator. This amends commits 9e40e83daf6a (which introduced the lack of the separator while it did not take effect yet) and 7d5a9c3e79cb (which made it take effect when items got added and rearranged). Reported-By: Dominik Sliwa <redacted>
Viewport: scroll horizontally with the vertical wheel and the shift key Some software (notably Gimp and Inkscape) allows horizontal scrolling with the vertical wheel when the shift key is pressed. Implement this behaviour for easier navigation with single wheel mice.
Fix broken build due to C++ template behind C linkage glib/gatomic.h since 2.68 includes type_traits, which causes a compilation error: In file included from /usr/include/glib-2.0/glib/gatomic.h:31, from /usr/include/glib-2.0/glib/gthread.h:32, from /usr/include/glib-2.0/glib/gasyncqueue.h:32, from /usr/include/glib-2.0/glib.h:32, from /usr/include/libsigrokdecode/libsigrokdecode.h:25, from /home/abuild/rpmbuild/BUILD/pulseview-0.4.2/pv/data/decode/annotation.cpp:21: /usr/include/c++/10/type_traits:2308:3: error: template with C linkage 2308 | template<typename _CTp, typename _Rp> As libsigrokdecode.h declares extern C linkage itself where necessary, remove it from pulseviews include statements from the last two occasions.