aboutsummaryrefslogtreecommitdiff
path: root/gui/TabWidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'gui/TabWidget.h')
-rw-r--r--gui/TabWidget.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gui/TabWidget.h b/gui/TabWidget.h
index bf316a7ac3..3dffcd2afe 100644
--- a/gui/TabWidget.h
+++ b/gui/TabWidget.h
@@ -85,6 +85,11 @@ public:
* Widgets are always added to the active tab.
*/
void setActiveTab(int tabID);
+
+ void setTabTitle(int tabID, const String &title) {
+ assert(0 <= tabID && tabID < (int)_tabs.size());
+ _tabs[tabID].title = title;
+ }
virtual void handleMouseDown(int x, int y, int button, int clickCount);
virtual bool handleKeyDown(Common::KeyState state);