mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +02:00
CComponentsFrmClock: ensure that no radius is defined for inner items
Radius is not required for inner segments.
TODO: single segment
Origin commit data
------------------
Commit: 02c6df782c
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-21 (Mon, 21 Nov 2016)
This commit is contained in:
@@ -190,8 +190,8 @@ void CComponentsFrmClock::initCCLockItems()
|
||||
//background paint of item is not required
|
||||
lbl->doPaintBg(false);
|
||||
|
||||
//set corner properties of label item
|
||||
lbl->setCorner(corner_rad-fr_thickness, corner_type);
|
||||
//preset corner properties of label item
|
||||
lbl->setCorner(max(0, corner_rad-fr_thickness), corner_type);
|
||||
|
||||
//set text border to 0
|
||||
lbl->setTextBorderWidth(0,0);
|
||||
@@ -234,7 +234,7 @@ void CComponentsFrmClock::initCCLockItems()
|
||||
else if (i == v_cc_items.size()-1)
|
||||
lbl->setCornerType(corner_type & CORNER_RIGHT);// last label item
|
||||
else
|
||||
lbl->setCornerType(0);// inner items
|
||||
lbl->setCorner(0,CORNER_NONE);// inner items don't need round corners
|
||||
}
|
||||
|
||||
//extract timestring segment (char)
|
||||
|
Reference in New Issue
Block a user