UI/Qt: Paint the dragged tab preview with some transparency
Makes it a bit easier to see where the tab is being dragged to.
This commit is contained in:
parent
af410da20c
commit
42c9fcf88f
1 changed files with 1 additions and 0 deletions
|
|
@ -400,6 +400,7 @@ QPixmap TabBar::render_tab_drag_pixmap(int index) const
|
|||
pixmap.fill(Qt::transparent);
|
||||
|
||||
QPainter painter(&pixmap);
|
||||
painter.setOpacity(0.75);
|
||||
const_cast<TabBar&>(*this).render(&painter, QPoint(), QRegion(tab_rect), QWidget::DrawChildren);
|
||||
return pixmap;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue