From a644a7cc6749f8dd5ca20589ee6e59acc2892b3e Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Tue, 27 Sep 2011 04:51:30 +0200 Subject: new qmafw watchlet --- libsowatch/declarativewatchwrapper.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'libsowatch/declarativewatchwrapper.cpp') 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(); } -- cgit v1.2.3