~l0rdt/mixxx/features_replaygain

« back to all changes in this revision

Viewing changes to mixxx/src/widget/wknob.cpp

  • Committer: Vittorio
  • Date: 2010-11-01 17:00:03 UTC
  • mfrom: (2444.1.89 mixxx-trunk)
  • Revision ID: l0rdt@gmx.it-20101101170003-pe5l89817ejppljz
merging with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
 
41
41
void WKnob::setup(QDomNode node)
42
42
{
43
 
    WWidget::setup(node);
44
 
 
45
43
    // Set background pixmap if available
46
44
    if (!selectNode(node, "BackPath").isNull())
47
45
        setPixmapBackground(getPath(selectNodeQString(node, "BackPath")));
152
150
}
153
151
 
154
152
void WKnob::wheelEvent(QWheelEvent *e)
155
 
{   
 
153
{
156
154
    double wheelDirection = ((QWheelEvent *)e)->delta() / 120.;
157
155
    double newValue = getValue() + (wheelDirection);
158
156
    this->updateValue(newValue);