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

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