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