fixed OpenGL in nvidia (there is a CPU ussage issue with vsync)

This commit is contained in:
Luis Ángel San Martín
2014-01-13 16:41:54 +01:00
commit 3c3c27f433
737 changed files with 67746 additions and 0 deletions

32
common/http_worker.h Normal file
View File

@ -0,0 +1,32 @@
#ifndef __HTTP_WORKER_H
#define __HTTP_WORKER_H
#include <QWidget>
#include <QByteArray>
#include <QThread>
#include <QUrl>
#include "yacreader_global.h"
class HttpWorker : public QThread
{
Q_OBJECT
public:
HttpWorker(const QString & urlString);
public slots:
void get();
QByteArray getResult();
bool wasValid();
bool wasTimeout();
private:
void run();
QUrl url;
int httpGetId;
QByteArray result;
bool _error;
bool _timeout;
signals:
void dataReady(const QByteArray &);
void timeout();
};
#endif