From 9ccbc11bf366cc3290ea1215c46da987673938f7 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sun, 21 Mar 2021 12:30:01 +0100 Subject: [PATCH] Fix unused variable warning with Qt6 --- src/frontends/qt/IconPalette.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontends/qt/IconPalette.cpp b/src/frontends/qt/IconPalette.cpp index 580b450aa3..33ceb29b53 100644 --- a/src/frontends/qt/IconPalette.cpp +++ b/src/frontends/qt/IconPalette.cpp @@ -107,8 +107,8 @@ IconPalette::IconPalette(QWidget * parent) v->setSpacing(0); layout_ = new QGridLayout; layout_->setSpacing(0); - const int fw = style()->pixelMetric(QStyle::PM_MenuPanelWidth, 0, this); #if QT_VERSION < 0x060000 + const int fw = style()->pixelMetric(QStyle::PM_MenuPanelWidth, 0, this); layout_->setMargin(fw); #else layout_->setContentsMargins(0, 0, 0, 0);