]> sigrok.org Git - pulseview.git/commitdiff
DecodeTrace: Change code path for obsolete Qt constants (Qt >= 5.12)
authorFrank Stettner <redacted>
Tue, 11 Apr 2023 18:34:14 +0000 (20:34 +0200)
committerFrank Stettner <redacted>
Thu, 13 Apr 2023 17:48:44 +0000 (19:48 +0200)
This unbreaks macOS 11 builds with qt@5 from homebrew.
This ammends commit 1ed73eb

pv/views/trace/decodetrace.cpp

index af07c9e34a23c223127a93f55929515fd69459b0..63384911d7f515b160249e94daa3c23b65fdd743 100644 (file)
@@ -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));