Commit 9b450e14 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇 Committed by Christoph Cullmann
Browse files

KateTabBar: Add document icon to drag pixmap

Makes it more consistent with the item the drag originates from.
Also, set `State_Enabled` so the color set is correct.

Adding the close button is a lot more involved as it is an actual
`QPushButton` on `QTabBar` side but adding the icon is easy.


(cherry picked from commit a69e2014)
parent 34827182
Pipeline #266450 canceled with stage
in 30 seconds
......@@ -240,7 +240,9 @@ void KateTabBar::mouseMoveEvent(QMouseEvent *event)
QStyleOptionTab opt;
#endif
opt.text = tabText(tab);
opt.state = QStyle::State_Selected | QStyle::State_Raised;
opt.icon = tabIcon(tab);
opt.iconSize = iconSize();
opt.state = QStyle::State_Enabled | QStyle::State_Selected | QStyle::State_Raised;
opt.tabIndex = tab;
opt.position = QStyleOptionTab::OnlyOneTab;
opt.features = QStyleOptionTab::TabFeature::HasFrame;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment