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
master
cutealien 2010-11-07 23:52:23 +00:00
parent 3897efe381
commit 243356035d
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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)

View File

@ -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;