mirror of
https://github.com/YACReader/yacreader
synced 2025-07-19 05:24:57 -04:00
removed current cover indicator from 'flow'
enabled volume search in comic vine dialog
This commit is contained in:
@ -116,6 +116,15 @@ QString ComicDB::getTitleOrPath()
|
||||
return QFileInfo(path).fileName();
|
||||
}
|
||||
|
||||
QString ComicDB::getParentFolderName()
|
||||
{
|
||||
QStringList paths = path.split('/');
|
||||
if(paths.length()<2)
|
||||
return "";
|
||||
else
|
||||
return paths[paths.length()-2];
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
//COMIC_INFO-------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@ -135,6 +135,9 @@ public:
|
||||
//returns comic title if it isn't null or empty, in other case returns fileName
|
||||
QString getTitleOrPath();
|
||||
|
||||
//returns parent folder name
|
||||
QString getParentFolderName();
|
||||
|
||||
QString toTXT();
|
||||
|
||||
ComicInfo info;
|
||||
|
@ -934,17 +934,8 @@ void PictureFlowSoftwareRenderer::render()
|
||||
renderSlides();
|
||||
if(state->slideImages.size()>0)
|
||||
{
|
||||
int x = buffer.width()/2;
|
||||
int size = buffer.width() * 0.021;
|
||||
int size = buffer.width() * 0.015;
|
||||
int start = buffer.width() * 0.010;
|
||||
for(int j = start; j<size;j++)
|
||||
{
|
||||
buffer.setPixel(QPoint(x,j),QColor(255,255,255).rgb()-state->backgroundColor);
|
||||
for(int i = 0; i<size-j;i++){
|
||||
buffer.setPixel(QPoint(x-i,j),QColor(255,255,255).rgb()-state->backgroundColor);
|
||||
buffer.setPixel(QPoint(x+i,j),QColor(255,255,255).rgb()-state->backgroundColor);
|
||||
}
|
||||
}
|
||||
|
||||
QPainter painter(&buffer);
|
||||
painter.setPen(QColor(255,255,255).rgb()-state->backgroundColor);
|
||||
|
@ -306,7 +306,7 @@ void YACReaderFlowGL::paintGL()
|
||||
void YACReaderFlowGL::resizeGL(int width, int height)
|
||||
{
|
||||
|
||||
fontSize = width * 0.02;
|
||||
fontSize = width * 0.015;
|
||||
|
||||
//int side = qMin(width, height);
|
||||
udpatePerspective(width,height);
|
||||
@ -529,14 +529,7 @@ void YACReaderFlowGL::draw()
|
||||
glMatrixMode(GL_MODELVIEW);
|
||||
glLoadIdentity();
|
||||
|
||||
glBegin( GL_TRIANGLES );
|
||||
|
||||
glColor4f( 1.0f, 1.0f, 1.0f, 1.0f );
|
||||
glVertex2f( -0.03f, 0.98f);
|
||||
glVertex2f( 0.03f, 0.98f);
|
||||
glVertex2f( 0.f, 0.949f);
|
||||
|
||||
glEnd();
|
||||
|
||||
renderText(10, fontSize + 10,QString("%1/%2").arg(currentSelected+1).arg(numObjects),QFont("Arial", fontSize));
|
||||
|
||||
@ -1453,4 +1446,4 @@ QImage ImageLoaderByteArrayGL::result()
|
||||
// flow->cfImages[index].width = 0.5;
|
||||
// flow->cfImages[index].height = 0.5 * (float(image.height())/image.width());
|
||||
// flow->cfImages[index].img = bindTexture(image, GL_TEXTURE_2D,GL_RGBA,QGLContext::LinearFilteringBindOption | QGLContext::MipmapBindOption);
|
||||
//}
|
||||
//}
|
||||
|
Reference in New Issue
Block a user