mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-29 16:50:13 +01:00
2021-06-26 Fred Gleason <fredg@paravelsystems.com>
* Refactored the layout in rdairplay(1) to achieve cleaner separation of global and per-log UI elements. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -43,7 +43,9 @@ PieCounter::PieCounter(int count_length,QWidget *parent)
|
||||
onair_on_palette=palette();
|
||||
onair_on_palette.setColor(QPalette::Background,PIE_ONAIR_COLOR);
|
||||
onair_off_palette=palette();
|
||||
|
||||
onair_on_palette.setColor(QPalette::Background,QColor("#D0D0D0"));
|
||||
setPalette(onair_on_palette);
|
||||
|
||||
setAutoFillBackground(true);
|
||||
|
||||
pie_time_label=new QLabel(":00",this);
|
||||
@@ -236,6 +238,8 @@ void PieCounter::paintEvent(QPaintEvent *e)
|
||||
int talk_angle=(int)
|
||||
(-5760.0*((double)pie_talk_end-(double)pie_talk_start)/(double)pie_length);
|
||||
QPainter *p=new QPainter(&pix);
|
||||
p->setRenderHint(QPainter::Antialiasing,true);
|
||||
p->setRenderHint(QPainter::SmoothPixmapTransform,true);
|
||||
double ring_angle = ((pie_length < (pie_count_length) ? pie_length : pie_count_length) -
|
||||
((pie_time > pie_count_length) ? pie_count_length : pie_time));
|
||||
if (pie_count_length)
|
||||
|
||||
Reference in New Issue
Block a user