Merge branch 'pr/2747'
This commit is contained in:
commit
a4833fcc46
@ -193,6 +193,7 @@ Contributors, sorted by the number of commits in descending order:
|
|||||||
* knaggita
|
* knaggita
|
||||||
* Oliver Caldwell
|
* Oliver Caldwell
|
||||||
* Nikolay Amiantov
|
* Nikolay Amiantov
|
||||||
|
* Marius
|
||||||
* Julian Weigt
|
* Julian Weigt
|
||||||
* Tomasz Kramkowski
|
* Tomasz Kramkowski
|
||||||
* Sebastian Frysztak
|
* Sebastian Frysztak
|
||||||
@ -217,7 +218,6 @@ Contributors, sorted by the number of commits in descending order:
|
|||||||
* Michał Góral
|
* Michał Góral
|
||||||
* Michael Ilsaas
|
* Michael Ilsaas
|
||||||
* Martin Zimmermann
|
* Martin Zimmermann
|
||||||
* Marius
|
|
||||||
* Link
|
* Link
|
||||||
* Jussi Timperi
|
* Jussi Timperi
|
||||||
* Cosmin Popescu
|
* Cosmin Popescu
|
||||||
|
@ -761,6 +761,17 @@ class TabBarStyle(QCommonStyle):
|
|||||||
rct = super().subElementRect(sr, opt, widget)
|
rct = super().subElementRect(sr, opt, widget)
|
||||||
return rct
|
return rct
|
||||||
else:
|
else:
|
||||||
|
try:
|
||||||
|
# We need this so the left scroll button is aligned properly.
|
||||||
|
# Otherwise, empty space will be shown after the last tab even
|
||||||
|
# though the button width is set to 0
|
||||||
|
#
|
||||||
|
# QStyle.SE_TabBarScrollLeftButton was added in Qt 5.7
|
||||||
|
if sr == QStyle.SE_TabBarScrollLeftButton:
|
||||||
|
return super().subElementRect(sr, opt, widget)
|
||||||
|
except AttributeError:
|
||||||
|
pass
|
||||||
|
|
||||||
return self._style.subElementRect(sr, opt, widget)
|
return self._style.subElementRect(sr, opt, widget)
|
||||||
|
|
||||||
def _tab_layout(self, opt):
|
def _tab_layout(self, opt):
|
||||||
|
Loading…
Reference in New Issue
Block a user