corregido problema de lag con "check new version"

corregido bug que causaba que las marcas de leidos no se viesen bajo determinadas
circustancias

sincronizadas los sliders de ajustar a lo ancho

corregido bug que causaba que los mensajes isCover e isLast no se mostrasen en
modo de doble p?gina
This commit is contained in:
Luis Ángel San Martín
2013-03-08 17:50:52 +01:00
parent ccf9ffa4bc
commit a664eaf90e
10 changed files with 43 additions and 10 deletions

View File

@ -7,7 +7,7 @@
#define PREVIOUS_VERSION "5.0.0"
HttpVersionChecker::HttpVersionChecker()
:QWidget()
:QThread()
{
http = new QHttp(this);
@ -22,6 +22,12 @@ HttpVersionChecker::HttpVersionChecker()
}
void HttpVersionChecker::get()
{
this->start();
}
void HttpVersionChecker::run()
{
QUrl url("http://code.google.com/p/yacreader/downloads/list");
QHttp::ConnectionMode mode = QHttp::ConnectionModeHttp;
@ -30,6 +36,7 @@ void HttpVersionChecker::get()
if (path.isEmpty())
path = "/";
httpGetId = http->get(path, 0);
exec();
}
void HttpVersionChecker::readResponseHeader(const QHttpResponseHeader &responseHeader)
{
@ -48,6 +55,7 @@ void HttpVersionChecker::httpRequestFinished(int requestId, bool error)
QString response(content);
#endif
checkNewVersion(response);
exit();
}
//TODO escribir prueba unitaria