Fixed setting of CloseButton icon in DockWidgetTab.cpp

This commit is contained in:
Uwe Kindler 2019-11-22 21:38:47 +01:00
parent a2b9650469
commit 7393addf64

View File

@ -169,8 +169,8 @@ void DockWidgetTabPrivate::createLayout()
QPixmap normalPixmap = _this->style()->standardPixmap(QStyle::SP_TitleBarCloseButton, 0, CloseButton); QPixmap normalPixmap = _this->style()->standardPixmap(QStyle::SP_TitleBarCloseButton, 0, CloseButton);
CloseIcon.addPixmap(normalPixmap, QIcon::Normal); CloseIcon.addPixmap(normalPixmap, QIcon::Normal);
CloseIcon.addPixmap(internal::createTransparentPixmap(normalPixmap, 0.25), QIcon::Disabled); CloseIcon.addPixmap(internal::createTransparentPixmap(normalPixmap, 0.25), QIcon::Disabled);
CloseButton->setIcon(CloseIcon);
} }
CloseButton->setIcon(CloseIcon);
CloseButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); CloseButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
_this->onDockWidgetFeaturesChanged(); _this->onDockWidgetFeaturesChanged();
#ifndef QT_NO_TOOLTIP #ifndef QT_NO_TOOLTIP