summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlinterface.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-01-31 09:37:08 +0100
committerGravatar bstoeger <32835590+bstoeger@users.noreply.github.com>2020-01-31 21:28:45 +0100
commit188e513761fb07587b09f90c2d3f043da8870cc9 (patch)
treec159472ebfe90cff429efe1a80598b7ff52ea475 /mobile-widgets/qmlinterface.h
parent9452a78b1d9f69121d81f345a5c3dbf2e100cf74 (diff)
downloadsubsurface-188e513761fb07587b09f90c2d3f043da8870cc9.tar.gz
Cleanup: connect QMLInterface signals in constructor
It appears weird to connect the QMLInterface signal/slot combination in a static helper function. This generates a bunch of lambdas that call the instance() function. Instead, simply do the connections in the constructor as we do it in numerous other places. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'mobile-widgets/qmlinterface.h')
-rw-r--r--mobile-widgets/qmlinterface.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/mobile-widgets/qmlinterface.h b/mobile-widgets/qmlinterface.h
index 0669c402c..3c6022daa 100644
--- a/mobile-widgets/qmlinterface.h
+++ b/mobile-widgets/qmlinterface.h
@@ -317,6 +317,6 @@ signals:
void diveSummaryTextChanged(QStringList);
private:
- QMLInterface() {}
+ QMLInterface();
};
#endif // QMLINTERFACE_H