add some comments
[makneto-zunavac1.git] / src / ui-mobile / wheelarea.cpp
blob772e7a0796d38d0d32cf2c79833d8acf1feccb8d
1 /**
2 * Copyright 2010 Max Desyatov <max.desyatov@gmail.com>
3 *
4 * https://github.com/explicitcall/QMLbox
5 *
6 * Warning: license is unknown!
7 */
9 #include "wheelarea.h"
11 void WheelArea::wheelEvent(QGraphicsSceneWheelEvent *event) {
12 switch (event->orientation()) {
13 case Qt::Horizontal:
14 emit horizontalWheel(event->delta());
15 break;
16 case Qt::Vertical:
17 emit verticalWheel(event->delta());
18 break;
19 default:
20 event->ignore();
21 break;
25 #include "wheelarea.moc"