diff options
Diffstat (limited to 'src/gui/widgets/tabbedarea.cpp')
-rw-r--r-- | src/gui/widgets/tabbedarea.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/widgets/tabbedarea.cpp b/src/gui/widgets/tabbedarea.cpp index 88d12764a..5a8b7265f 100644 --- a/src/gui/widgets/tabbedarea.cpp +++ b/src/gui/widgets/tabbedarea.cpp @@ -212,6 +212,15 @@ void TabbedArea::addTab(const std::string &caption, gcn::Widget *const widget) addTab(tab, widget); } +void TabbedArea::addTab(Image *const image, gcn::Widget *const widget) +{ + Tab *const tab = new Tab(this); + tab->setImage(image); + mTabsToDelete.push_back(tab); + + addTab(tab, widget); +} + bool TabbedArea::isTabSelected(const unsigned int index) const { if (index >= mTabs.size()) |