mirror of
https://github.com/YACReader/yacreader
synced 2025-07-19 05:24:57 -04:00
fixed lots of warnings
This commit is contained in:
@ -67,7 +67,7 @@ void HttpVersionChecker::run()
|
||||
}
|
||||
void HttpVersionChecker::readResponseHeader(const QHttpResponseHeader &responseHeader)
|
||||
{
|
||||
|
||||
Q_UNUSED(responseHeader)
|
||||
}
|
||||
|
||||
void HttpVersionChecker::read(const QHttpResponseHeader &){
|
||||
@ -76,12 +76,14 @@ void HttpVersionChecker::read(const QHttpResponseHeader &){
|
||||
|
||||
void HttpVersionChecker::httpRequestFinished(int requestId, bool error)
|
||||
{
|
||||
Q_UNUSED(requestId)
|
||||
#ifdef QT_DEBUG
|
||||
QString response("YACReader-5.0.0 win32.exe");
|
||||
#else
|
||||
QString response(content);
|
||||
#endif
|
||||
checkNewVersion(response);
|
||||
if(!error)
|
||||
checkNewVersion(response);
|
||||
exit();
|
||||
}
|
||||
|
||||
|
@ -825,7 +825,7 @@ QRect PictureFlowSoftwareRenderer::renderSlide(const SlideInfo &slide, int col1,
|
||||
PFreal ys = slide.cy - state->slideWidth * sdy/2;
|
||||
PFreal dist = distance * PFREAL_ONE;
|
||||
|
||||
int xi = qMax((PFreal)0, (w*PFREAL_ONE/2) + fdiv(xs*h, dist+ys) >> PFREAL_SHIFT);
|
||||
int xi = qMax((PFreal)0, ((w*PFREAL_ONE/2) + fdiv(xs*h, dist+ys)) >> PFREAL_SHIFT);
|
||||
if(xi >= w)
|
||||
return rect;
|
||||
|
||||
@ -1076,7 +1076,7 @@ void PictureFlow::addSlide(const QImage& image)
|
||||
d->state->slideImages.resize(c+1);
|
||||
d->state->slideImages[c] = new QImage(image);
|
||||
d->state->marks.resize(c+1);
|
||||
d->state->marks[c] = YACReaderComicReadStatus::Unread;
|
||||
d->state->marks[c] = YACReader::Unread;
|
||||
triggerRender();
|
||||
}
|
||||
|
||||
@ -1361,7 +1361,7 @@ void PictureFlow::updateMarks()
|
||||
void PictureFlow::unmarkSlide(int index)
|
||||
{
|
||||
if(index<d->state->marks.size())
|
||||
d->state->marks[index] = YACReaderComicReadStatus::Unread;
|
||||
d->state->marks[index] = YACReader::Unread;
|
||||
}
|
||||
|
||||
void PictureFlow::setMarks(const QVector<YACReaderComicReadStatus> & m)
|
||||
|
@ -32,6 +32,8 @@
|
||||
|
||||
class PictureFlowPrivate;
|
||||
|
||||
using namespace YACReader;
|
||||
|
||||
/*!
|
||||
Class PictureFlow implements an image show widget with animation effect
|
||||
like Apple's CoverFlow (in iTunes and iPod). Images are arranged in form
|
||||
|
@ -637,6 +637,7 @@ void YACReaderFlowGL::updatePositions()
|
||||
|
||||
void YACReaderFlowGL::insert(char *name, GLuint Tex, float x, float y,int item)
|
||||
{
|
||||
Q_UNUSED(name)
|
||||
//set a new entry
|
||||
if(item == -1){
|
||||
|
||||
@ -660,7 +661,7 @@ void YACReaderFlowGL::insert(char *name, GLuint Tex, float x, float y,int item)
|
||||
cfImages[item].width = x;
|
||||
cfImages[item].height = y;
|
||||
cfImages[item].index = item;
|
||||
strcpy(cfImages[item].name,name);
|
||||
//strcpy(cfImages[item].name,name);
|
||||
}
|
||||
|
||||
void YACReaderFlowGL::remove(int item)
|
||||
@ -691,10 +692,11 @@ CFImage YACReaderFlowGL::getCurrentSelected()
|
||||
|
||||
void YACReaderFlowGL::replace(char *name, GLuint Tex, float x, float y,int item)
|
||||
{
|
||||
Q_UNUSED(name)
|
||||
cfImages[item].img = Tex;
|
||||
cfImages[item].width = x;
|
||||
cfImages[item].height = y;
|
||||
strcpy(cfImages[item].name,name);
|
||||
//strcpy(cfImages[item].name,name);
|
||||
loaded[item]=true;
|
||||
}
|
||||
|
||||
@ -875,6 +877,7 @@ void YACReaderFlowGL::setMarks(QVector<YACReaderComicReadStatus> marks)
|
||||
}
|
||||
void YACReaderFlowGL::setMarkImage(QImage & image)
|
||||
{
|
||||
Q_UNUSED(image);
|
||||
//qu<71> pasa la primera vez??
|
||||
//deleteTexture(markTexture);
|
||||
//markTexture = bindTexture(image,GL_TEXTURE_2D,GL_RGBA,QGLContext::LinearFilteringBindOption | QGLContext::MipmapBindOption);
|
||||
@ -885,10 +888,11 @@ void YACReaderFlowGL::markSlide(int index, YACReaderComicReadStatus status)
|
||||
}
|
||||
void YACReaderFlowGL::unmarkSlide(int index)
|
||||
{
|
||||
marks[index] = YACReaderComicReadStatus::Unread;
|
||||
marks[index] = YACReader::Unread;
|
||||
}
|
||||
void YACReaderFlowGL::setSlideSize(QSize size)
|
||||
{
|
||||
Q_UNUSED(size);
|
||||
//TODO calcular el tama<6D>o del widget
|
||||
}
|
||||
void YACReaderFlowGL::clear()
|
||||
|
@ -37,7 +37,7 @@ struct RVect{
|
||||
//the cover info struct
|
||||
struct CFImage{
|
||||
GLuint img;
|
||||
char name[256];
|
||||
//char name[256];
|
||||
|
||||
float width;
|
||||
float height;
|
||||
|
@ -50,6 +50,8 @@
|
||||
|
||||
#define YACREADERLIBRARY_GUID "ea343ff3-2005-4865-b212-7fa7c43999b8"
|
||||
|
||||
namespace YACReader
|
||||
{
|
||||
|
||||
enum FlowType
|
||||
{
|
||||
@ -74,5 +76,7 @@
|
||||
Opened = 2
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user