summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-01-16 13:06:53 +0100
committerJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-01-16 13:07:15 +0100
commit0bbf808b19d907e8b51026c7d2cecbd493fcc988 (patch)
treed96f06f327126f694944ffafc44396eff45be76f /src/control
parent32209a9fbfc86fe9f65da1d23646bd0978e3f8da (diff)
control/controlproxy: Apply clang-format formatting
Diffstat (limited to 'src/control')
-rw-r--r--src/control/controlproxy.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/control/controlproxy.h b/src/control/controlproxy.h
index c13aa0a5f9..0e26436e98 100644
--- a/src/control/controlproxy.h
+++ b/src/control/controlproxy.h
@@ -30,9 +30,10 @@ class ControlProxy : public QObject {
return m_key;
}
- template <typename Receiver, typename Slot>
+ template<typename Receiver, typename Slot>
bool connectValueChanged(Receiver receiver,
- Slot func, Qt::ConnectionType requestedConnectionType = Qt::AutoConnection) {
+ Slot func,
+ Qt::ConnectionType requestedConnectionType = Qt::AutoConnection) {
if (!m_pControl) {
return false;
}
@@ -49,7 +50,7 @@ class ControlProxy : public QObject {
// requested: BlockingQueued -> Assert(false)
Qt::ConnectionType scoConnection;
- switch(requestedConnectionType) {
+ switch (requestedConnectionType) {
case Qt::AutoConnection:
case Qt::QueuedConnection:
scoConnection = Qt::AutoConnection;
@@ -82,18 +83,15 @@ class ControlProxy : public QObject {
// (i.e. w/o and intermediate variable) when used with
// Qt::UniqueConnection. Otherwise it detects a false positive and
// throws a [-Wclazy-lambda-unique-connection] warning.
- switch(requestedConnectionType) {
+ switch (requestedConnectionType) {
case Qt::AutoConnection:
- connect(m_pControl.data(), &ControlDoublePrivate::valueChanged,
- this, &ControlProxy::slotValueChangedAuto, copConnection);
+ connect(m_pControl.data(), &ControlDoublePrivate::valueChanged, this, &ControlProxy::slotValueChangedAuto, copConnection);
break;
case Qt::DirectConnection:
- connect(m_pControl.data(), &ControlDoublePrivate::valueChanged,
- this, &ControlProxy::slotValueChangedDirect, copConnection);
+ connect(m_pControl.data(), &ControlDoublePrivate::valueChanged, this, &ControlProxy::slotValueChangedDirect, copConnection);
break;
case Qt::QueuedConnection:
- connect(m_pControl.data(), &ControlDoublePrivate::valueChanged,
- this, &ControlProxy::slotValueChangedQueued, copConnection);
+ connect(m_pControl.data(), &ControlDoublePrivate::valueChanged, this, &ControlProxy::slotValueChangedQueued, copConnection);
break;
default:
// Should be unreachable, but just to make sure ;-)
@@ -108,7 +106,9 @@ class ControlProxy : public QObject {
emit valueChanged(get());
}
- inline bool valid() const { return m_pControl != NULL; }
+ inline bool valid() const {
+ return m_pControl != NULL;
+ }
// Returns the value of the object. Thread safe, non-blocking.
inline double get() const {