mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-17 08:01:13 +02:00
2022-11-07 Fred Gleason <fredg@paravelsystems.com>
* Added a dependency for ImageMagick's 'Magick++' library interface. * Added a 'FEED_IMAGES.DATA_MID_THUMB' field to the database. * Added a 'FEED_IMAGES.DATA_SMALL_THUMB' field to the database. * Incremented the database version to 365. * Optimized loading of thumbnail image data in rdadmin(1), rdcastmanager(1) and rdcatch(1). * Re-enabled uploads to RSS feeds in rdcatch(1). Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -538,7 +538,7 @@ void RecordListModel::updateModel(const QString &filter_sql)
|
||||
d_feed_images.clear();
|
||||
sql=QString("select ")+
|
||||
"`ID`,"+ // 00
|
||||
"`DATA` "+ // 01
|
||||
"`DATA_SMALL_THUMB` "+ // 01
|
||||
"from `FEED_IMAGES`";
|
||||
q=new RDSqlQuery(sql);
|
||||
while(q->next()) {
|
||||
@@ -546,9 +546,13 @@ void RecordListModel::updateModel(const QString &filter_sql)
|
||||
d_feed_images[q->value(0).toUInt()]=QVariant();
|
||||
}
|
||||
else {
|
||||
/*
|
||||
d_feed_images[q->value(0).toUInt()]=
|
||||
QImage::fromData(q->value(1).toByteArray()).
|
||||
scaled(22,22,Qt::IgnoreAspectRatio,Qt::SmoothTransformation);
|
||||
*/
|
||||
d_feed_images[q->value(0).toUInt()]=
|
||||
QImage::fromData(q->value(1).toByteArray());
|
||||
}
|
||||
}
|
||||
delete q;
|
||||
|
Reference in New Issue
Block a user