mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Update dialog info when it is shown
This commit is contained in:
parent
9b196a655a
commit
76347060c7
@ -113,6 +113,13 @@ ServerConfigDialog::ServerConfigDialog(QWidget *parent)
|
|||||||
connect(check, &QCheckBox::stateChanged, this, &ServerConfigDialog::enableServer);
|
connect(check, &QCheckBox::stateChanged, this, &ServerConfigDialog::enableServer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ServerConfigDialog::showEvent(QShowEvent *event)
|
||||||
|
{
|
||||||
|
QDialog::showEvent(event);
|
||||||
|
|
||||||
|
generateQR();
|
||||||
|
}
|
||||||
|
|
||||||
void ServerConfigDialog::enableServer(int status)
|
void ServerConfigDialog::enableServer(int status)
|
||||||
{
|
{
|
||||||
QSettings *settings = new QSettings(YACReader::getSettingsPath() + "/YACReaderLibrary.ini", QSettings::IniFormat); // TODO unificar la creación del fichero de config con el servidor
|
QSettings *settings = new QSettings(YACReader::getSettingsPath() + "/YACReaderLibrary.ini", QSettings::IniFormat); // TODO unificar la creación del fichero de config con el servidor
|
||||||
|
@ -13,6 +13,7 @@ class ServerConfigDialog : public QDialog
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
ServerConfigDialog(QWidget *parent = 0);
|
ServerConfigDialog(QWidget *parent = 0);
|
||||||
|
void showEvent(QShowEvent *event) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QComboBox *ip;
|
QComboBox *ip;
|
||||||
|
Loading…
Reference in New Issue
Block a user