2023-10-09 Fred Gleason <fredg@paravelsystems.com>

* Fixed a regression in rdcartslots(1) that displayed red or green
	color around the edges of start buttons when the buttons were
	disabled.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2023-10-13 13:20:59 -04:00
parent fee45742ef
commit afb21ee395
3 changed files with 12 additions and 1 deletions

View File

@ -24441,3 +24441,7 @@
be leaked when a play-out hit EOF.
2023-10-09 Fred Gleason <fredg@paravelsystems.com>
* Fixed regressions in 'RDCae' that broke various mixer CAE commands.
2023-10-09 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in rdcartslots(1) that displayed red or green
color around the edges of start buttons when the buttons were
disabled.

View File

@ -186,6 +186,7 @@ void RDCartSlot::updateOptions()
break;
case RDSlotOptions::BreakawayMode:
unload();
SetInput(true);
slot_start_button->setDisabled(true);
slot_box->setService(slot_svcname);

View File

@ -2,7 +2,7 @@
//
// Start/stop button for rdcartslots(1).
//
// (C) Copyright 2021 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2021-2023 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU Library General Public License
@ -34,9 +34,15 @@ RDSlotButton::RDSlotButton(int slotnum,QWidget *parent,RDConfig *c)
d_ready_color=
QPalette(QColor(BUTTON_STOPPED_BACKGROUND_COLOR),
palette().color(QPalette::Background));
d_ready_color.setColor(QPalette::Disabled,QPalette::Button,
palette().color(QPalette::Disabled,QPalette::Button));
d_playing_color=
QPalette(QColor(BUTTON_PLAY_BACKGROUND_COLOR),
palette().color(QPalette::Background));
d_playing_color.setColor(QPalette::Disabled,QPalette::Button,
palette().color(QPalette::Disabled,QPalette::Button));
setFocusPolicy(Qt::NoFocus);
}