Fix unused variable warning with Qt6

This commit is contained in:
Juergen Spitzmueller 2021-03-21 12:30:01 +01:00
parent 4b20ae9d59
commit 9ccbc11bf3

View File

@ -107,8 +107,8 @@ IconPalette::IconPalette(QWidget * parent)
v->setSpacing(0); v->setSpacing(0);
layout_ = new QGridLayout; layout_ = new QGridLayout;
layout_->setSpacing(0); layout_->setSpacing(0);
const int fw = style()->pixelMetric(QStyle::PM_MenuPanelWidth, 0, this);
#if QT_VERSION < 0x060000 #if QT_VERSION < 0x060000
const int fw = style()->pixelMetric(QStyle::PM_MenuPanelWidth, 0, this);
layout_->setMargin(fw); layout_->setMargin(fw);
#else #else
layout_->setContentsMargins(0, 0, 0, 0); layout_->setContentsMargins(0, 0, 0, 0);