mirror of
https://github.com/YACReader/yacreader
synced 2025-07-19 05:24:57 -04:00
corregido bug que evitaba drag&drop para abrir
corregido bug en el filtro de ficheros del di?logo abrir information label s?lo se muestra si hay un c?mic abierto
This commit is contained in:
@ -416,7 +416,7 @@ void MainWindowViewer::reloadOptions()
|
|||||||
void MainWindowViewer::open()
|
void MainWindowViewer::open()
|
||||||
{
|
{
|
||||||
QFileDialog openDialog;
|
QFileDialog openDialog;
|
||||||
QString pathFile = openDialog.getOpenFileName(this,tr("Open Comic"),currentDirectory,tr("Comic files") + "(*.cbr *.cbz *.rar *.zip *.tar *.pdf *.7z *.cb7 *.arj *.cbt");
|
QString pathFile = openDialog.getOpenFileName(this,tr("Open Comic"),currentDirectory,tr("Comic files") + "(*.cbr *.cbz *.rar *.zip *.tar *.pdf *.7z *.cb7 *.arj *.cbt)");
|
||||||
if (!pathFile.isEmpty())
|
if (!pathFile.isEmpty())
|
||||||
{
|
{
|
||||||
openComicFromPath(pathFile);
|
openComicFromPath(pathFile);
|
||||||
|
@ -111,13 +111,7 @@ drag(false)
|
|||||||
notificationsLabel->hide();
|
notificationsLabel->hide();
|
||||||
|
|
||||||
informationLabel = new PageLabelWidget(this);
|
informationLabel = new PageLabelWidget(this);
|
||||||
if(Configuration::getConfiguration().getShowInformation())
|
|
||||||
{
|
|
||||||
QTimer * timer = new QTimer();
|
|
||||||
connect(timer,SIGNAL(timeout()),this,SLOT(informationSwitch()));
|
|
||||||
connect(timer,SIGNAL(timeout()),timer,SLOT(deleteLater()));
|
|
||||||
timer->start();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Viewer::createConnections()
|
void Viewer::createConnections()
|
||||||
@ -170,8 +164,18 @@ void Viewer::open(QString pathFile)
|
|||||||
//render->update();
|
//render->update();
|
||||||
|
|
||||||
verticalScrollBar()->setSliderPosition(verticalScrollBar()->minimum());
|
verticalScrollBar()->setSliderPosition(verticalScrollBar()->minimum());
|
||||||
|
|
||||||
|
if(Configuration::getConfiguration().getShowInformation() && !information)
|
||||||
|
{
|
||||||
|
QTimer * timer = new QTimer();
|
||||||
|
connect(timer,SIGNAL(timeout()),this,SLOT(informationSwitch()));
|
||||||
|
connect(timer,SIGNAL(timeout()),timer,SLOT(deleteLater()));
|
||||||
|
timer->start();
|
||||||
|
}
|
||||||
|
|
||||||
informationLabel->setText("...");
|
informationLabel->setText("...");
|
||||||
|
|
||||||
|
setAcceptDrops(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Viewer::showMessageErrorOpening()
|
void Viewer::showMessageErrorOpening()
|
||||||
|
Reference in New Issue
Block a user