mirror of
https://github.com/YACReader/yacreader
synced 2025-07-24 16:05:01 -04:00
Usability fixes to Comic View scraper, now the dialog can be resized and once a volume is selected all the comics in that volume are fetched, so no more problems trying to scrap info for large numbers of comics.
This commit is contained in:
@ -20,10 +20,7 @@ SelectComic::SelectComic(QWidget *parent)
|
||||
QVBoxLayout * l = new QVBoxLayout;
|
||||
QWidget * leftWidget = new QWidget;
|
||||
QVBoxLayout * left = new QVBoxLayout;
|
||||
QVBoxLayout * right = new QVBoxLayout;
|
||||
QHBoxLayout * content = new QHBoxLayout;
|
||||
|
||||
right->setContentsMargins(0,0,0,0);
|
||||
QGridLayout * content = new QGridLayout;
|
||||
|
||||
//widgets
|
||||
cover = new QLabel();
|
||||
@ -41,23 +38,22 @@ SelectComic::SelectComic(QWidget *parent)
|
||||
|
||||
left->addWidget(cover);
|
||||
left->addWidget(detailLabel,1);
|
||||
left->addStretch();
|
||||
leftWidget->setMaximumWidth(180);
|
||||
leftWidget->setLayout(left);
|
||||
left->setContentsMargins(0,0,0,0);
|
||||
leftWidget->setContentsMargins(0,0,0,0);
|
||||
|
||||
right->addWidget(tableComics,0,Qt::AlignRight|Qt::AlignTop);
|
||||
right->addWidget(paginator);
|
||||
content->addWidget(leftWidget, 0, 0);
|
||||
content->addWidget(tableComics, 0, 1);
|
||||
content->addWidget(paginator, 1, 1);
|
||||
|
||||
content->addWidget(leftWidget);
|
||||
content->addLayout(right);
|
||||
content->setColumnStretch(1, 1);
|
||||
content->setRowStretch(0, 1);;
|
||||
|
||||
l->addSpacing(15);
|
||||
l->addWidget(label);
|
||||
l->addSpacing(5);
|
||||
l->addLayout(content);
|
||||
l->addStretch();
|
||||
|
||||
l->setContentsMargins(0,0,0,0);
|
||||
setLayout(l);
|
||||
@ -70,8 +66,6 @@ void SelectComic::load(const QString &json, const QString & searchString)
|
||||
tempM->load(json);
|
||||
tableComics->setModel(tempM);
|
||||
|
||||
tableComics->setFixedSize(619,341);
|
||||
|
||||
if(model != 0)
|
||||
delete model;
|
||||
|
||||
|
Reference in New Issue
Block a user