summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabbedarea.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-02 17:12:54 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-02 17:12:54 +0300
commit8dcb524443a82506b522344f3d4353769f51883c (patch)
treece7a71d2cf1c6debeca31b4f92c7cb2871870722 /src/gui/widgets/tabbedarea.cpp
parentab2c75888d63977e2a24793ce96c6adcd0eb7e0e (diff)
downloadplus-8dcb524443a82506b522344f3d4353769f51883c.tar.gz
plus-8dcb524443a82506b522344f3d4353769f51883c.tar.bz2
plus-8dcb524443a82506b522344f3d4353769f51883c.tar.xz
plus-8dcb524443a82506b522344f3d4353769f51883c.zip
bit cleanup tabbedarea.
Diffstat (limited to 'src/gui/widgets/tabbedarea.cpp')
-rw-r--r--src/gui/widgets/tabbedarea.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/gui/widgets/tabbedarea.cpp b/src/gui/widgets/tabbedarea.cpp
index 44b2ea8d8..721e0b653 100644
--- a/src/gui/widgets/tabbedarea.cpp
+++ b/src/gui/widgets/tabbedarea.cpp
@@ -235,7 +235,7 @@ bool TabbedArea::isTabSelected(const Tab *const tab) const
return mSelectedTab == tab;
}
-void TabbedArea::setSelectedTab(const unsigned int index)
+void TabbedArea::setSelectedTabByIndex(const unsigned int index)
{
if (index >= mTabs.size())
return;
@@ -292,7 +292,7 @@ void TabbedArea::removeTab(Tab *const tab)
}
else
{
- setSelectedTabByPos(tabIndexToBeSelected);
+ setSelectedTabByIndex(tabIndexToBeSelected);
}
adjustSize();
@@ -376,11 +376,6 @@ void TabbedArea::setSelectedTabByName(const std::string &name)
}
}
-void TabbedArea::setSelectedTabByPos(const int tab)
-{
- setSelectedTab(tab);
-}
-
void TabbedArea::widgetResized(const gcn::Event &event A_UNUSED)
{
adjustSize();
@@ -631,7 +626,7 @@ void TabbedArea::removeAll(const bool del)
{
if (getSelectedTabIndex() != -1)
{
- setSelectedTabByPos(static_cast<unsigned int>(0));
+ setSelectedTabByIndex(static_cast<unsigned int>(0));
}
while (getNumberOfTabs() > 0)
{