@@ -99,8 +99,9 @@ struct DockAreaTitleBarPrivate
99
99
}
100
100
101
101
/* *
102
- * Helper class to set title bar button icons depending on operating system
103
- * and to avoid duplicated code
102
+ * Helper function to set title bar button icons depending on operating
103
+ * system and to avoid duplicated code. On windows the standard icons
104
+ * are blurry since Qt 5.11 so we need to do some additional steps
104
105
*/
105
106
void setTitleBarButtonIcon (tTileBarButton* Button, QStyle::StandardPixmap StandarPixmap)
106
107
{
@@ -136,14 +137,14 @@ void DockAreaTitleBarPrivate::createButtons()
136
137
TabsMenuButton->setPopupMode (QToolButton::InstantPopup);
137
138
setTitleBarButtonIcon (TabsMenuButton, QStyle::SP_TitleBarUnshadeButton);
138
139
QMenu* TabsMenu = new QMenu (TabsMenuButton);
139
- #ifndef QT_NO_TOOLTIP
140
+ #ifndef QT_NO_TOOLTIP
140
141
TabsMenu->setToolTipsVisible (true );
141
- #endif
142
+ #endif
142
143
_this->connect (TabsMenu, SIGNAL (aboutToShow ()), SLOT (onTabsMenuAboutToShow ()));
143
144
TabsMenuButton->setMenu (TabsMenu);
144
- #ifndef QT_NO_TOOLTIP
145
+ #ifndef QT_NO_TOOLTIP
145
146
TabsMenuButton->setToolTip (QObject::tr (" List all tabs" ));
146
- #endif
147
+ #endif
147
148
TabsMenuButton->setSizePolicy (QSizePolicy::Fixed, QSizePolicy::Expanding);
148
149
TopLayout->addWidget (TabsMenuButton, 0 );
149
150
_this->connect (TabsMenuButton->menu (), SIGNAL (triggered (QAction*)),
@@ -154,9 +155,9 @@ void DockAreaTitleBarPrivate::createButtons()
154
155
UndockButton = new tTileBarButton ();
155
156
UndockButton->setObjectName (" undockButton" );
156
157
UndockButton->setAutoRaise (true );
157
- #ifndef QT_NO_TOOLTIP
158
+ #ifndef QT_NO_TOOLTIP
158
159
UndockButton->setToolTip (QObject::tr (" Detach Group" ));
159
- #endif
160
+ #endif
160
161
setTitleBarButtonIcon (UndockButton, QStyle::SP_TitleBarNormalButton);
161
162
UndockButton->setSizePolicy (QSizePolicy::Fixed, QSizePolicy::Expanding);
162
163
TopLayout->addWidget (UndockButton, 0 );
@@ -168,7 +169,7 @@ void DockAreaTitleBarPrivate::createButtons()
168
169
CloseButton->setObjectName (" closeButton" );
169
170
CloseButton->setAutoRaise (true );
170
171
setTitleBarButtonIcon (CloseButton, QStyle::SP_TitleBarCloseButton);
171
- #ifndef QT_NO_TOOLTIP
172
+ #ifndef QT_NO_TOOLTIP
172
173
if (testConfigFlag (CDockManager::DockAreaCloseButtonClosesTab))
173
174
{
174
175
CloseButton->setToolTip (QObject::tr (" Close Active Tab" ));
@@ -177,7 +178,7 @@ void DockAreaTitleBarPrivate::createButtons()
177
178
{
178
179
CloseButton->setToolTip (QObject::tr (" Close Group" ));
179
180
}
180
- #endif
181
+ #endif
181
182
CloseButton->setSizePolicy (QSizePolicy::Fixed, QSizePolicy::Expanding);
182
183
CloseButton->setIconSize (QSize (16 , 16 ));
183
184
TopLayout->addWidget (CloseButton, 0 );
0 commit comments