mirror of
https://github.com/YACReader/yacreader
synced 2025-07-22 23:15:14 -04:00
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:
@ -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
|
||||
|
@ -5,10 +5,10 @@
|
||||
#include <QHttp>
|
||||
#include <QHttpResponseHeader>
|
||||
#include <QByteArray>
|
||||
|
||||
#include <QThread>
|
||||
#include "yacreader_global.h"
|
||||
|
||||
class HttpVersionChecker : public QWidget
|
||||
class HttpVersionChecker : public QThread
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
@ -20,6 +20,7 @@
|
||||
void read(const QHttpResponseHeader &);
|
||||
void get();
|
||||
private:
|
||||
void run();
|
||||
QHttp *http;
|
||||
int httpGetId;
|
||||
QByteArray content;
|
||||
|
@ -711,7 +711,7 @@ void YACReaderFlowGL::populate(int n)
|
||||
}*/
|
||||
|
||||
loaded = QVector<bool>(n,false);
|
||||
marks = QVector<bool>(n,false);
|
||||
//marks = QVector<bool>(n,false);
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user