QTimer has a resolution of ms
This commit is contained in:
parent
aa05845e51
commit
0942248989
@ -17,7 +17,7 @@ Sender::Sender(QObject *parent) : QObject(parent)
|
|||||||
|
|
||||||
//Fetch settings
|
//Fetch settings
|
||||||
QSettings settings;
|
QSettings settings;
|
||||||
sendTimer->setInterval(settings.value("core/senderinterval", 2).toFloat());
|
sendTimer->setInterval(settings.value("core/senderinterval", 2).toInt());
|
||||||
sendingChecksum = settings.value("core/checksums", 0).toBool();
|
sendingChecksum = settings.value("core/checksums", 0).toBool();
|
||||||
|
|
||||||
sendTimer->start();
|
sendTimer->start();
|
||||||
|
|||||||
@ -9,7 +9,7 @@ SettingsWindow::SettingsWindow(QWidget *parent) :
|
|||||||
|
|
||||||
//bool firstrun = !settings.value("core/firstrun").toBool(); //firstrun is inverted!
|
//bool firstrun = !settings.value("core/firstrun").toBool(); //firstrun is inverted!
|
||||||
|
|
||||||
ui->senderbox->setValue(settings.value("core/senderinterval", 2).toFloat());
|
ui->senderbox->setValue(settings.value("core/senderinterval", 2).toInt());
|
||||||
ui->echobox->setChecked(settings.value("core/echo", 0).toBool());
|
ui->echobox->setChecked(settings.value("core/echo", 0).toBool());
|
||||||
ui->statusbox->setValue(settings.value("core/statusinterval", 2000).toInt());
|
ui->statusbox->setValue(settings.value("core/statusinterval", 2000).toInt());
|
||||||
ui->bedxbox->setValue(settings.value("printer/bedx", 200).toInt());
|
ui->bedxbox->setValue(settings.value("printer/bedx", 200).toInt());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user