Construct a copy of text_rect in tab_layout.

This commit is contained in:
Florian Bruhin 2014-07-14 23:31:09 +02:00
parent 7ad0dc6416
commit cd19697a77

View File

@ -315,7 +315,7 @@ class TabBarStyle(QCommonStyle):
"""
padding = 4
icon_rect = QRect()
text_rect = opt.rect
text_rect = QRect(opt.rect)
qt_ensure_valid(text_rect)
text_rect.adjust(padding, 0, 0, 0)
if not opt.leftButtonSize.isEmpty():