From: Frank Stettner Date: Tue, 11 Apr 2023 18:34:14 +0000 (+0200) Subject: DecodeTrace: Change code path for obsolete Qt constants (Qt >= 5.12) X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=62c09685305c763c38b98fda75f1c0059974b544;p=pulseview.git DecodeTrace: Change code path for obsolete Qt constants (Qt >= 5.12) This unbreaks macOS 11 builds with qt@5 from homebrew. This ammends commit 1ed73eb --- diff --git a/pv/views/trace/decodetrace.cpp b/pv/views/trace/decodetrace.cpp index af07c9e3..63384911 100644 --- a/pv/views/trace/decodetrace.cpp +++ b/pv/views/trace/decodetrace.cpp @@ -1268,7 +1268,7 @@ void DecodeTrace::initialize_row_widgets(DecodeTraceRow* r, unsigned int row_id) QPalette header_palette = owner_->view()->palette(); QPalette selector_palette = owner_->view()->palette(); -#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) +#if QT_VERSION >= QT_VERSION_CHECK(5, 12, 0) if (GlobalSettings::current_theme_is_dark()) { header_palette.setColor(QPalette::Window, QColor(255, 255, 255, ExpansionAreaHeaderAlpha));