Commit 24335603 authored by cutealien's avatar cutealien

IGUITabControl::setActiveTab should only take IGUITab* and not IGUIElement*...

IGUITabControl::setActiveTab should only take IGUITab* and not IGUIElement* (thx to greenya for finding)


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3434 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 3897efe3
......@@ -75,7 +75,7 @@ namespace gui
//! Brings a tab to front.
/** \param tab: pointer to the tab.
\return Returns true if successful. */
virtual bool setActiveTab(IGUIElement *tab) = 0;
virtual bool setActiveTab(IGUITab *tab) = 0;
//! Returns which tab is currently active
virtual s32 getActiveTab() const = 0;
......
......@@ -872,7 +872,7 @@ bool CGUITabControl::setActiveTab(s32 idx)
}
bool CGUITabControl::setActiveTab(IGUIElement *tab)
bool CGUITabControl::setActiveTab(IGUITab *tab)
{
for (s32 i=0; i<(s32)Tabs.size(); ++i)
if (Tabs[i] == tab)
......
......@@ -107,7 +107,7 @@ namespace gui
virtual bool setActiveTab(s32 idx);
//! Brings a tab to front.
virtual bool setActiveTab(IGUIElement *tab);
virtual bool setActiveTab(IGUITab *tab);
//! Returns which tab is currently active
virtual s32 getActiveTab() const;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment