mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
fixed ComicVineClient timeOut connection from search
This commit is contained in:
parent
b42a7ea8b4
commit
34b31d18fe
@ -45,7 +45,7 @@ void ComicVineClient::search(const QString & query, int page)
|
|||||||
{
|
{
|
||||||
HttpWorker * search = new HttpWorker(CV_SEARCH.arg(query).arg(page));
|
HttpWorker * search = new HttpWorker(CV_SEARCH.arg(query).arg(page));
|
||||||
connect(search,SIGNAL(dataReady(const QByteArray &)),this,SLOT(proccessVolumesSearchData(const QByteArray &)));
|
connect(search,SIGNAL(dataReady(const QByteArray &)),this,SLOT(proccessVolumesSearchData(const QByteArray &)));
|
||||||
connect(search,SIGNAL(timeout()),this,SLOT(queryTimeOut()));
|
connect(search,SIGNAL(timeout()),this,SIGNAL(timeOut()));
|
||||||
connect(search,SIGNAL(finished()),search,SLOT(deleteLater()));
|
connect(search,SIGNAL(finished()),search,SLOT(deleteLater()));
|
||||||
search->get();
|
search->get();
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,8 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
ScrapperToolButton(ScrapperToolButton::Appearance appearance = DEFAULT, QWidget * parent=0):QPushButton(parent),appearance(appearance) {
|
ScrapperToolButton(ScrapperToolButton::Appearance appearance = DEFAULT, QWidget * parent=0):QPushButton(parent),appearance(appearance) {
|
||||||
setStyleSheet("QPushButton {border: none; background: #2e2e2e; color:white; border-radius:2px;}");
|
setStyleSheet("QPushButton {border: none; background: #2e2e2e; color:white; border-radius:2px;}"
|
||||||
|
"QPushButton::pressed {border: none; background: #282828; color:white; border-radius:2px;}");
|
||||||
setFixedSize(18,17);
|
setFixedSize(18,17);
|
||||||
}
|
}
|
||||||
static QWidget * getSeparator(){QWidget * w = new QWidget; w->setFixedWidth(1); w->setStyleSheet("QWidget {background:#282828;}"); return w;}
|
static QWidget * getSeparator(){QWidget * w = new QWidget; w->setFixedWidth(1); w->setStyleSheet("QWidget {background:#282828;}"); return w;}
|
||||||
@ -32,55 +33,55 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void paintEvent(QPaintEvent * e)
|
void paintEvent(QPaintEvent * e)
|
||||||
{
|
{
|
||||||
QPainter p(this);
|
QPainter p(this);
|
||||||
|
|
||||||
switch (appearance) {
|
switch (appearance) {
|
||||||
case LEFT:
|
case LEFT:
|
||||||
p.fillRect(16,0,2,18,QColor("#2E2E2E"));
|
p.fillRect(16,0,2,18,QColor("#2E2E2E"));
|
||||||
break;
|
break;
|
||||||
case RIGHT:
|
case RIGHT:
|
||||||
p.fillRect(0,0,2,18,QColor("#2E2E2E"));
|
p.fillRect(0,0,2,18,QColor("#2E2E2E"));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
QPushButton::paintEvent(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
QPushButton::paintEvent(e);
|
private:
|
||||||
}
|
Appearance appearance;
|
||||||
|
};
|
||||||
|
|
||||||
private:
|
class SortVolumeComics : public QWidget
|
||||||
Appearance appearance;
|
{
|
||||||
};
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
explicit SortVolumeComics(QWidget *parent = 0);
|
||||||
|
|
||||||
class SortVolumeComics : public QWidget
|
signals:
|
||||||
{
|
|
||||||
Q_OBJECT
|
|
||||||
public:
|
|
||||||
explicit SortVolumeComics(QWidget *parent = 0);
|
|
||||||
|
|
||||||
signals:
|
public slots:
|
||||||
|
void setData(QList<ComicDB> & comics, const QString & json);
|
||||||
|
|
||||||
public slots:
|
protected slots:
|
||||||
void setData(QList<ComicDB> & comics, const QString & json);
|
void synchronizeScroll(int pos);
|
||||||
|
|
||||||
protected slots:
|
private:
|
||||||
void synchronizeScroll(int pos);
|
ScraperTableView * tableFiles;
|
||||||
|
ScraperTableView * tableVolumeComics;
|
||||||
|
|
||||||
private:
|
LocalComicListModel * localComicsModel;
|
||||||
ScraperTableView * tableFiles;
|
VolumeComicsModel * volumeComicsModel;
|
||||||
ScraperTableView * tableVolumeComics;
|
|
||||||
|
|
||||||
LocalComicListModel * localComicsModel;
|
ScrapperToolButton * moveUpButtonCL;
|
||||||
VolumeComicsModel * volumeComicsModel;
|
ScrapperToolButton * moveDownButtonCL;
|
||||||
|
ScrapperToolButton * moveUpButtonIL;
|
||||||
|
ScrapperToolButton * moveDownButtonIL;
|
||||||
|
|
||||||
ScrapperToolButton * moveUpButtonCL;
|
};
|
||||||
ScrapperToolButton * moveDownButtonCL;
|
|
||||||
ScrapperToolButton * moveUpButtonIL;
|
|
||||||
ScrapperToolButton * moveDownButtonIL;
|
|
||||||
|
|
||||||
};
|
#endif // SORT_VOLUME_COMICS_H
|
||||||
|
|
||||||
#endif // SORT_VOLUME_COMICS_H
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user