Merge pull request #7320 from andyque/fixSeekFile

fix ui::Helper::seekWigetByName can not find pages in pageview
This commit is contained in:
minggo 2014-07-05 13:44:35 +08:00
commit 9d6c5748dc
1 changed files with 4 additions and 4 deletions

View File

@ -134,7 +134,7 @@ void PageView::addPage(Layout* page)
} }
addProtectedChild(page); addChild(page);
_pages.pushBack(page); _pages.pushBack(page);
_doLayoutDirty = true; _doLayoutDirty = true;
@ -156,7 +156,7 @@ void PageView::insertPage(Layout* page, int idx)
else else
{ {
_pages.insert(idx, page); _pages.insert(idx, page);
addProtectedChild(page); addChild(page);
} }
@ -169,7 +169,7 @@ void PageView::removePage(Layout* page)
{ {
return; return;
} }
removeProtectedChild(page); removeChild(page);
_pages.eraseObject(page); _pages.eraseObject(page);
_doLayoutDirty = true; _doLayoutDirty = true;
@ -189,7 +189,7 @@ void PageView::removeAllPages()
{ {
for(const auto& node : _pages) for(const auto& node : _pages)
{ {
removeProtectedChild(node); removeChild(node);
} }
_pages.clear(); _pages.clear();
} }