diff --git a/YACReaderLibrary/library_window.cpp b/YACReaderLibrary/library_window.cpp index 3993b586..25e2dad0 100644 --- a/YACReaderLibrary/library_window.cpp +++ b/YACReaderLibrary/library_window.cpp @@ -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(); diff --git a/YACReaderLibrary/no_libraries_widget.cpp b/YACReaderLibrary/no_libraries_widget.cpp index e40b4b47..ab003954 100644 --- a/YACReaderLibrary/no_libraries_widget.cpp +++ b/YACReaderLibrary/no_libraries_widget.cpp @@ -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);