mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -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
|
6.0
|
||||||
|
|
||||||
Mejorada la velocidad de inicio gracias al uso de /LTCG como opción de compilación
|
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))
|
if(settings->contains(MAIN_WINDOW_GEOMETRY))
|
||||||
restoreGeometry(settings->value(MAIN_WINDOW_GEOMETRY).toByteArray());
|
restoreGeometry(settings->value(MAIN_WINDOW_GEOMETRY).toByteArray());
|
||||||
else
|
else
|
||||||
showMaximized();
|
if(settings->value(USE_OPEN_GL).toBool() == false)
|
||||||
|
showMaximized();
|
||||||
if(settings->contains(MAIN_WINDOW_STATE))
|
|
||||||
restoreState(settings->value(MAIN_WINDOW_STATE).toByteArray());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void LibraryWindow::doLayout()
|
void LibraryWindow::doLayout()
|
||||||
@ -266,7 +264,7 @@ void LibraryWindow::createActions()
|
|||||||
{
|
{
|
||||||
createLibraryAction = new QAction(this);
|
createLibraryAction = new QAction(this);
|
||||||
createLibraryAction->setToolTip(tr("Create a new library"));
|
createLibraryAction->setToolTip(tr("Create a new library"));
|
||||||
createLibraryAction->setShortcut(Qt::Key_C);
|
createLibraryAction->setShortcut(Qt::Key_A);
|
||||||
createLibraryAction->setIcon(QIcon(":/images/new.png"));
|
createLibraryAction->setIcon(QIcon(":/images/new.png"));
|
||||||
|
|
||||||
openLibraryAction = new QAction(this);
|
openLibraryAction = new QAction(this);
|
||||||
@ -353,22 +351,27 @@ void LibraryWindow::createActions()
|
|||||||
helpAboutAction->setIcon(QIcon(":/images/help.png"));
|
helpAboutAction->setIcon(QIcon(":/images/help.png"));
|
||||||
|
|
||||||
setRootIndexAction = new QAction(this);
|
setRootIndexAction = new QAction(this);
|
||||||
|
setRootIndexAction->setShortcut(Qt::Key_0);
|
||||||
setRootIndexAction->setToolTip(tr("Select root node"));
|
setRootIndexAction->setToolTip(tr("Select root node"));
|
||||||
setRootIndexAction->setIcon(QIcon(":/images/setRoot.png"));
|
setRootIndexAction->setIcon(QIcon(":/images/setRoot.png"));
|
||||||
|
|
||||||
expandAllNodesAction = new QAction(this);
|
expandAllNodesAction = new QAction(this);
|
||||||
|
expandAllNodesAction->setShortcut(tr("+"));
|
||||||
expandAllNodesAction->setToolTip(tr("Expand all nodes"));
|
expandAllNodesAction->setToolTip(tr("Expand all nodes"));
|
||||||
expandAllNodesAction->setIcon(QIcon(":/images/expand.png"));
|
expandAllNodesAction->setIcon(QIcon(":/images/expand.png"));
|
||||||
|
|
||||||
colapseAllNodesAction = new QAction(this);
|
colapseAllNodesAction = new QAction(this);
|
||||||
|
colapseAllNodesAction->setShortcut(tr("-"));
|
||||||
colapseAllNodesAction->setToolTip(tr("Colapse all nodes"));
|
colapseAllNodesAction->setToolTip(tr("Colapse all nodes"));
|
||||||
colapseAllNodesAction->setIcon(QIcon(":/images/colapse.png"));
|
colapseAllNodesAction->setIcon(QIcon(":/images/colapse.png"));
|
||||||
|
|
||||||
optionsAction = new QAction(this);
|
optionsAction = new QAction(this);
|
||||||
|
optionsAction->setShortcut(Qt::Key_C);
|
||||||
optionsAction->setToolTip(tr("Show options dialog"));
|
optionsAction->setToolTip(tr("Show options dialog"));
|
||||||
optionsAction->setIcon(QIcon(":/images/options.png"));
|
optionsAction->setIcon(QIcon(":/images/options.png"));
|
||||||
|
|
||||||
serverConfigAction = new QAction(this);
|
serverConfigAction = new QAction(this);
|
||||||
|
serverConfigAction->setShortcut(Qt::Key_S);
|
||||||
serverConfigAction->setToolTip(tr("Show comics server options dialog"));
|
serverConfigAction->setToolTip(tr("Show comics server options dialog"));
|
||||||
serverConfigAction->setIcon(QIcon(":/images/server.png"));
|
serverConfigAction->setIcon(QIcon(":/images/server.png"));
|
||||||
|
|
||||||
@ -1179,6 +1182,8 @@ void LibraryWindow::toggleFullScreen()
|
|||||||
|
|
||||||
void LibraryWindow::toFullScreen()
|
void LibraryWindow::toFullScreen()
|
||||||
{
|
{
|
||||||
|
fromMaximized = this->isMaximized();
|
||||||
|
|
||||||
comicFlow->hide();
|
comicFlow->hide();
|
||||||
comicFlow->setSlideSize(slideSizeF);
|
comicFlow->setSlideSize(slideSizeF);
|
||||||
comicFlow->setCenterIndex(comicFlow->centerIndex());
|
comicFlow->setCenterIndex(comicFlow->centerIndex());
|
||||||
@ -1209,7 +1214,10 @@ void LibraryWindow::toNormal()
|
|||||||
libraryToolBar->show();
|
libraryToolBar->show();
|
||||||
comicFlow->show();
|
comicFlow->show();
|
||||||
|
|
||||||
showNormal();
|
if(fromMaximized)
|
||||||
|
showMaximized();
|
||||||
|
else
|
||||||
|
showNormal();
|
||||||
}
|
}
|
||||||
|
|
||||||
void LibraryWindow::setFoldersFilter(QString filter)
|
void LibraryWindow::setFoldersFilter(QString filter)
|
||||||
@ -1489,5 +1497,4 @@ QString LibraryWindow::getFolderName(const QString & libraryName, qulonglong id)
|
|||||||
void LibraryWindow::closeEvent ( QCloseEvent * event )
|
void LibraryWindow::closeEvent ( QCloseEvent * event )
|
||||||
{
|
{
|
||||||
settings->setValue(MAIN_WINDOW_GEOMETRY, saveGeometry());
|
settings->setValue(MAIN_WINDOW_GEOMETRY, saveGeometry());
|
||||||
settings->setValue(MAIN_WINDOW_STATE, saveState());
|
|
||||||
}
|
}
|
@ -50,6 +50,7 @@ private:
|
|||||||
PropertiesDialog * propertiesDialog;
|
PropertiesDialog * propertiesDialog;
|
||||||
bool fullscreen;
|
bool fullscreen;
|
||||||
bool importedCovers; //if true, the library is read only (not updates,open comic or properties)
|
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
|
//Ya no se usan proxies, el rendimiento de la BD es suficiente
|
||||||
//YACReaderTreeSearch * proxyFilter;
|
//YACReaderTreeSearch * proxyFilter;
|
||||||
//YACReaderSortComics * proxySort;
|
//YACReaderSortComics * proxySort;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user