Changeset View
Changeset View
Standalone View
Standalone View
src/dolphintabwidget.cpp
Show First 20 Lines • Show All 260 Lines • ▼ Show 20 Line(s) | 252 | { | |||
---|---|---|---|---|---|
261 | 261 | | |||
262 | DolphinTabPage* tabPage = tabPageAt(index); | 262 | DolphinTabPage* tabPage = tabPageAt(index); | ||
263 | emit rememberClosedTab(tabPage->activeViewContainer()->url(), tabPage->saveState()); | 263 | emit rememberClosedTab(tabPage->activeViewContainer()->url(), tabPage->saveState()); | ||
264 | 264 | | |||
265 | removeTab(index); | 265 | removeTab(index); | ||
266 | tabPage->deleteLater(); | 266 | tabPage->deleteLater(); | ||
267 | } | 267 | } | ||
268 | 268 | | |||
269 | void DolphinTabWidget::activateTab(const int index) | ||||
270 | { | ||||
271 | if (index < count()) { | ||||
272 | setCurrentIndex(index); | ||||
273 | } | ||||
274 | } | ||||
275 | | ||||
276 | void DolphinTabWidget::activateLastTab() | ||||
277 | { | ||||
278 | setCurrentIndex(count() - 1); | ||||
279 | } | ||||
280 | | ||||
269 | void DolphinTabWidget::activateNextTab() | 281 | void DolphinTabWidget::activateNextTab() | ||
270 | { | 282 | { | ||
271 | const int index = currentIndex() + 1; | 283 | const int index = currentIndex() + 1; | ||
272 | setCurrentIndex(index < count() ? index : 0); | 284 | setCurrentIndex(index < count() ? index : 0); | ||
273 | } | 285 | } | ||
274 | 286 | | |||
275 | void DolphinTabWidget::activatePrevTab() | 287 | void DolphinTabWidget::activatePrevTab() | ||
276 | { | 288 | { | ||
▲ Show 20 Lines • Show All 147 Lines • Show Last 20 Lines |