minor changes in ComicVineDialog (model)

This commit is contained in:
Luis Ángel San Martín
2013-10-08 21:16:57 +02:00
parent 5ef8df423b
commit 6a6c902803
10 changed files with 159 additions and 12 deletions

View File

@ -8,7 +8,7 @@
#include "volumes_model.h"
SelectVolume::SelectVolume(QWidget *parent)
:QWidget(parent)
:QWidget(parent),model(0)
{
QString labelStylesheet = "QLabel {color:white; font-size:12px;font-family:Arial;}";
QString tableStylesheet = ""
@ -68,5 +68,15 @@ SelectVolume::SelectVolume(QWidget *parent)
setContentsMargins(0,0,0,0);
}
void SelectVolume::load(const QString & json)
{
if(model != 0)
delete model;
else
model = new VolumesModel();
model->load(json);
}
SelectVolume::~SelectVolume() {}