Cleanup.
This commit is contained in:
parent
cb3c4885c9
commit
a449f79747
@ -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();
|
||||||
|
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user