wiiqt6/saveToy/savelistitem.cpp
giantpune@gmail.com 1994e8bdda * adding stuff to convert to/from data.bin for saves
git-svn-id: http://wiiqt.googlecode.com/svn/trunk@34 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-01-02 06:15:26 +00:00

24 lines
551 B
C++

#include "savelistitem.h"
SaveListItem::SaveListItem( SaveBanner banner, const QString &tid, quint32 s, QListWidget * parent ) : QListWidgetItem( parent ), size( s )
{
sb = banner;
QImage im = banner.BannerImg();
if( !im.isNull() )
{
im.load( ";/noBanner.png" );
}
QString tex = banner.Title();
if( tex.isEmpty() )
tex = "???";
this->setText( tex );
this->setIcon( QIcon( QPixmap::fromImage( im ) ) );
id = tid;
}
SaveListItem::~SaveListItem()
{
//qDebug() << "SaveListItem destroyed";
}