mirror of
https://github.com/YACReader/yacreader
synced 2025-07-22 06:54:39 -04:00
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:
@ -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();
|
||||
|
Reference in New Issue
Block a user