mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
Fixed problem about location of 'm_buttonAddTab' when there are lots of tabs opened.
This commit is contained in:
parent
dbcbabdec3
commit
1df223fbd1
@ -202,7 +202,10 @@ void TabWidget::moveAddTabButton(int posX)
|
||||
int posY = (m_tabBar->height() - m_buttonAddTab->height()) / 2;
|
||||
//RTL Support
|
||||
if (QApplication::layoutDirection() == Qt::RightToLeft) {
|
||||
posX = posX - m_buttonAddTab->width();
|
||||
posX = qMax(posX - m_buttonAddTab->width(), m_buttonListTabs->width());
|
||||
}
|
||||
else {
|
||||
posX = qMin(posX, m_tabBar->width() - m_buttonAddTab->width() - m_buttonListTabs->width());
|
||||
}
|
||||
m_buttonAddTab->move(posX, posY);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user