Commit 9cb8c674 authored by Thomas Boquet's avatar Thomas Boquet
Browse files

resolved scaled pixmaps

not perfect yet, to be continued ...
parent c91089f1
......@@ -35,8 +35,8 @@ void MediaCellView::setTitle( const QString& title )
void MediaCellView::setThumbnail( const QPixmap& pixmap )
{
m_ui->thumbnail->setScaledContents( true );
m_ui->thumbnail->setPixmap( pixmap );
m_ui->thumbnail->setScaledContents( false );
m_ui->thumbnail->setPixmap( pixmap.scaled( 48, 48, Qt::KeepAspectRatio ) );
}
const QPixmap* MediaCellView::getThumbnail() const
......
......@@ -50,8 +50,8 @@
</property>
<property name="baseSize">
<size>
<width>32</width>
<height>32</height>
<width>48</width>
<height>48</height>
</size>
</property>
<property name="text">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment