2023-05-22 Fred Gleason <fredg@paravelsystems.com>

* Restored blank circle to the clock display when no clock event is
	selected in the 'Edit Clock' dialog in rdlogmanager(1).

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2023-05-22 10:38:30 -04:00
parent 3f59bc06e5
commit 0d7ccddfde
2 changed files with 14 additions and 1 deletions

View File

@@ -24149,3 +24149,6 @@
* Added a 'rivendell' service for firewalld(1). * Added a 'rivendell' service for firewalld(1).
2023-05-22 Fred Gleason <fredg@paravelsystems.com> 2023-05-22 Fred Gleason <fredg@paravelsystems.com>
* Removed 'conf/firewalld.sh'. * Removed 'conf/firewalld.sh'.
2023-05-22 Fred Gleason <fredg@paravelsystems.com>
* Restored blank circle to the clock display when no clock event is
selected in the 'Edit Clock' dialog in rdlogmanager(1).

View File

@@ -599,7 +599,17 @@ void EditClock::UpdateClock(int line)
p->setBrush(Qt::black); p->setBrush(Qt::black);
p->setFont(*edit_title_font); p->setFont(*edit_title_font);
if(line>=0) { if(line<0) {
//
// Pie Circle
//
p->translate(map->width()/2,map->height()/2);
p->rotate(-90.0);
int size_x=map->width()-2*PIE_X_MARGIN;
int size_y=map->height()-2*PIE_X_MARGIN;
p->drawArc(-size_x/2,-size_y/2,size_x,size_y,0,5760);
}
else {
// //
// Title // Title
// //