CComponentsForm/PIP: ensure hiding of minitv during hide of forms

Handling of minitv items are different to other item types
and need an explizit call of hide(). So it is possible to hide a form-
object without a extra call of hide() for minitv objects.


Origin commit data
------------------
Commit: 69476903ee
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-14 (Thu, 14 Mar 2013)
This commit is contained in:
2013-03-14 22:00:29 +01:00
parent bb1b5bc188
commit 7ad21cfd07
2 changed files with 15 additions and 5 deletions

View File

@@ -281,6 +281,16 @@ void CComponentsForm::paintCCItems()
void CComponentsForm::hide(bool no_restore)
{
// hack: ensure hiding of minitv during hide of forms and inherited classes,
// because the handling of minitv items are different to other item types
// and need an explizit call of hide()
for(size_t i=0; i<v_cc_items.size(); i++) {
if (v_cc_items[i]->getItemType() == CComponentsItem::CC_ITEMTYPE_PIP){
v_cc_items[i]->hide();
break;
}
}
//hide body
hideCCItem(no_restore);
}