cleanup: use pointer-to-function connect() in ConfigureDiveComputer

This version is compile-time checked and therefore less risky with
respect to refactoring.

Since the same three signals were connect()ed for three different
threads-objects, do this in a new function.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-10-04 21:00:21 +02:00 committed by Dirk Hohndel
parent a3e990dfd5
commit 8af40025b0
2 changed files with 13 additions and 18 deletions

View file

@ -55,6 +55,7 @@ private:
WriteSettingsThread *writeThread;
ResetSettingsThread *resetThread;
FirmwareUpdateThread *firmwareThread;
void connectThreadSignals(DeviceThread *thread);
void setState(states newState);
private
slots: