This commit is contained in:
Martin Rotter 2016-06-21 07:22:55 +02:00
parent cb3c4885c9
commit a449f79747
2 changed files with 1 additions and 9 deletions

View File

@ -170,10 +170,6 @@ bool TabWidget::closeTab(int index) {
} }
} }
bool TabWidget::closeCurrentTab() {
return closeTab(currentIndex());
}
void TabWidget::closeAllTabsExceptCurrent() { void TabWidget::closeAllTabsExceptCurrent() {
// Close tabs after active tab. // Close tabs after active tab.
int index_of_active = currentIndex(); int index_of_active = currentIndex();

View File

@ -99,13 +99,9 @@ class TabWidget : public QTabWidget {
void changeTitle(int index, const QString &new_title); void changeTitle(int index, const QString &new_title);
void changeIcon(int index, const QIcon &new_icon); void changeIcon(int index, const QIcon &new_icon);
// Closes tab with given index and deletes contained widget. // Tab closing.
bool closeTab(int index); bool closeTab(int index);
bool closeCurrentTab();
// Closes all "closable" tabs except the active tab.
void closeAllTabsExceptCurrent(); void closeAllTabsExceptCurrent();
void closeAllTabs(); void closeAllTabs();
// Opens main menu. // Opens main menu.