mirror of
https://github.com/YACReader/yacreader
synced 2025-07-26 00:44:59 -04:00
minor changes in ComicVineDialog (model)
This commit is contained in:
@ -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() {}
|
||||
|
Reference in New Issue
Block a user