CComponentsFrmClock: add slot to handle enforced repaint of segments

If clock removed from screen and instance is not destroyed, then we must
ensure repaint of segments after painted background.

This is required if segments are only will paint if
their content was changed and attribut ct_force_text_paint = false.
This commit is contained in:
2017-01-18 11:59:21 +01:00
committed by M. Liebmann
parent 0eb8c7b173
commit 81f26a327d
2 changed files with 24 additions and 8 deletions

View File

@@ -52,7 +52,10 @@ class CComponentsFrmClock : public CComponentsForm, public CCTextScreen
protected:
///slot for timer event, reserved for ShowTime()
sigc::slot0<void> cl_sl;
sigc::slot0<void> cl_sl_show;
///slot for background paint event, reserved for initCCLockItems()
sigc::slot0<void> cl_sl_repaint;
///refresh interval in seconds
int cl_interval;
@@ -90,6 +93,8 @@ class CComponentsFrmClock : public CComponentsForm, public CCTextScreen
void toggleFormat();
///init internal font
void initClockFont(int dx, int dy);
///force repaint of all segments
void forceSegemnentsPaint(bool force);
public: