mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 00:11:08 +02:00
CComponents: add property to allow/disallow paint of items
This causes initialization of all properties, but
affects the behavior of item paint.
This can be understood as a counterpart to isPainted().
Origin commit data
------------------
Branch: ni/coolstream
Commit: 8ae491a994
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-11-08 (Fri, 08 Nov 2013)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -361,8 +361,17 @@ void CComponentsForm::paintCCItems()
|
||||
cc_item->setHeight(new_h);
|
||||
}
|
||||
|
||||
//get current visibility mode from item, me must hold it and restore after paint
|
||||
bool item_visible = cc_item->paintAllowed();
|
||||
//set visibility mode
|
||||
if (!this->cc_allow_paint)
|
||||
cc_item->allowPaint(false);
|
||||
|
||||
//finally paint current item
|
||||
cc_item->paint(CC_SAVE_SCREEN_NO);
|
||||
|
||||
//restore defined old visibility mode of item after paint
|
||||
cc_item->allowPaint(item_visible);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user