fixed lots of warnings

This commit is contained in:
Luis Ángel San Martín
2013-08-24 17:41:16 +02:00
parent cd43bd791a
commit 8ae63e562a
45 changed files with 315 additions and 254 deletions

View File

@ -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()