2021-01-25 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in 'RDFeedListModel' that caused feed icons to fail
	to be scaled correctly.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2021-01-25 12:49:38 -05:00
parent 44b9c6848a
commit 80e04f2fbf
2 changed files with 7 additions and 2 deletions

View File

@ -20898,3 +20898,6 @@
2021-01-25 Fred Gleason <fredg@paravelsystems.com>
* Refactored the 'List Feed' dialog in rdadmin(1) to use the
model-based API.
2021-01-25 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'RDFeedListModel' that caused feed icons to fail
to be scaled correctly.

View File

@ -37,7 +37,7 @@ RDFeedListModel::RDFeedListModel(bool is_admin,QObject *parent)
//
unsigned left=Qt::AlignLeft|Qt::AlignVCenter;
unsigned center=Qt::AlignCenter;
unsigned right=Qt::AlignRight|Qt::AlignVCenter;
// unsigned right=Qt::AlignRight|Qt::AlignVCenter;
d_headers.push_back(tr("Key Name")); // 00
d_alignments.push_back(left);
@ -546,7 +546,9 @@ void RDFeedListModel::updateRow(int row,RDSqlQuery *q)
applicationIcon(RDIconEngine::RdCastManager,32);
}
else {
d_icons[row][0]=QImage::fromData(q->value(12).toByteArray());
d_icons[row][0]=
QImage::fromData(q->value(12).toByteArray()).
scaled(32,32,Qt::IgnoreAspectRatio,Qt::SmoothTransformation);
}
d_texts[row][1]=q->value(2); // Title
if(q->value(3).toString()=="Y") {