2023-04-29 Fred Gleason <fredg@paravelsystems.com>

* Added a 'RDWidget::setBackgroundPixmap()' method.
	* Fixed a bug in the voice tracker in rdairplay(1) that caused the
	the track waveform areas to be painted solid black.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2023-04-29 13:20:54 -04:00
parent 8a679e2733
commit b18da6a1aa
11 changed files with 62 additions and 19 deletions

View File

@@ -171,12 +171,7 @@ MainWidget::MainWidget(RDConfig *config,QWidget *parent)
for(int i=0;i<RDAIRPLAY_LOG_QUANTITY;i++) {
air_op_mode[i]=RDAirPlayConf::Previous;
}
bgmap=QPixmap(rda->airplayConf()->skinPath());
if(!bgmap.isNull()&&(bgmap.width()>=1024)&&(bgmap.height()>=738)) {
QPalette palette;
palette.setBrush(backgroundRole(),bgmap);
setPalette(palette);
}
setBackgroundPixmap(QPixmap(rda->airplayConf()->skinPath()));
//
// Top Strip
@@ -1800,7 +1795,7 @@ void MainWidget::resizeEvent(QResizeEvent *e)
{
int w=width();
int h=height();
//
// Top Row
//
@@ -1832,7 +1827,6 @@ void MainWidget::resizeEvent(QResizeEvent *e)
air_log_list[i]->setGeometry(550,140,w-560,h-215);
}
//
// Bottom Button Row
//