comparison widgets/Slider.cpp @ 83:76d4fbab5f20

replace the QDial by sliders
author lbajardsilogic
date Fri, 22 Jun 2007 12:49:50 +0000
parents
children fa034c6ae8bf
comparison
equal deleted inserted replaced
82:8ebc85f6ce4e 83:76d4fbab5f20
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
2
3 /* Sound Access
4 EASAIER client application.
5 Silogic 2007. Laure Bajard.
6
7 This program is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License as
9 published by the Free Software Foundation; either version 2 of the
10 License, or (at your option) any later version. See the file
11 COPYING included with this distribution for more information.
12 */
13
14 #include "Slider.h"
15
16 Slider::~Slider()
17 {
18 }
19
20 void
21 Slider::enterEvent(QEvent *e)
22 {
23 QSlider::enterEvent(e);
24 QPalette palette;
25 palette.setColor(QPalette::Button,palette.color(QPalette::Highlight));
26 setPalette(palette);
27 emit mouseEntered();
28 }
29
30 void
31 Slider::leaveEvent(QEvent *e)
32 {
33 QSlider::enterEvent(e);
34 QPalette palette;
35 setPalette(palette);
36 emit mouseLeft();
37 }