}
-void TabWorkArea::closeCurrentTab()
+void TabWorkArea::hideCurrentTab()
{
GuiWorkArea * wa;
if (clicked_tab_ == -1)
wa = dynamic_cast<GuiWorkArea *>(widget(index));
LASSERT(wa, /**/);
}
- wa->view().hideWorkArea(wa);
+ wa->view().closeWorkArea(wa);
}
// show tab popup
QMenu popup;
popup.addAction(QIcon(getPixmap("images/", "hidetab", "png")),
- qt_("Hide tab"), this, SLOT(closeCurrentTab()));
+ qt_("Hide tab"), this, SLOT(hideCurrentTab()));
popup.addAction(QIcon(getPixmap("images/", "closetab", "png")),
qt_("Close tab"), this, SLOT(closeCurrentBuffer()));
popup.exec(tabBar()->mapToGlobal(pos));
public Q_SLOTS:
/// close current buffer, or the one given by \c clicked_tab_
void closeCurrentBuffer();
- /// close current tab, or the one given by \c clicked_tab_
- void closeCurrentTab();
+ /// hide current tab, or the one given by \c clicked_tab_
+ void hideCurrentTab();
/// close the tab given by \c index
void closeTab(int index);
///