mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
a3e990dfd5
commit
8af40025b0
2 changed files with 13 additions and 18 deletions
|
@ -55,6 +55,7 @@ private:
|
|||
WriteSettingsThread *writeThread;
|
||||
ResetSettingsThread *resetThread;
|
||||
FirmwareUpdateThread *firmwareThread;
|
||||
void connectThreadSignals(DeviceThread *thread);
|
||||
void setState(states newState);
|
||||
private
|
||||
slots:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue