Commit a2980fc1 authored by Christophe Courtaut's avatar Christophe Courtaut
Browse files

Added Dummy Icon to MediaLibrary

parent af758f40
......@@ -22,11 +22,14 @@
#include "ListViewMediaItem.h"
ListViewMediaItem::ListViewMediaItem( QFileInfo* fInfo, ListViewMediaItem::fType fType, QListWidget* parent, int type ) : QListWidgetItem( parent, type )
ListViewMediaItem::ListViewMediaItem( QFileInfo* fInfo, ListViewMediaItem::fType fType, QListWidget* parent, int type ) :
QListWidgetItem( parent, type )
{
m_fileInfo = fInfo;
m_fileType = fType;
setText( m_fileInfo->baseName() );
//TODO : Replace this by snapshot.
setIcon( QIcon( ":/images/images/vlmc.png" ) );
setText( fInfo->baseName() );
}
ListViewMediaItem::~ListViewMediaItem()
......
......@@ -27,6 +27,7 @@
MediaListWidget::MediaListWidget( QWidget* parent ) : QListWidget( parent )
{
m_svgRenderer = new QSvgRenderer( this );
setIconSize( QSize( 128, 128 ) );
}
void MediaListWidget::setType( ListViewMediaItem::fType fileType )
......
......@@ -20,7 +20,7 @@
<enum>QTabWidget::East</enum>
</property>
<property name="currentIndex">
<number>0</number>
<number>2</number>
</property>
<property name="elideMode">
<enum>Qt::ElideNone</enum>
......@@ -50,6 +50,15 @@
<property name="dragDropMode">
<enum>QAbstractItemView::DragDrop</enum>
</property>
<property name="viewMode">
<enum>QListView::IconMode</enum>
</property>
<property name="uniformItemSizes">
<bool>true</bool>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
......@@ -73,9 +82,15 @@
<property name="dragDropMode">
<enum>QAbstractItemView::DragDrop</enum>
</property>
<property name="viewMode">
<enum>QListView::IconMode</enum>
</property>
<property name="uniformItemSizes">
<bool>true</bool>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
......@@ -96,6 +111,15 @@
<property name="dragDropMode">
<enum>QAbstractItemView::DragDrop</enum>
</property>
<property name="viewMode">
<enum>QListView::IconMode</enum>
</property>
<property name="uniformItemSizes">
<bool>true</bool>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
......
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