summaryrefslogtreecommitdiffstats
path: root/src/controlobjectslave.h
diff options
context:
space:
mode:
authorRJ Ryan <rryan@mixxx.org>2014-01-12 00:48:14 -0500
committerRJ Ryan <rryan@mixxx.org>2014-01-12 00:48:14 -0500
commit05d26941804906d605151e3b2b63eda75719c23f (patch)
tree9130a4752e908cb15399905a6b5d6ebde82d609f /src/controlobjectslave.h
parent6fdd590d4ebdda6142ec6b216d2eb34f88050cf2 (diff)
Add getKey() method to ControlObjectSlave.
Diffstat (limited to 'src/controlobjectslave.h')
-rw-r--r--src/controlobjectslave.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/controlobjectslave.h b/src/controlobjectslave.h
index 41a7be6352..fc16f8411b 100644
--- a/src/controlobjectslave.h
+++ b/src/controlobjectslave.h
@@ -25,6 +25,10 @@ class ControlObjectSlave : public QObject {
void initialize(const ConfigKey& key);
+ const ConfigKey& getKey() const {
+ return m_key;
+ }
+
bool connectValueChanged(const QObject* receiver,
const char* method, Qt::ConnectionType type = Qt::AutoConnection);
bool connectValueChanged(
@@ -65,6 +69,7 @@ class ControlObjectSlave : public QObject {
virtual void slotValueChanged(double v, QObject* pSetter);
protected:
+ ConfigKey m_key;
// Pointer to connected control.
QSharedPointer<ControlDoublePrivate> m_pControl;
};