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-e03cc46cb475master
parent
3897efe381
commit
243356035d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue