MCPcopy Create free account
hub / github.com/YACReader/yacreader / updatePort

Method updatePort

YACReaderLibrary/server_config_dialog.cpp:211–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211void ServerConfigDialog::updatePort()
212{
213 QSettings *settings = new QSettings(YACReader::getSettingsPath() + "/YACReaderLibrary.ini", QSettings::IniFormat); // TODO unificar la creación del fichero de config con el servidor
214 settings->beginGroup("listener");
215 settings->setValue("port", port->text().toInt());
216 settings->endGroup();
217
218 httpServer->stop();
219 httpServer->start();
220
221 generateQR(ip->currentText() + ":" + port->text());
222}

Callers

nothing calls this directly

Calls 5

setValueMethod · 0.80
textMethod · 0.80
startMethod · 0.80
currentTextMethod · 0.80
stopMethod · 0.45

Tested by

no test coverage detected