| 240 | } |
| 241 | |
| 242 | void TabBar::closeAllTab(const QStringList &exceptList, bool silent) |
| 243 | { |
| 244 | QStringList tabList; |
| 245 | for (int i = 0; i < d->tabBar->count(); ++i) { |
| 246 | auto file = d->tabBar->tabToolTip(i); |
| 247 | if (exceptList.contains(file)) |
| 248 | continue; |
| 249 | |
| 250 | tabList << file; |
| 251 | } |
| 252 | |
| 253 | for (const auto &tab : tabList) |
| 254 | removeTab(tab, silent); |
| 255 | } |
| 256 | |
| 257 | void TabBar::setCloseButtonVisible(bool visible) |
| 258 | { |
no test coverage detected