Se recuerda si se debe mostrar o no la "label" informaci?n.

Corregido bug que provocaba el fallo de YACReader al pasar muy r?pido las p?ginas.
Modificado el di?logo "server config" para que muestre todas las ips y regenere
el c?digo qr en caso de que el usuario cambie la ip.
This commit is contained in:
Luis Ángel San Martín
2013-02-13 22:49:21 +01:00
parent 06174deb7f
commit 154d82a84b
11 changed files with 43 additions and 20 deletions

View File

@ -58,9 +58,6 @@ drag(false)
content->setMouseTracking(true);
setMouseTracking(true);
informationLabel = new PageLabelWidget(this);
informationLabel->hide();
showCursor();
goToDialog = new GoToDialog(this);
@ -112,6 +109,15 @@ drag(false)
notificationsLabel = new NotificationsLabelWidget(this);
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()
@ -497,6 +503,7 @@ void Viewer::informationSwitch()
information?informationLabel->hide():informationLabel->show();
//informationLabel->move(QPoint((width()-informationLabel->width())/2,0));
information=!information;
Configuration::getConfiguration().setShowInformation(information);
//TODO it shouldn't be neccesary
informationLabel->adjustSize();
informationLabel->update();