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:
Luis Ángel San Martín
2013-03-09 11:30:41 +01:00
parent a664eaf90e
commit cefcd7d313
2 changed files with 12 additions and 8 deletions

View File

@ -111,13 +111,7 @@ drag(false)
notificationsLabel->hide();
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()
@ -170,8 +164,18 @@ void Viewer::open(QString pathFile)
//render->update();
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("...");
setAcceptDrops(true);
}
void Viewer::showMessageErrorOpening()