mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 00:42:14 -07:00
be more clear about overloads
This commit is contained in:
parent
75919e8868
commit
233bd11ae0
1 changed files with 1 additions and 1 deletions
|
|
@ -344,7 +344,7 @@ void TabSupervisor::addCloseButtonToTab(Tab *tab, int tabIndex)
|
||||||
auto closeSide = static_cast<QTabBar::ButtonPosition>(
|
auto closeSide = static_cast<QTabBar::ButtonPosition>(
|
||||||
tabBar()->style()->styleHint(QStyle::SH_TabBar_CloseButtonPosition, nullptr, tabBar()));
|
tabBar()->style()->styleHint(QStyle::SH_TabBar_CloseButtonPosition, nullptr, tabBar()));
|
||||||
auto *closeButton = new CloseButton(tab);
|
auto *closeButton = new CloseButton(tab);
|
||||||
connect(closeButton, &CloseButton::clicked, tab, &Tab::closeRequest);
|
connect(closeButton, &CloseButton::clicked, tab, [tab] { tab->closeRequest(); });
|
||||||
tabBar()->setTabButton(tabIndex, closeSide, closeButton);
|
tabBar()->setTabButton(tabIndex, closeSide, closeButton);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue