mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-22 07:39:35 +02:00
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:
parent
44b9c6848a
commit
80e04f2fbf
@ -20898,3 +20898,6 @@
|
|||||||
2021-01-25 Fred Gleason <fredg@paravelsystems.com>
|
2021-01-25 Fred Gleason <fredg@paravelsystems.com>
|
||||||
* Refactored the 'List Feed' dialog in rdadmin(1) to use the
|
* Refactored the 'List Feed' dialog in rdadmin(1) to use the
|
||||||
model-based API.
|
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.
|
||||||
|
@ -37,7 +37,7 @@ RDFeedListModel::RDFeedListModel(bool is_admin,QObject *parent)
|
|||||||
//
|
//
|
||||||
unsigned left=Qt::AlignLeft|Qt::AlignVCenter;
|
unsigned left=Qt::AlignLeft|Qt::AlignVCenter;
|
||||||
unsigned center=Qt::AlignCenter;
|
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_headers.push_back(tr("Key Name")); // 00
|
||||||
d_alignments.push_back(left);
|
d_alignments.push_back(left);
|
||||||
@ -546,7 +546,9 @@ void RDFeedListModel::updateRow(int row,RDSqlQuery *q)
|
|||||||
applicationIcon(RDIconEngine::RdCastManager,32);
|
applicationIcon(RDIconEngine::RdCastManager,32);
|
||||||
}
|
}
|
||||||
else {
|
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
|
d_texts[row][1]=q->value(2); // Title
|
||||||
if(q->value(3).toString()=="Y") {
|
if(q->value(3).toString()=="Y") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user