2018-10-28 Fred Gleason <fredg@paravelsystems.com>

* Fixed a regression that caused the bankground of blank Sound Panel
	buttons to be black.
This commit is contained in:
Fred Gleason 2018-10-28 17:43:05 -04:00
parent 0ae1d73b35
commit 57b699a270
2 changed files with 6 additions and 3 deletions

View File

@ -17924,3 +17924,6 @@
* Fixed a regression in rdairplay(1) that caused the application * Fixed a regression in rdairplay(1) that caused the application
to be closed even if an incorrect response was entered in the to be closed even if an incorrect response was entered in the
'Enter Password' dialog. 'Enter Password' dialog.
2018-10-28 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression that caused the bankground of blank Sound Panel
buttons to be black.

View File

@ -23,7 +23,6 @@
#include <qpixmap.h> #include <qpixmap.h>
#include <qpainter.h> #include <qpainter.h>
//Added by qt3to4:
#include <QDropEvent> #include <QDropEvent>
#include <QMouseEvent> #include <QMouseEvent>
#include <QKeyEvent> #include <QKeyEvent>
@ -52,8 +51,8 @@ void RDPanelButton::clear()
{ {
setText(""); setText("");
setOutputText(""); setOutputText("");
setDefaultColor(button_parent->backgroundColor()); button_color=Qt::lightGray;
setColor(button_parent->backgroundColor()); button_default_color=Qt::lightGray;
setCart(0); setCart(0);
button_deck=-1; button_deck=-1;
button_output=-1; button_output=-1;
@ -492,6 +491,7 @@ void RDPanelButton::WriteKeycap(int secs)
setPixmap(*pix); setPixmap(*pix);
delete p; delete p;
delete pix; delete pix;
update();
} }