diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-05-06 22:31:58 -0700 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-05-07 01:50:38 -0700 |
commit | a3473c9b0dc08ba13b079c2f72a8705131f850b7 (patch) | |
tree | fdf85e9c31cbdeb0e0842a0cb8a7e6e11483a3ce /bluetooth.cpp | |
parent | 57489437e0eb3057d34030325c784d6ac2dbf3fe (diff) |
libqtappfw: bluetooth: add missing parameter to powerChanged() signal
Pass along the *state* parameter to the powerChanged signal for reporting
bluetooth state
Change-Id: Idbb283c9c5a46a3ed58f59ffb58983f6e585e3d3
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'bluetooth.cpp')
-rw-r--r-- | bluetooth.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bluetooth.cpp b/bluetooth.cpp index 3af6ac3..6e21ad1 100644 --- a/bluetooth.cpp +++ b/bluetooth.cpp @@ -56,7 +56,7 @@ void Bluetooth::setPower(bool state) m_power = state; - emit powerChanged(); + emit powerChanged(m_power); } void Bluetooth::setDiscoverable(bool state) @@ -219,7 +219,7 @@ void Bluetooth::onMessageReceived(MessageType type, Message *msg) emit deviceListEvent(msg->replyData()); } else if (this->isPowerResponse(msg)) { m_power = msg->replyData().value("power").toString() == "on"; - emit powerChanged(); + emit powerChanged(m_power); } } |