forzada la carga de portadas en el directorio ra?z de las bibliotecas

This commit is contained in:
Luis Ángel San Martín 2013-05-05 12:53:55 +02:00
parent 9465a83309
commit 81b9370f65
2 changed files with 10 additions and 3 deletions

View File

@ -69,7 +69,7 @@ void LibraryWindow::setupUI()
if(settings->contains(MAIN_WINDOW_GEOMETRY))
restoreGeometry(settings->value(MAIN_WINDOW_GEOMETRY).toByteArray());
else
if(settings->value(USE_OPEN_GL).toBool() == false)
//if(settings->value(USE_OPEN_GL).toBool() == false)
showMaximized();
}
@ -740,7 +740,9 @@ void LibraryWindow::loadLibrary(const QString & name)
}
enableLibraryActions();
loadCovers(QModelIndex());
setRootIndex();
//TODO encontrar el bug que provoca que no se carguen adecuadamente las carátulas en root.
setRootIndex();
//includeComicsCheckBox->setCheckState(Qt::Unchecked);
foldersFilter->clear();

View File

@ -10,7 +10,10 @@ NoLibrariesWidget::NoLibrariesWidget(QWidget *parent) :
{
setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Expanding);
setStyleSheet("{color:FFFFFF;}");
QPalette p(palette());
p.setColor(QPalette::Background, Qt::white);
setAutoFillBackground(true);
setPalette(p);
QPixmap icon(":/images/noLibrariesIcon.png");
QLabel * iconLabel = new QLabel();
@ -30,6 +33,8 @@ NoLibrariesWidget::NoLibrariesWidget(QWidget *parent) :
QVBoxLayout * layout = new QVBoxLayout(this);
QHBoxLayout * buttonLayout = new QHBoxLayout();
//QHBoxLayout * topLayout = new QHBoxLayout();
//QVBoxLayout * textLayout = new QVBoxLayout();
layout->setAlignment(Qt::AlignHCenter);