X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Fdecodetrace.hpp;h=0ba52b357c8ed80e108b25559b5aa2559716c5cc;hb=1ed73ebd60336c7b12ee1807644dca719cb9835b;hp=4a65d5ba24f53509c497fb9cd004dc3b814e3c02;hpb=1e948182f3f9353bd74875a37cacc833312a8c8e;p=pulseview.git diff --git a/pv/views/trace/decodetrace.hpp b/pv/views/trace/decodetrace.hpp index 4a65d5ba..0ba52b35 100644 --- a/pv/views/trace/decodetrace.hpp +++ b/pv/views/trace/decodetrace.hpp @@ -17,8 +17,8 @@ * along with this program; if not, see . */ -#ifndef PULSEVIEW_PV_VIEWS_TRACEVIEW_DECODETRACE_HPP -#define PULSEVIEW_PV_VIEWS_TRACEVIEW_DECODETRACE_HPP +#ifndef PULSEVIEW_PV_VIEWS_TRACE_DECODETRACE_HPP +#define PULSEVIEW_PV_VIEWS_TRACE_DECODETRACE_HPP #include #include "trace.hpp" @@ -120,7 +120,6 @@ class DecodeTrace : public Trace Q_OBJECT private: - static const QColor ErrorBgColor; static const QColor NoDecodeColor; static const QColor ExpandMarkerWarnColor; static const QColor ExpandMarkerHiddenColor; @@ -279,7 +278,11 @@ private Q_SLOTS: void on_show_hide_decoder(int index); void on_show_hide_row(int row_id); +#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) + void on_show_hide_class(QObject* sender); +#else void on_show_hide_class(QWidget* sender); +#endif void on_show_all_classes(); void on_hide_all_classes(); void on_row_container_resized(QWidget* sender); @@ -335,4 +338,4 @@ private: } // namespace views } // namespace pv -#endif // PULSEVIEW_PV_VIEWS_TRACEVIEW_DECODETRACE_HPP +#endif // PULSEVIEW_PV_VIEWS_TRACE_DECODETRACE_HPP