diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2011-09-27 04:51:30 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2011-09-27 04:51:30 +0200 |
commit | a644a7cc6749f8dd5ca20589ee6e59acc2892b3e (patch) | |
tree | b995528dc14d1f58d9d7c958d1eaad855b2a2412 /libsowatch/declarativewatchwrapper.cpp | |
parent | 0822b88738e00625efd27ccca9119885272924d2 (diff) | |
download | sowatch-a644a7cc6749f8dd5ca20589ee6e59acc2892b3e.tar.gz sowatch-a644a7cc6749f8dd5ca20589ee6e59acc2892b3e.zip |
new qmafw watchlet
Diffstat (limited to 'libsowatch/declarativewatchwrapper.cpp')
-rw-r--r-- | libsowatch/declarativewatchwrapper.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libsowatch/declarativewatchwrapper.cpp b/libsowatch/declarativewatchwrapper.cpp index 384a29d..f7914f8 100644 --- a/libsowatch/declarativewatchwrapper.cpp +++ b/libsowatch/declarativewatchwrapper.cpp @@ -20,6 +20,13 @@ bool DeclarativeWatchWrapper::active() const return _active; } +void DeclarativeWatchWrapper::vibrate(int msecs) +{ + if (_active) { + _watch->vibrate(msecs); + } +} + void DeclarativeWatchWrapper::activate() { if (!_active) { @@ -33,8 +40,7 @@ void DeclarativeWatchWrapper::activate() void DeclarativeWatchWrapper::deactivate() { if (_active) { - disconnect(this, SIGNAL(buttonPressed(int))); - disconnect(this, SIGNAL(buttonReleased(int))); + disconnect(_watch, 0, this, 0); _active = false; emit activeChanged(); } |