mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-24 04:36:34 +01:00
ComboTabBar: Fix drop indicator position on last tab
This commit is contained in:
parent
679a5f0136
commit
e617f3f6ec
@ -1302,7 +1302,8 @@ void TabBarHelper::paintEvent(QPaintEvent *event)
|
||||
if (m_dropIndicatorPosition == ComboTabBar::BeforeTab) {
|
||||
r = QRect(qMax(0, tr.left() - 1), tr.top(), 3, tr.height());
|
||||
} else {
|
||||
r = QRect(tr.right(), tr.top() - 3, 3, tr.height());
|
||||
const int rightOffset = m_dropIndicatorIndex == count() - 1 ? -2 : 0;
|
||||
r = QRect(tr.right() + rightOffset, tr.top(), 3, tr.height());
|
||||
}
|
||||
// Modified code from KFilePlacesView
|
||||
QColor color = palette().brush(QPalette::Normal, QPalette::Highlight).color();
|
||||
|
Loading…
Reference in New Issue
Block a user