Skip to content

Commit 702707b

Browse files
committed
Fixed workaround for layout issue after QTabBar::setTabVisible
1 parent c0fcc56 commit 702707b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tiled/propertiesdock.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ void PropertiesDock::updateTabs()
188188
mTabBar->setTabVisible(TileTab, tilesSelected);
189189
mTabBar->setTabVisible(WangSetTab, wangSetSelected);
190190
mTabBar->setTabVisible(WangColorTab, wangColorSelected || wangSetSelected);
191-
mTabBar->tabRect(0); // Force recalculation of tab sizes
191+
mTabBar->setTabButton(0, QTabBar::LeftSide, nullptr); // Force recalculation of tab sizes
192192

193193
int currentIndex = -1;
194194
if (currentObject) {

0 commit comments

Comments
 (0)