| 54 | }); |
| 55 | connect(bar, &QTabBar::tabMoved, this, [this, d, getIndex](int from, int to) { |
| 56 | d->_pages.move(getIndex(from), getIndex(to)); |
| 57 | Q_EMIT tabMoved(getIndex(from), getIndex(to)); |
| 58 | }); |
| 59 | connect(bar, &QTabBar::tabCloseRequested, this, [this, d, bar, getIndex](int index) { |
| 60 | if (bar == d->_pinnedTabBar) |
| 61 | { |
| 62 | setIsTabPinned(getIndex(index), false); |
| 63 | } |
| 64 | else |
| 65 | { |
| 66 | Q_EMIT tabCloseRequested(getIndex(index)); |
nothing calls this directly
no outgoing calls
no test coverage detected