mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
CComponentsForm: move slots into base classes
Usable for all form classes
Origin commit data
------------------
Commit: 06fa3f2488
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-02-06 (Mon, 06 Feb 2017)
This commit is contained in:
@@ -274,6 +274,12 @@ bool CComponentsText::setTextFromFile(const string& path_to_textfile, const int
|
||||
|
||||
void CComponentsText::paintText(bool do_save_bg)
|
||||
{
|
||||
if (cc_parent){
|
||||
if(!cc_parent->OnAfterPaintBg.empty())
|
||||
cc_parent->OnAfterPaintBg.clear();
|
||||
//init slot to handle repaint of text if background was repainted
|
||||
cc_parent->OnAfterPaintBg.connect(sigc::bind(sigc::mem_fun(*this, &CComponentsText::forceTextPaint), true));
|
||||
}
|
||||
initCCText();
|
||||
if (!is_painted)
|
||||
paintInit(do_save_bg);
|
||||
|
Reference in New Issue
Block a user