Chris@1188: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*-  vi:set ts=8 sts=4 sw=4: */
Chris@1188: 
Chris@1188: /*
Chris@1188:     Sonic Visualiser
Chris@1188:     An audio file viewer and annotation editor.
Chris@1188:     Centre for Digital Music, Queen Mary, University of London.
Chris@1188:     This file copyright 2007 QMUL.
Chris@1188:     
Chris@1188:     This program is free software; you can redistribute it and/or
Chris@1188:     modify it under the terms of the GNU General Public License as
Chris@1188:     published by the Free Software Foundation; either version 2 of the
Chris@1188:     License, or (at your option) any later version.  See the file
Chris@1188:     COPYING included with this distribution for more information.
Chris@1188: */
Chris@1188: 
Chris@1188: #include "NotifyingToolButton.h"
Chris@1188: 
Chris@1188: NotifyingToolButton::~NotifyingToolButton()
Chris@1188: {
Chris@1188: }
Chris@1188: 
Chris@1188: void
Chris@1188: NotifyingToolButton::enterEvent(QEvent *e)
Chris@1188: {
Chris@1188:     QToolButton::enterEvent(e);
Chris@1188:     emit mouseEntered();
Chris@1188: }
Chris@1188: 
Chris@1188: void
Chris@1188: NotifyingToolButton::leaveEvent(QEvent *e)
Chris@1188: {
Chris@1188:     QToolButton::enterEvent(e);
Chris@1188:     emit mouseLeft();
Chris@1188: }
Chris@1188: