fixed ComicVineClient timeOut connection from search

This commit is contained in:
Luis Ángel San Martín 2013-10-29 19:46:00 +01:00
parent b42a7ea8b4
commit 34b31d18fe
2 changed files with 43 additions and 42 deletions

View File

@ -45,7 +45,7 @@ void ComicVineClient::search(const QString & query, int 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(timeout()),this,SLOT(queryTimeOut()));
connect(search,SIGNAL(timeout()),this,SIGNAL(timeOut()));
connect(search,SIGNAL(finished()),search,SLOT(deleteLater()));
search->get();
}

View File

@ -23,7 +23,8 @@ public:
};
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);
}
static QWidget * getSeparator(){QWidget * w = new QWidget; w->setFixedWidth(1); w->setStyleSheet("QWidget {background:#282828;}"); return w;}