mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Corregido bug que al arrancar YACReaderLibrary por primera vez causaba que no se mostrasen las portadas (s?lo bajo ciertas circunstancias)
This commit is contained in:
parent
5b49bcb363
commit
31bd2a3c1b
@ -1,3 +1,8 @@
|
||||
6.0.1
|
||||
Corregido bug al usar las teclas Inicio/fin
|
||||
Corregido bug que al arrancar YACReaderLibrary por primera vez causaba que no se mostrasen las portadas (sólo bajo ciertas circunstancias)
|
||||
Añadidos algunos atajos de teclado a YACReaderLibrary a los ya existentes
|
||||
|
||||
6.0
|
||||
|
||||
Mejorada la velocidad de inicio gracias al uso de /LTCG como opción de compilación
|
||||
|
@ -55,10 +55,8 @@ void LibraryWindow::setupUI()
|
||||
if(settings->contains(MAIN_WINDOW_GEOMETRY))
|
||||
restoreGeometry(settings->value(MAIN_WINDOW_GEOMETRY).toByteArray());
|
||||
else
|
||||
showMaximized();
|
||||
|
||||
if(settings->contains(MAIN_WINDOW_STATE))
|
||||
restoreState(settings->value(MAIN_WINDOW_STATE).toByteArray());
|
||||
if(settings->value(USE_OPEN_GL).toBool() == false)
|
||||
showMaximized();
|
||||
}
|
||||
|
||||
void LibraryWindow::doLayout()
|
||||
@ -266,7 +264,7 @@ void LibraryWindow::createActions()
|
||||
{
|
||||
createLibraryAction = new QAction(this);
|
||||
createLibraryAction->setToolTip(tr("Create a new library"));
|
||||
createLibraryAction->setShortcut(Qt::Key_C);
|
||||
createLibraryAction->setShortcut(Qt::Key_A);
|
||||
createLibraryAction->setIcon(QIcon(":/images/new.png"));
|
||||
|
||||
openLibraryAction = new QAction(this);
|
||||
@ -353,22 +351,27 @@ void LibraryWindow::createActions()
|
||||
helpAboutAction->setIcon(QIcon(":/images/help.png"));
|
||||
|
||||
setRootIndexAction = new QAction(this);
|
||||
setRootIndexAction->setShortcut(Qt::Key_0);
|
||||
setRootIndexAction->setToolTip(tr("Select root node"));
|
||||
setRootIndexAction->setIcon(QIcon(":/images/setRoot.png"));
|
||||
|
||||
expandAllNodesAction = new QAction(this);
|
||||
expandAllNodesAction->setShortcut(tr("+"));
|
||||
expandAllNodesAction->setToolTip(tr("Expand all nodes"));
|
||||
expandAllNodesAction->setIcon(QIcon(":/images/expand.png"));
|
||||
|
||||
colapseAllNodesAction = new QAction(this);
|
||||
colapseAllNodesAction->setShortcut(tr("-"));
|
||||
colapseAllNodesAction->setToolTip(tr("Colapse all nodes"));
|
||||
colapseAllNodesAction->setIcon(QIcon(":/images/colapse.png"));
|
||||
|
||||
optionsAction = new QAction(this);
|
||||
optionsAction->setShortcut(Qt::Key_C);
|
||||
optionsAction->setToolTip(tr("Show options dialog"));
|
||||
optionsAction->setIcon(QIcon(":/images/options.png"));
|
||||
|
||||
serverConfigAction = new QAction(this);
|
||||
serverConfigAction->setShortcut(Qt::Key_S);
|
||||
serverConfigAction->setToolTip(tr("Show comics server options dialog"));
|
||||
serverConfigAction->setIcon(QIcon(":/images/server.png"));
|
||||
|
||||
@ -1179,6 +1182,8 @@ void LibraryWindow::toggleFullScreen()
|
||||
|
||||
void LibraryWindow::toFullScreen()
|
||||
{
|
||||
fromMaximized = this->isMaximized();
|
||||
|
||||
comicFlow->hide();
|
||||
comicFlow->setSlideSize(slideSizeF);
|
||||
comicFlow->setCenterIndex(comicFlow->centerIndex());
|
||||
@ -1209,7 +1214,10 @@ void LibraryWindow::toNormal()
|
||||
libraryToolBar->show();
|
||||
comicFlow->show();
|
||||
|
||||
showNormal();
|
||||
if(fromMaximized)
|
||||
showMaximized();
|
||||
else
|
||||
showNormal();
|
||||
}
|
||||
|
||||
void LibraryWindow::setFoldersFilter(QString filter)
|
||||
@ -1489,5 +1497,4 @@ QString LibraryWindow::getFolderName(const QString & libraryName, qulonglong id)
|
||||
void LibraryWindow::closeEvent ( QCloseEvent * event )
|
||||
{
|
||||
settings->setValue(MAIN_WINDOW_GEOMETRY, saveGeometry());
|
||||
settings->setValue(MAIN_WINDOW_STATE, saveState());
|
||||
}
|
@ -50,6 +50,7 @@ private:
|
||||
PropertiesDialog * propertiesDialog;
|
||||
bool fullscreen;
|
||||
bool importedCovers; //if true, the library is read only (not updates,open comic or properties)
|
||||
bool fromMaximized;
|
||||
//Ya no se usan proxies, el rendimiento de la BD es suficiente
|
||||
//YACReaderTreeSearch * proxyFilter;
|
||||
//YACReaderSortComics * proxySort;
|
||||
|
Loading…
Reference in New Issue
Block a user