From 7393addf64a3e9c256cc607e6e77ea9acad1f239 Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Fri, 22 Nov 2019 21:38:47 +0100 Subject: [PATCH] Fixed setting of CloseButton icon in DockWidgetTab.cpp --- src/DockWidgetTab.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DockWidgetTab.cpp b/src/DockWidgetTab.cpp index e452949..005bcf5 100644 --- a/src/DockWidgetTab.cpp +++ b/src/DockWidgetTab.cpp @@ -169,8 +169,8 @@ void DockWidgetTabPrivate::createLayout() QPixmap normalPixmap = _this->style()->standardPixmap(QStyle::SP_TitleBarCloseButton, 0, CloseButton); CloseIcon.addPixmap(normalPixmap, QIcon::Normal); CloseIcon.addPixmap(internal::createTransparentPixmap(normalPixmap, 0.25), QIcon::Disabled); - CloseButton->setIcon(CloseIcon); } + CloseButton->setIcon(CloseIcon); CloseButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); _this->onDockWidgetFeaturesChanged(); #ifndef QT_NO_TOOLTIP