Merge branch 'FixNodeConst' of https://github.com/zifter/cocos2d-x into FixNodeConst

Conflicts:
	cocos/ui/UIListView.h
	cocos/ui/UIPageView.h
This commit is contained in:
zifter 2014-05-17 10:40:36 +03:00
commit d875f27c67
8 changed files with 8 additions and 8 deletions

View File

@ -181,7 +181,7 @@ const BlendFunc &LabelBMFont::getBlendFunc() const
return _label->getBlendFunc();
}
Node* LabelBMFont::getChildByTag(int tag)
Node* LabelBMFont::getChildByTag(int tag) const
{
return _label->getLetter(tag);
}

View File

@ -115,7 +115,7 @@ public:
virtual const BlendFunc &getBlendFunc() const override;
virtual Sprite * getLetter(int ID);
virtual Node * getChildByTag(int tag) override;
virtual Node * getChildByTag(int tag) const override;
virtual void setColor(const Color3B& color) override;

View File

@ -718,7 +718,7 @@ void Node::childrenAlloc(void)
_children.reserve(4);
}
Node* Node::getChildByTag(int tag)
Node* Node::getChildByTag(int tag) const
{
CCASSERT( tag != Node::INVALID_TAG, "Invalid tag");

View File

@ -643,7 +643,7 @@ public:
*
* @return a Node object whose tag equals to the input parameter
*/
virtual Node * getChildByTag(int tag);
virtual Node * getChildByTag(int tag) const;
/**
* Returns the array of the node's children
*

View File

@ -196,7 +196,7 @@ protected:
virtual Vector<Node*>& getChildren() override{return ScrollView::getChildren();};
virtual const Vector<Node*>& getChildren() const override{return ScrollView::getChildren();};
virtual ssize_t getChildrenCount() const override {return ScrollView::getChildrenCount();};
virtual Node * getChildByTag(int tag) override {return ScrollView::getChildByTag(tag);};
virtual Node * getChildByTag(int tag) const override {return ScrollView::getChildByTag(tag);};
virtual Widget* getChildByName(const std::string& name) override {return ScrollView::getChildByName(name);};
void updateInnerContainerSize();
void remedyLayoutParameter(Widget* item);

View File

@ -183,7 +183,7 @@ protected:
virtual Vector<Node*>& getChildren() override{return Widget::getChildren();};
virtual const Vector<Node*>& getChildren() const override{return Widget::getChildren();};
virtual ssize_t getChildrenCount() const override {return Widget::getChildrenCount();};
virtual Node * getChildByTag(int tag) override {return Widget::getChildByTag(tag);};
virtual Node * getChildByTag(int tag) const override {return Widget::getChildByTag(tag);};
virtual Widget* getChildByName(const std::string& name) override {return Widget::getChildByName(name);};
Layout* createPage();

View File

@ -301,7 +301,7 @@ ssize_t ScrollView::getChildrenCount() const
return _innerContainer->getChildrenCount();
}
Node* ScrollView::getChildByTag(int tag)
Node* ScrollView::getChildByTag(int tag) const
{
return _innerContainer->getChildByTag(tag);
}

View File

@ -296,7 +296,7 @@ public:
virtual ssize_t getChildrenCount() const override;
virtual Node * getChildByTag(int tag) override;
virtual Node * getChildByTag(int tag) const override;
virtual Widget* getChildByName(const std::string& name) override;